index.less 6.24 KB
Newer Older
wuhao's avatar
wuhao 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
@import '~antd/lib/style/themes/default.less';

@nav-header-height: @layout-header-height;

:global .ant-menu-inline-collapsed {
  width: 48px !important;
}

.lihover {
  .closeicon {
    display: none;
  }

  &:hover {
    .closeicon {
      display: block;
    }
  }
}

.diyinput {
  width: 360px;
  background-color: #f0f0f0 !important;
  border: none !important;
  border-radius: 0px !important;
  border-radius: 0px !important;
  outline: none !important;
  box-shadow: none !important;
TZW's avatar
TZW committed
29

wuhao's avatar
wuhao committed
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
  &:focus {
    box-shadow: none !important;
  }

  :global .ant-input {
    background-color: #f0f0f0 !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;

    &:focus {
      box-shadow: none !important;
    }
  }
}

.rt {
  width: 140px;
  border-left: #ddd solid 1px;
}

@media (min-width: 400px) {
  .column {
    column-count: 1; // two columns on larger phones
    column-gap: 0px;
  }

  .rt {
    width: 0px;
    overflow: hidden;
    border-left: #ddd solid 1px;
  }
}

@media (min-width: 768px) {
  .column {
    column-count: 2; // two columns on larger phones
    column-gap: 0px;
  }

  .rt {
    width: 140px;
    border-left: #ddd solid 1px;
  }
}

@media (min-width: 992px) {
  .column {
    column-count: 3; // three columns on...you get it
    column-gap: 0px;
  }
}

@media (min-width: 1200px) {
  .column {
    column-count: 4; // three columns on...you get it
    column-gap: 0px;
  }
}

@media (min-width: 1660px) {
  .column {
    column-count: 6; // three columns on...you get it
    column-gap: 0px;
  }
}

.item {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;

TZW's avatar
TZW committed
104
  >h2 {
wuhao's avatar
wuhao committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
    margin-bottom: 0px;
    padding: 4px 6px;
    color: #000;
    font-weight: bolder;
    font-size: 14px;
  }

  .activeh2 {
    margin-bottom: 0px;
    padding: 4px 6px;
    color: #fff;
    font-weight: bolder;
    font-size: 14px;
    background-color: @primary-color;
  }
}

.section {
  padding: 12px 0px;

TZW's avatar
TZW committed
125
  >h2 {
wuhao's avatar
wuhao committed
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
    margin-bottom: 0px;
    padding: 4px 6px;
    color: #000;
    font-weight: bolder;
    font-size: 14px;
  }
}

.carditem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box !important;
  width: 100%;
  padding: 6px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.02s;
  break-inside: avoid !important;

  .diylink {
    color: #666 !important;
    transition: all 0.02s;
  }

TZW's avatar
TZW committed
151
  >.tocollect {
wuhao's avatar
wuhao committed
152 153 154 155
    display: none;
    color: @primary-color;
  }

TZW's avatar
TZW committed
156
  >.collected {
wuhao's avatar
wuhao committed
157 158 159 160 161 162 163 164 165 166 167
    color: @primary-color;
  }

  &:hover {
    background-color: rgba(0, 0, 0, 0.2);

    .diylink {
      color: @primary-color !important;
    }
  }

TZW's avatar
TZW committed
168
  &:hover>.tocollect {
wuhao's avatar
wuhao committed
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 197 198 199 200 201 202 203 204 205 206 207
    display: block;
  }
}

.rtcarditem {
  width: 100%;
  margin: 0px;
  padding: 6px;
  padding-left: 12px;
  border-left: transparent solid 1px;
  cursor: pointer;
  transition: all 0.02s;

  &:hover {
    color: @primary-color;
    border-left: @primary-color solid 1px;
  }
}

.fate {
  width: 100%;
  height: 100%;

  .mains {
    color: #fff;
  }

  .containbox {
    position: absolute;
    top: 48px;
    left: 100%;
    z-index: 998;
    width: ~'calc(100vw - 100%)';
    height: ~'calc(100vh - 48px)';
    padding: 24px;
    overflow: hidden;
    background-color: #f0f0f0;
    transform: translate(0);
    transform-origin: left center;
TZW's avatar
TZW committed
208

wuhao's avatar
wuhao committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
    * {
      opacity: 1;
    }
  }

  .containboxs {
    position: absolute;
    top: 48px;
    left: 100%;
    z-index: 998;
    width: ~'calc(100vw - 100%)';
    height: ~'calc(100vh - 48px)';
    padding: 0px;
    overflow: hidden;
    background-color: #f0f0f0;
    transform: translate(-100vw);
    transform-origin: left center;
TZW's avatar
TZW committed
226

wuhao's avatar
wuhao committed
227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
    * {
      opacity: 0.4;
    }
  }
}

.logo {
  position: relative;
  height: @nav-header-height;
  height: 48px !important;
  padding-left: (@menu-collapsed-width - 32px) / 2;
  padding-left: 7px;
  overflow: hidden;
  line-height: @nav-header-height;
  line-height: 48px !important;
  background: #002140;
  transition: all 0.1s !important;
TZW's avatar
TZW committed
244

wuhao's avatar
wuhao committed
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
  img {
    display: inline-block;
    height: 32px;
    vertical-align: middle;
  }

  h1 {
    display: inline-block;
    margin: 0 0 0 8px;
    color: white;
    font-weight: 600;
    font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    line-height: 48px !important;
    vertical-align: middle;
  }
}

:global .ant-layout-sider-collapsed {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
}
TZW's avatar
TZW committed
268

wuhao's avatar
wuhao committed
269 270 271 272 273
.sider {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
TZW's avatar
TZW committed
274

wuhao's avatar
wuhao committed
275 276 277 278 279 280 281 282
  &.fixSiderBar {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);

    :global {
      .ant-menu-root {
TZW's avatar
TZW committed
283
        height:~'calc(100vh - @{nav-header-height})';
wuhao's avatar
wuhao committed
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
        overflow-y: auto;
      }

      .ant-menu-inline {
        border-right: 0;

        .ant-menu-item,
        .ant-menu-submenu-title {
          width: 100%;
        }
      }
    }
  }
}

.icon {
  width: 14px;
  vertical-align: baseline;
}

:global {
  .top-nav-menu li.ant-menu-item {
    height: @nav-header-height;
    line-height: @nav-header-height;
  }

  .drawer .drawer-content {
    background: #001529;
  }

  .ant-menu-inline-collapsed {
TZW's avatar
TZW committed
315 316 317 318

    &>.ant-menu-item .sider-menu-item-img+span,
    &>.ant-menu-item-group>.ant-menu-item-group-list>.ant-menu-item .sider-menu-item-img+span,
    &>.ant-menu-submenu>.ant-menu-submenu-title .sider-menu-item-img+span {
wuhao's avatar
wuhao committed
319 320 321 322 323 324
      display: inline-block;
      max-width: 0;
      opacity: 0;
    }
  }

TZW's avatar
TZW committed
325 326
  .ant-menu-item .sider-menu-item-img+span,
  .ant-menu-submenu-title .sider-menu-item-img+span {
wuhao's avatar
wuhao committed
327 328 329
    opacity: 1;
    transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
  }
TZW's avatar
TZW committed
330

wuhao's avatar
wuhao committed
331 332 333 334 335 336 337 338 339 340
  .ant-menu-title-content {
    display: flex;
    align-items: center;
  }

  .ant-drawer-left {
    .ant-drawer-body {
      padding: 0;
    }
  }
TZW's avatar
TZW committed
341 342 343 344 345 346

  .ant-layout-has-sider,
  .ant-card-bordered {
    min-height: 100%;
    height: unset !important
  }
wuhao's avatar
wuhao committed
347
}
TZW's avatar
TZW committed
348 349


wuhao's avatar
wuhao committed
350 351 352 353 354 355
.firstag {
  height: 35px !important;
  margin-top: 0px !important;
  background-color: #000000;
  box-shadow: 0 2px 14px #000000 !important;
  user-select: none;
TZW's avatar
TZW committed
356

wuhao's avatar
wuhao committed
357 358 359 360 361
  &:hover {
    color: #ffffff !important;
    background-color: #000000 !important;
    box-shadow: 0 0px 0px #000000 !important;
  }
TZW's avatar
TZW committed
362
}