index.less 7.44 KB
Newer Older
1 2 3 4 5 6 7 8 9
@import '~antd/es/style/themes/default.less';

.commonMenu {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: url(assets/images/commonMenu/page-background.png);
  font-family: Microsoft YaHei;
  padding-top: 57px;
崔佳豪's avatar
崔佳豪 committed
10
  background-color: #f5f6fc;
11 12 13 14 15 16
  overflow: hidden;

  :global {
    p {
      margin: 0;
    }
邓晓峰's avatar
邓晓峰 committed
17
    .@{ant-prefix}-spin-nested-loading, .@{ant-prefix}-spin-container {
18 19 20 21 22 23 24
      height: 100%;
      width: 100%;
    }
  }

  .filterIconBox {
    .iconBox {
崔佳豪's avatar
崔佳豪 committed
25 26
      filter: invert(33%) sepia(100%) saturate(1499%) hue-rotate(199deg)
        brightness(102%) contrast(104%);
27 28 29 30 31
      img {
        filter: brightness(0%);
      }
    }
  }
崔佳豪's avatar
崔佳豪 committed
32

33 34 35 36 37 38 39 40 41 42 43
  .searchWrapper {
    width: 100%;
    height: 48px;
    padding: 0 20%;
    display: flex;
    align-items: center;
    margin-bottom: 50px;

    .searchBox {
      flex: 1;
      height: 48px;
崔佳豪's avatar
崔佳豪 committed
44 45
      background: #ffffff;
      box-shadow: 0px 5px 10px 0px #f3f3f3;
46 47 48 49 50 51 52 53
      border-radius: 2px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 11px;
      position: relative;

      .searchTitle {
崔佳豪's avatar
崔佳豪 committed
54 55 56
        display: flex;
        align-items: center;
        & > i {
57
          margin-right: 15px;
崔佳豪's avatar
崔佳豪 committed
58 59 60 61 62 63
          color: #3b7fdf;
        }
        .addIcon {
          &:hover {
            color: @primary-color;
          }
64 65
        }
      }
崔佳豪's avatar
崔佳豪 committed
66
      .searchInput {
崔佳豪's avatar
崔佳豪 committed
67
        // flex: 1;
崔佳豪's avatar
崔佳豪 committed
68 69 70
        overflow: hidden;
        margin-left: 50px;
      }
71 72 73 74 75 76 77 78 79 80 81 82 83
      .searchInfoBox {
        width: 100%;
        height: 400px;
        position: absolute;
        overflow: hidden;
        left: 0;
        top: 100%;
        z-index: 100;
        transition: height 0.5s ease-out;
        &.searchInfoBox_hide {
          height: 0;
        }
        :global {
邓晓峰's avatar
邓晓峰 committed
84
          .@{ant-prefix}-tree-treenode {
85 86
            width: 100%;
          }
邓晓峰's avatar
邓晓峰 committed
87 88 89
          .@{ant-prefix}-tree-node-content-wrapper,
          .@{ant-prefix}-tree-node-content-wrapper-normal
            .@{ant-prefix}-tree-node-content-wrapper-close {
90 91 92
            flex: 1;
            overflow: hidden;
          }
邓晓峰's avatar
邓晓峰 committed
93
          .@{ant-prefix}-tree-switcher {
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
            line-height: 36px;
          }
        }
        .customTitle {
          width: 100%;
          height: 36px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          // padding-right: 20px;
          .titleInfo {
            img {
              width: 18px;
              height: 18px;
              margin-right: 8px;
            }
          }
          .treeSearchInfo {
            color: #ff5500;
          }
          &:hover {
            background-color: #f1faf9;
            .titleControl {
              .chooseLabel {
                display: none;
              }
              .chooseBtn {
                display: block;
              }
            }
          }
          .titleControl {
            .chooseLabel {
              padding-right: 20px;
              display: block;
              color: #999999;
              font-size: 15px;
            }
            .chooseBtn {
              float: right;
              cursor: pointer;
              height: 36px;
              width: 101px;
              background: #01c1a4;
              color: white;
              text-align: center;
              display: none;
              line-height: 36px;
            }
          }
        }
      }
    }
    .searchBtn {
      flex: none;
      width: 135px;
      height: 48px;
崔佳豪's avatar
崔佳豪 committed
151 152
      background: linear-gradient(0deg, #1685ff 0%, #49a0ff 100%);
      box-shadow: 0px 5px 10px 0px #f5f6fc;
153 154 155
      border-radius: 2px;
      margin-left: 36px;
      font-weight: bold;
崔佳豪's avatar
崔佳豪 committed
156
      color: #ffffff;
157 158 159 160
    }
  }

  .menuCardWrapper {
崔佳豪's avatar
崔佳豪 committed
161 162 163 164 165
    // display: grid;
    // grid-template-columns: repeat(4, 25%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
    height: calc(100% - 185px);
    padding: 0 5%;
    overflow: auto;
  }

  .menuCard {
    margin: 20px 10px;
    width: 377px;
    height: 240px;
    background-image: url(assets/images/commonMenu/矩形.png);
    background-size: 100%;
    background-position: center bottom;
    position: relative;
    padding: 0 30px;
    transition: transform 0.5s ease-out;
    cursor: pointer;
    &:hover {
      transform: scale(1.1);
    }
    .cardThumbnail {
      width: 100%;
    }
    .cardLabel {
      // width: 347px;
      height: 75px;
      position: absolute;
      bottom: 0;
      left: 10px;
      right: 10px;
      // left: 50%;
      // transform: translateX(-50%);
崔佳豪's avatar
崔佳豪 committed
197 198
      background: url('assets/images/commonMenu/card-label.png') center/100%
        no-repeat;
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30px 10px 0;

      .cardTitle {
        color: #323232;
        padding-left: 10px;
        img {
          width: 20px;
          height: 20px;
          vertical-align: text-top;
          margin-right: 0.5em;
        }
      }
      .cardGroup {
        font-size: 14px;
        color: #999999;
        ::before {
崔佳豪's avatar
崔佳豪 committed
218
          content: '·';
219 220 221 222 223 224
          margin-right: 0.5em;
        }
      }
    }
  }

崔佳豪's avatar
崔佳豪 committed
225
  // 底部logo
226 227 228 229 230 231 232 233 234 235 236 237
  .pageLogo {
    width: 197px;
    position: absolute;
    bottom: 31px;
    left: 50%;
    transform: translateX(-50%);
    img {
      width: 100%;
    }
  }
}

崔佳豪's avatar
崔佳豪 committed
238 239
.MenuModal {
  :global {
邓晓峰's avatar
邓晓峰 committed
240
    .@{ant-prefix}-modal-header {
崔佳豪's avatar
崔佳豪 committed
241 242 243
      padding: 0 16px;
      background: url('../../assets/basic/图层\ 998@2x.png') center/100% 100%
        no-repeat;
邓晓峰's avatar
邓晓峰 committed
244
      .@{ant-prefix}-modal-title {
崔佳豪's avatar
崔佳豪 committed
245 246 247
        height: 56px;
      }
    }
邓晓峰's avatar
邓晓峰 committed
248
    .@{ant-prefix}-modal-close {
崔佳豪's avatar
崔佳豪 committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274
      color: #fff;
    }
  }
}
// 菜单modal弹窗
.modalTitle {
  margin: 0;
  border-bottom: none;
  height: 100%;
  line-height: 56px;
  color: #fff;
  &::before {
    content: '';
    display: inline-block;
    width: 0px;
    height: 16px;
    background: #1d8dff;
    margin-right: 12px;
    vertical-align: middle;
  }
}
.modalBodyHead {
  // background: url('../../assets/basic/图层\ 998@2x.png') center/100% 100% no-repeat;
  padding: 20px 30px;
  // color: red;
  :global {
邓晓峰's avatar
邓晓峰 committed
275
    .@{ant-prefix}-input-affix-wrapper {
崔佳豪's avatar
崔佳豪 committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
      border-radius: 20px;
    }
  }
}
.modalBodyMain {
  height: 500px;
  overflow: auto;
  padding: 0 20px 20px;
  // margin-top: 24px;
  border-top: 1px solid #ebebeb;
  .menuWrapper {
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 20px;

    .menuGroupTitle {
      color: #323232;
      font-size: 16px;
      margin: 0;
      padding: 20px 10px 10px;
    }
    .menuList {
      display: flex;
      flex-wrap: wrap;

      .menuItem {
        width: 20%;
        padding: 10px;
        &.menuItem_added {
          & > div {
            border: 1px solid #78bbff;
            background: #e7f2ff;
            color: @primary-color;
          }
        }
        & > div {
          // width: 111px;
          height: 37px;
          line-height: 37px;
          text-align: center;
          border: 1px solid #f5f5f5;
          background: #f5f5f5;
          border-radius: 3px;
          color: #646464;
          font-size: 14px;
          cursor: pointer;
          position: relative;
          &:hover {
            color: @primary-color;
            border-color: @primary-color;
          }
        }
        .addedFlag {
          position: absolute;
          width: 20px;
          height: 20px;
          top: 0;
          right: 0;
          border-radius: 0 2px 0 100%;
          background: @primary-color;
          color: #fff;
          font-size: 12px;
          text-align: center;
          line-height: 12px;
          padding-left: 3px;
        }
      }
    }
  }
}