@import './app.scss';
@import './base.scss';
@import './element.scss';
@import './iconSelector.scss';
@import './dark.scss';
*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

//   div,
//   p,
//   ul,
//   li,
//   ol,
//   section,
//   header,
//   footer {
//     box-sizing: border-box;
//   }
// .el-scrollbar__view {
//     height: 100%;
// }

.el-container {
    height: 100%;
}

.el-main {
    padding: 0;
}

.icon-transform {
    transform: rotate(180deg);
    display: inline-block;
}

.iconfont {
    font-size: 14px;
}

.iconfont i {
    font-style: normal;
    margin-right: 8px;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

pre {
    line-height: 24px;
}

label {
    font-weight: 400;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.block {
    display: block;
}

.hidden {
    display: none!important;
}

.pointer {
    cursor: pointer;
}

.inlineBlock {
    display: block;
}

.no-padding {
    padding: 0px !important;
}

.padding-content {
    padding: 4px 0;
}

.no-opacity {
    opacity: 0;
    -moz-opacity: 0;
    -khtml-opacity: 0;
    filter: alpha(opacity=0);
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

.rotate-180 {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    display: inline-block;
}


/* 星号 */

.star {
    position: relative;
}

.star:after {
    content: '*';
    position: absolute;
    right: -8px;
    top: -4px;
    color: #DE1929;
}

.star.star-before::before {
    content: '*';
    position: absolute;
    color: #DE1929;
}


/*
*** 滚动条样式
*/

// 滚动条整体样式 高宽分别对应横竖滚动条的尺寸
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

// 滚动条里面小方块
::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background-color: rgba(5, 69, 133, 0.6);
    // background-image: -webkit-linear-gradient( 45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
}

// 滚动条里面轨道
::-webkit-scrollbar-track {
    // box-shadow: inset 0 0 2px rgba(102, 153, 187, 0.31);
    background: inset rgba(141, 167, 190, 0.2);
    box-shadow: 0px 0px 3px 0px #C1D1E0;
    border-radius: 0;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.pr-5 {
    padding-right: 5px;
}

.pl-5 {
    padding-left: 5px;
}

.ly-iconfont {
    .iconfont {
        font-size: 18px;
        margin-right: 6px;
    }
    .icon-font-text {
        color: #aaaaaa
    }
    .icon-font-xls {
        color: #4FB262
    }
    .icon-font-xlsx {
        color: #1CB58B
    }
    .icon-font-doc {
        color: #5AB1EF
    }
    .icon-font-pdf {
        color: #ff7045
    }
    .icon-font-pptx {
        color: #f34e19
    }
    .icon-font-docx {
        color: #6ca2ff
    }
    .icon-font-ppt,
    .icon-font-pptx {
        color: #F34E19
    }
    .icon-font-png {
        color: #2C87F8
    }
    .icon-font-jpg {
        color: #85BCFF
    }
    .icon-font-txt {
        color: #7598b5
    }
    .icon-font-mp3 {
        color: #ff5562
    }
    .icon-font-mp4 {
        color: #c386f0
    }
    .icon-font-folder {
        color: #FFCA28
    }
    .icon-font-share {
        color: #2595E8
    }
    .icon-font-zip {
        color: #475669
    }
    .icon-font-folder-share {
        color: #4989CA
    }
}

// 定义panel-mask，禁用点击效果
.panel-mask {
    pointer-events: none;
    cursor: default;
    position: relative;
    // 增加蒙版效果
    &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(126, 136, 146, 0.2);
        z-index: 100;
    }
    .el-input__suffix-inner {
        pointer-events: none;
        cursor: default;
    }
}

// 上边距及阴影
.box-shadow-top {
    padding-top: 8px;
    background-color: #ECEEEF;
    header {
        box-shadow: 0px 0px 6px 0px rgb(5 69 133 / 30%);
        background-color: #FFFFFF;
    }
    section {
        background-color: #FFFFFF;
    }
}