index.less 3.04 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
@import '~antd/es/style/themes/default.less';

@ant-pro-setting-drawer: ~'@{ant-prefix}-pro-setting-drawer';

.@{ant-pro-setting-drawer} {
  &-content {
    position: relative;
    min-height: 100%;
    .@{ant-prefix}-list-item {
      span {
        flex: 1;
      }
    }
  }

  &-block-checkbox {
    display: flex;
    &-item {
      position: relative;
      width: 44px;
      height: 36px;
      margin-right: 16px;
      overflow: hidden;
      background-color: #f0f2f5;
      border-radius: 4px;
      box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
      cursor: pointer;

      &::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 33%;
        height: 100%;
        background-color: #fff;
        content: '';
      }
      &::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 25%;
        background-color: #fff;
        content: '';
      }

      &-realDark {
        background-color: fade(@menu-dark-bg, 85%);
        &::before {
          background-color: fade(@menu-dark-bg, 65%);
          content: '';
        }
        &::after {
          background-color: fade(@menu-dark-bg, 85%);
        }
      }

      // 亮色主题
      &-light {
        &::before {
          background-color: @white;
          content: '';
        }
        &::after {
          background-color: @white;
        }
      }

      // 暗色主题
      &-dark,
      // 侧边菜单布局
      &-side {
        &::before {
          z-index: 1;
          background-color: @menu-dark-bg;
          content: '';
        }
        &::after {
          background-color: @white;
        }
      }

      // 顶部菜单布局
      &-top {
        &::before {
          background-color: transparent;
          content: '';
        }
        &::after {
          background-color: @menu-dark-bg;
        }
      }

      // 顶部菜单布局
      &-mix {
        &::before {
          background-color: @white;
          content: '';
        }
        &::after {
          background-color: @menu-dark-bg;
        }
      }
    }
    &-selectIcon {
      position: absolute;
      right: 6px;
      bottom: 4px;
      color: @primary-color;
      font-weight: bold;
      font-size: 14px;
      pointer-events: none;
      .action {
        color: @primary-color;
      }
    }
  }

  &-color_block {
    display: inline-block;
    width: 38px;
    height: 22px;
    margin: 4px;
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 4px;
    cursor: pointer;
  }

  &-title {
    margin-bottom: 12px;
    color: @heading-color;
    font-size: 14px;
    line-height: 22px;
  }

  &-handle {
    position: absolute;
    top: 240px;
    right: 300px;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 16px;
    text-align: center;
    background: @primary-color;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    pointer-events: auto;
  }

  &-production-hint {
    margin-top: 16px;
    font-size: 12px;
  }
}