@import './color';
@import './button';
@import './commonality';

*{
  margin:0;
  padding:0;
  font-weight:500;
  /*火狐浏览器*/
  scrollbar-color: $acquiesceThemeScrollbarD rgba(255,255,255,0); /* 滑块颜色  滚动条背景颜色 */
  scrollbar-width: thin; /* 滚动条宽度有三种：thin、auto、none */
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
html,body{
  margin:0;
  padding:0;
  height:100%;
  width:100%;
  overflow: hidden;
}

html {
  height: 100%;
  box-sizing: border-box;
}
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
#app{
  background: $acquiesceThemeColorE;
  height: 100%;
  transform-origin: left top;
  width:1920px;
  display: flex;
  flex-direction: column;
  flex:1;
}
.app-main{
  flex:1;
  display: flex;
  font-family: Microsoft YaHei;
  font-weight: bold;
}
label {
  font-weight: 700;
}
.no-padding {
  padding: 0 !important;
}

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

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

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

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 {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

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

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

//main-container全局样式
.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  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%);

  .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;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

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

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

//缩小后的遮罩
.drawer-bg{
  display: none;
}
//双时间选项
.el-range-editor--small.el-input__inner{
  height:40px;
}
//按钮
.el-button--medium{
  height:30px;
  padding:0;
}
//时间选择器中间边框位置调整
.el-time-spinner__wrapper{
  margin-top:-16px;
}
//input-number去除加减按钮
.input-number-none-box{
  .el-input-number__decrease{
    display: none;
  }
  .el-input-number__increase{
    display: none;
  }
  .el-input__inner{
    padding:0 15px;
  }
}
.input-number-none-box-left{
  .el-input-number__decrease{
    display: none;
  }
  .el-input-number__increase{
    display: none;
  }
  .el-input__inner{
    padding:0 15px;
    text-align: left;
  }
}
//el-dialog弹窗居中
.el-dialog__wrapper{
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: -webkit-box;  -webkit-box-align: center;-webkit-box-pack: center;
}
.el-dialog__wrapper .el-dialog{
  -webkit-box-flex: 0;
  margin-top:-1%!important;
}
//switch按钮样式
.el-switch.is-disabled .el-switch__core, .el-switch.is-disabled .el-switch__label{
  cursor: pointer!important;
}
//抽屉滚动条
.el-drawer__body::-webkit-scrollbar{
  width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
.el-drawer__body::-webkit-scrollbar-thumb{
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB;
  background: $acquiesceThemeScrollbarA;
}
.el-drawer__body::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  border-radius: 0;
  background: rgba(255,255,255,0);
}
//提示弹窗按钮(包含登录失效)
.el-message-box__btns{
  .el-button{
    width:100px;
  }
}
//弹出层
.el-dialog__header{
  border-bottom:1px solid $acquiesceThemeColorH;
  padding-bottom:20px;
}
.el-dialog__footer{
  padding-top:20px!important;
  border-top:1px solid $acquiesceThemeColorH;
}
//输入框
.el-form-item__label{
  line-height:40px!important;
}
.el-input--small{
  width:220px;
}
.el-input--small input{
  height: 40px !important;
}
.el-input--medium .el-input__inner{
  height: 40px ;
}
//弹窗窗体
.el-dialog{
  border-radius: 10px;
}
//弹窗title
.el-dialog__title{
  color:$acquiesceThemeColorA;
  font-weight: bold;
}
//消息提示窗背景色
.el-message--success{
  background-color: rgba(231,250,240,0.4);
}
.el-message--warning{
  background-color: rgba(253,246,236,0.4);
}
.el-message--error{
  background-color: rgba(254,240,240,0.4);
}
//input textarea样式
.el-textarea .el-input__count{
  line-height:20px;
  height:20px;
  background-color: rgba(255,255,255,0);
}
//多选框样式
.el-tag.el-tag--info{
  color:$acquiesceThemeColorC!important;
  background:rgba(1,131,250,0.2)!important;;
  border:none;
}
.el-tag.el-tag--info .el-tag__close{
  color:$acquiesceThemeColorE;
  background-color: $acquiesceThemeColorC;
}
.el-tag.el-tag--info .el-tag__close:hover{
  color:$acquiesceThemeColorE;
  background-color: $acquiesceThemeColorC;
}
//实心按钮部分
.el-button--primary{
  font-size:14px;
  background:$acquiesceThemeColorA;
}
.el-button{
  width:70px;
  height:40px;
  border-radius:6px;
}
//空心按钮部分
//新增
.el-button--primary.is-plain{
  width:120px;
  height:40px;
  color:$acquiesceThemeColorA!important;
  border:1px solid $acquiesceThemeColorA!important;
  background: $acquiesceThemeColorE;
}
.el-button--primary.is-plain:hover{
  color:$acquiesceThemeColorE!important;
  background: $acquiesceThemeColorA;
}
/*弹窗按钮*/
.el-message-box{
  .el-message-box__header{
    .el-message-box__title{
      text-align: center;
    }
    .el-message-box__headerbtn{
      display: none;
    }
  }
  .el-message-box__content{
    .el-message-box__status.el-icon-warning{
      display: none;
    }
    .el-message-box__message{
      padding:0 12px;
      text-align: center;
    }
  }
  .el-message-box__btns{
    text-align: center;
    .el-button--primary:hover, .el-button--primary:focus{
      background: $acquiesceThemeColorA;
      border-color:$acquiesceThemeColorA;
    }
  }
}
//富文本滚动条样式
.w-e-text::-webkit-scrollbar{
  width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
.w-e-text::-webkit-scrollbar-thumb{
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB;
  background: $acquiesceThemeScrollbarA;
}
.w-e-text::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  border-radius: 0;
  background: rgba(255,255,255,0);
}
//EUditor富文本编辑器
.edui-default .edui-editor{
  overflow: hidden!important;
}
.edui-default .edui-editor-bottomContainer{
  display: none;
}
/*************************公共滚动条样式*************************/
//竖向
.scrollbar-box{
  overflow-y: scroll;
}
.scrollbar-box::-webkit-scrollbar{
  width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
.scrollbar-box::-webkit-scrollbar-thumb{
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB;
  background: $acquiesceThemeScrollbarA;
}
.scrollbar-box::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  border-radius: 0;
  background: rgba(255,255,255,0);
}
//横向
.scrollbar-x-box{
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
}
.scrollbar-x-box::-webkit-scrollbar{
  width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
.scrollbar-x-box::-webkit-scrollbar-thumb{
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB;
  background: $acquiesceThemeScrollbarA;
}
.scrollbar-x-box::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  border-radius: 0;
  background: rgba(255,255,255,0);
}
//textarea输入框滚动条
.el-textarea__inner{
  overflow-y: scroll;
}
.el-textarea__inner::-webkit-scrollbar{
  width: 4px;     /*高宽分别对应横竖滚动条的尺寸*/
  height: 4px;
}
.el-textarea__inner::-webkit-scrollbar-thumb{
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB;
  background: $acquiesceThemeScrollbarA;
}
.el-textarea__inner::-webkit-scrollbar-track{
  -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0);
  border-radius: 0;
  background: rgba(255,255,255,0);
}

//监控视频
.video-min-box{
  //  画中画
  video::-webkit-media-controls-enclosure{
    display: none;
  }
  // 音频开关
  video::-webkit-media-controls-mute-button {
    display: none;
  }
  // 音频大小
  video::-webkit-media-controls-volume-slider {
    display: none;
  }
  //全屏按钮
  video::-webkit-media-controls-fullscreen-button {
    display: none;
  }
  //开始暂停按钮
  video::-webkit-media-controls-play-button {
    display: none;
  }
  // 时间显示
  video::-webkit-media-controls-current-time-display{
    display: none;
  }
  // 未知时间
  video::-webkit-media-controls-toggle-closed-captions-button {
    display: none;
  }
  //进度条
  video::-webkit-media-controls-timeline {
    display: none;
  }
  //未知进度条
  video::-webkit-media-controls-time-remaining-display {
    display: none;
  }
  video{
    object-fit: fill;//视频全铺
    pointer-events :none;//点击禁用
  }
}
.video-jz-box{
  .video-js{
    object-fit: fill;//视频全铺
    pointer-events :none;//点击禁用
  }
}
//input-number 按钮尺寸
.el-input-number.is-controls-right .el-input-number__increase, .el-input-number.is-controls-right .el-input-number__decrease{
  line-height:19px!important;
}
