@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul,
li {
  padding: 0;
  margin: 0;
  list-style: none;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

// *,
// *:before,
// *:after {
//   box-sizing: inherit;
// }

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    display: block;
    height: 0;
    clear: both;
    font-size: 0;
    visibility: hidden;
    content: " ";
  }
}

code {
  display: block;
  padding: 15px 16px;
  margin-bottom: 20px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 36px;
  background: #eef1f6;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;

  a {
    font-weight: 600;
    color: #42b983;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  position: relative;
  margin: 30px 50px;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  position: relative;
  width: 100%;
  height: 50px;
  padding-right: 20px;
  line-height: 50px;
  text-align: right;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  transition: 600ms ease position;

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    margin-bottom: 10px;
    vertical-align: middle;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.page-wrap {
  padding: 20px;
  text-align: center;
}


// 权限提示
.authNotify {
  cursor: pointer;

  .iconfont {
    font-size: 24px;
    color: $green;
  }

  .text {
    * {
      display: inline-block;
      vertical-align: middle;
    }
  }

  .headImg {
    width: 30px;
    margin-right: 10px;
    border-radius: 50%;
  }
}

.popover {
  text-align: center;
}

.el-dialog.is-fullscreen {
  height: 94%;
  margin-top: 2%;
}

.el-icon-edit {
  cursor: pointer;
}

.el-tag+.el-tag {
  margin-left: 10px;
}

.el-button+.dot-button {
  margin-left: 10px;
}

.dot-button+.el-button {
  margin-left: 10px;
}

.last-btn-cell {
  .cell {
    overflow: visible;
  }
}


.red {
  color: $red;
}

.blue {
  color: $light-blue;
}

.page-title {
  padding-left: 10px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #333;
  border-left: 3px solid #1179f0;
}

.searchBox {
  padding: 20px 20px 10px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 6px 0 20px 0 #c4cbd6;
  box-shadow: 6px 0 20px 0 #c4cbd6;
}

.block-title {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
  clear: both;
  font-size: 15px;
  font-weight: bold;
  line-height: 2;
  color: #1179f0;
  // border-bottom: 1px solid #1179f0;

  .el-button {
    float: right;
    margin-bottom: 5px;
  }
}
.tableBox {
  position: relative;
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 6px 0 20px 0 #c4cbd6;
  box-shadow: 6px 0 20px 0 #c4cbd6;

  .btn-wrap-left {
    padding: 10px;
  }

  .block-title {
    margin-bottom: 10px;
  }

  .el-pagination {
    padding: 10px 20px;
    text-align: left;
    background: #f2f6ff;
  }

  .el-pagination__total {
    float: right;
  }

  .add-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 10;
  }
}

// 对话框的信息
.dialog-info {
  display: flex;
  flex-wrap: wrap;

  label {
    // color: $lightblue;
    color: #4d4d4d;
    font-weight: bold;
  }

  .el-form-item {
    width: 50%;
    margin-right: 0;
  }

  .block-wrap {
    border-style: dashed;
    margin: 20px 0;
  }

  &:after {
    display: block;
    clear: both;
    content: '';
  }
}

.top-btn-wrap {
  padding: 10px 24px;
}