king
2020-10-26 1b89aa4493d1c9768447f2f480d594cdb8077fdc
src/components/header/index.scss
@@ -2,7 +2,6 @@
.header-container {
  position: fixed;
  // background-color: $header-bg;
  z-index: 1060;
  left: 0;
  top: 0;
@@ -12,26 +11,29 @@
  .header-logo {
    float: left;
    width: 155px;
    width: 180px;
    line-height: 48px;
    text-align: center;
    padding-left: 5px;
    box-sizing: border-box;
    opacity: 1;
    transition: width 0.2s, opacity 0.15s;
    img {
      max-width: 100%;
      max-height: 35px;
      max-height: 40px;
    }
  }
  .header-logo.collapse {
    opacity: 0;
    width: 0px;
    padding-left: 0px;
  }
  .header-collapse {
    float: left;
    width: 80px;
    line-height: 48px;
    padding-left: 45px;
    padding-left: 20px;
    cursor: pointer;
    transition: padding-left 0.15s;
    i {
@@ -50,31 +52,61 @@
    line-height: 48px;
    li {
      float: left;
      // color: $header-font;
      font-size: 1.7rem;
      margin: 0 10px;
      font-size: 1.3rem;
      cursor: pointer;
      span {
        padding: 0 10px;
        height: 42px;
        display: inline-block;
      }
      &:hover {
        color: #eeeeee;
        span {
          border-bottom: 4px solid #fafcfb;
        }
      }
      &.active {
        color: #ffffff;
        font-weight: bold;
        span {
          border-bottom: 4px solid #1890ff;
        }
      }
    }
  }
  .header-menu.level4 {
    li {
      cursor: default;
      &:hover {
        span {
          cursor: default;
          color: rgba(255, 255, 255, 0.65);
          border-bottom: none;
        }
      }
      &.active {
        span {
          color: #ffffff;
          border-bottom: 4px solid #1890ff;
        }
      }
    }
  }
  .header-setting {
    float: right;
    line-height: 48px;
    margin-right: 10px;
    img {
      width: 29px;
      height: 29px;
      border-radius: 30px;
      margin-right: 7px;
    }
    span {
      color: #ffffff;
      font-size: 1.3rem;
      font-size: 0.95rem;
      .username {
        display: inline-block;
        height: 30px;
@@ -85,26 +117,80 @@
      }
    }
  }
  .header-drag-menu {
    float: left;
  }
  .edit-check {
    font-size: 18px;
    margin-top: 14px;
    margin-left: 10px;
    cursor: pointer;
  }
  .mask {
    position: fixed;
    top: 48px;
    left: 0px;
    right: 0px;
    bottom: calc(100vh - 48px);
    transition: bottom 0.2s
  .search-menu {
    float: right;
    font-size: 18px;
    margin-top: 17px;
    margin-right: 20px;
    cursor: pointer;
  }
  .mask.active {
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.15);
  .level4-close {
    position: relative;
    top: 13px;
    left: 20px;
    height: 26px;
    padding: 0 10px;
  }
  .menu-select-dropdown {
    top: 48px!important;
    box-shadow: 0px 0px 2px #cdcdcd;
    border-radius: 0 0 4px 4px;
    background: #ffffff;
    .ant-input-affix-wrapper {
      margin-top: 2px;
    }
    .menu-select-box {
      max-height: 200px;
      min-height: 50px;
      overflow-y: auto;
      background: #ffffff;
      margin-bottom: 3px;
      .ant-menu {
        border-radius: 0 0 4px 4px;
      }
      .ant-menu-item {
        padding: 0px 25px;
        height: 26px;
        line-height: 26px;
        color: rgba(0, 0, 0, 0.85);
        cursor: pointer;
      }
      .ant-menu-item:hover {
        background-color: #e6f7ff;
      }
    }
    .menu-select-box::-webkit-scrollbar {
      width: 7px;
    }
    .menu-select-box::-webkit-scrollbar-thumb {
      border-radius: 5px;
      box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
      background: rgba(0, 0, 0, 0.13);
    }
    .menu-select-box::-webkit-scrollbar-track {
      box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
      border-radius: 3px;
      border: 1px solid rgba(0, 0, 0, 0.07);
      background: rgba(0, 0, 0, 0);
    }
  }
  .mobile {
    position: absolute;
    top: 135px;
    right: 50px;
    color: #1890ff;
  }
  .home-edit {
    position: absolute;
    top: 100px;
    right: 50px;
    color: #1890ff;
  }
}
.header-dropdown {
@@ -112,19 +198,9 @@
    padding: 5px 25px;
  }
}
.header-subSystem {
  min-width: 100px;
}
.edit-switch {
  margin-left: 10px;
}
.edit-modal-footer{
  padding: 10px 16px;
  text-align: right;
  background: transparent;
  border-top: 1px solid #e8e8e8;
  border-radius: 0 0 4px 4px;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -20px;
  .ant-btn {
    margin-right: 7px;
  }
}