index.less 12.9 KB
Newer Older
dengxiaofeng's avatar
dengxiaofeng committed
1 2 3 4
@import '~antd/es/style/themes/default.less';
@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
邓晓峰's avatar
邓晓峰 committed
5
  :global(.@{ant-prefix}icon) {
dengxiaofeng's avatar
dengxiaofeng committed
6 7
    margin-right: 8px;
  }
邓晓峰's avatar
邓晓峰 committed
8
  :global(.@{ant-prefix}-dropdown-menu-item) {
dengxiaofeng's avatar
dengxiaofeng committed
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
    min-width: 160px;
  }
}

.right {
  display: flex;
  float: right;
  height: 48px;
  margin-left: auto;
  overflow: hidden;
  .action {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;
    > span {
      vertical-align: middle;
    }
    &:hover {
      background: @pro-header-hover-bg;
    }
    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }
  .search {
    padding: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
邓晓峰's avatar
邓晓峰 committed
45
      // margin-right: 8px;
dengxiaofeng's avatar
dengxiaofeng committed
46 47 48
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
邓晓峰's avatar
邓晓峰 committed
49 50 51
      width: 36px;
      height: 36px;
      border-radius: 50%;
邓晓峰's avatar
邓晓峰 committed
52 53
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
      transition: box-shadow 0.1s linear, opacity 0.4s linear;
邓晓峰's avatar
邓晓峰 committed
54 55
      background-position: center;
      overflow: hidden;
dengxiaofeng's avatar
dengxiaofeng committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
    }
  }
}

.dark {
  .action {
    color: rgba(255, 255, 255, 0.85);
    > span {
      color: rgba(255, 255, 255, 0.85);
    }
    &:hover,
    &:global(.opened) {
      background: @primary-color;
    }
  }
}
邓晓峰's avatar
邓晓峰 committed
72 73 74 75 76 77 78
.userWrapper {
  .userInfo {
    background-color: #fff;
    width: 300px;
    position: absolute;
    right: 0;
    top: 10px;
邓晓峰's avatar
邓晓峰 committed
79
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
邓晓峰's avatar
邓晓峰 committed
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
    border-radius: 6px;
    .header {
      width: 100%;
      height: 80px;
      position: relative;
      background: #40b3f7;
      padding: 14px 12px;
      display: flex;
      border-top-left-radius: 6px;
      border-top-right-radius: 6px;
      .avatar {
        display: inline-block;
        width: 52px;
        height: 52px;
        border: 2px solid #fff;
        background-color: #fff;
        border-radius: 50%;
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center center;
        background-position: center;
        cursor: pointer;
      }
      .name {
        display: inline-block;
        width: 214px;
        font-size: 18px;
        color: #fff;
        font-weight: bold;
        padding: 14px;
      }
    }
    .body {
      .item {
        border-bottom: 1px solid #e0e0e0;
        ul {
          padding: 0 12px;
          list-style: none;
          margin: 0;
          li {
            height: 40px;
            line-height: 42px;
            border-bottom: 1px dashed #eee;
            position: relative;
            text-indent: 3px;
            overflow: hidden;
            width: 100%;
            font-size: 12px;
            font-weight: 100;
            span.label {
              padding: 0 2px;
              max-width: 200px;
            }
            span.value {
              padding: 0 2px;
              max-width: 200px;
            }
          }
        }
      }
      .exit {
        height: 30px;
        line-height: 30px;
        text-align: right;
        padding: 0 10px;
        a {
          color: #777;
          text-decoration: none;
          margin: 0 5px;
邓晓峰's avatar
邓晓峰 committed
149 150 151
          &:hover {
            color: @primary-7;
          }
邓晓峰's avatar
邓晓峰 committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
        }
      }
    }
  }
}
.nav {
  display: flex;
  align-items: center;
  span {
    &:first-child {
      margin-right: 20px;
      margin-left: 20px;
    }
    svg {
      transform: scale(0.88);
    }
  }
}
邓晓峰's avatar
邓晓峰 committed
170 171 172 173
.platformModal {
  //
  border-radius: 30px;
  :global {
邓晓峰's avatar
邓晓峰 committed
174 175 176 177 178 179
    .@{ant-prefix}-modal-header {
      background: linear-gradient(
        90deg,
        rgba(255, 71, 93, 1) 0%,
        rgba(255, 104, 93, 1) 100%
      );
邓晓峰's avatar
邓晓峰 committed
180
      padding: 8px 24px;
邓晓峰's avatar
邓晓峰 committed
181
      .@{ant-prefix}-modal-title {
邓晓峰's avatar
邓晓峰 committed
182 183 184
        color: #fff;
      }
    }
邓晓峰's avatar
邓晓峰 committed
185

邓晓峰's avatar
邓晓峰 committed
186
    .@{ant-prefix}-modal-close {
邓晓峰's avatar
邓晓峰 committed
187
      color: #fff;
邓晓峰's avatar
邓晓峰 committed
188
      .@{ant-prefix}-modal-close-x {
邓晓峰's avatar
邓晓峰 committed
189 190 191 192 193 194
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
      }
    }
邓晓峰's avatar
邓晓峰 committed
195 196
    .@{ant-prefix}-list-items {
      .@{ant-prefix}-list-item-meta-description {
邓晓峰's avatar
邓晓峰 committed
197 198 199 200 201
        div {
          b {
            color: rgba(255, 36, 36, 1);
          }
          &:first-child {
邓晓峰's avatar
邓晓峰 committed
202
            color: #616f88;
邓晓峰's avatar
邓晓峰 committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216
          }
          &:last-child {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            span {
              &:last-child {
                font-weight: bold;
                color: rgba(51, 62, 81, 1);
              }
            }
          }
        }
      }
邓晓峰's avatar
邓晓峰 committed
217
      .@{ant-prefix}-avatar-image {
邓晓峰's avatar
邓晓峰 committed
218 219 220 221 222
        top: 10px;
        width: 63px;
        height: 63px;
        line-height: 63px;
      }
邓晓峰's avatar
邓晓峰 committed
223
      .@{ant-prefix}-list-item-extra {
邓晓峰's avatar
邓晓峰 committed
224 225 226
        cursor: pointer;
      }
    }
邓晓峰's avatar
邓晓峰 committed
227 228
    .@{ant-prefix}-list-vertical {
      .@{ant-prefix}-list-pagination {
邓晓峰's avatar
邓晓峰 committed
229
        .mini {
邓晓峰's avatar
邓晓峰 committed
230 231
          .@{ant-prefix}-pagination-prev,
          .@{ant-prefix}-pagination-next {
邓晓峰's avatar
邓晓峰 committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
            line-height: 5px;
          }
        }
      }
    }
  }
  .alarmContent {
    display: flex;
    flex-direction: row;
    flex: 1;
    padding: 10px;
    width: 100%;
    img {
      width: 63px;
      height: 63px;
      margin: 20px 20px 20px 0;
    }
    .content {
      display: flex;
      flex-direction: column;
      flex: 1;
      &-top {
        font-size: 20px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: rgba(51, 62, 81, 1);
        line-height: 32px;
        display: flex;
        flex-direction: row;
        white-space: nowrap;
        justify-content: space-between;
        align-items: center;
        a {
          text-overflow: ellipsis;
          overflow: hidden;
          white-space: nowrap;
268
          width: 60%;
邓晓峰's avatar
邓晓峰 committed
269 270 271 272 273
        }
        span {
          width: 18px;
          height: 14px;
          margin: 17px 0;
邓晓峰's avatar
邓晓峰 committed
274 275
          background: url(https://panda-water.com/web4/assets/images/message/已读-默认.svg)
            no-repeat center;
邓晓峰's avatar
邓晓峰 committed
276 277 278 279 280 281 282 283
          background-size: 100% 100%;
          cursor: pointer;
        }
      }
      &-mid {
        font-size: 16px;
        font-family: Source Han Sans CN;
        font-weight: 400;
邓晓峰's avatar
邓晓峰 committed
284
        color: #616f88;
邓晓峰's avatar
邓晓峰 committed
285 286 287 288 289 290 291 292 293 294 295 296
        line-height: 32px;
        b {
          color: rgba(255, 36, 36, 1);
        }
      }
      &-bottom {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        line-height: 32px;
        p {
          b {
邓晓峰's avatar
邓晓峰 committed
297
            color: #ff2929;
邓晓峰's avatar
邓晓峰 committed
298 299 300 301 302 303 304 305 306 307 308 309 310
          }
        }
        span {
          font-size: 16px;
          font-family: Source Han Sans CN;
          font-weight: bold;
          color: rgba(51, 62, 81, 1);
        }
      }
    }
  }
}
.videoPopup {
邓晓峰's avatar
邓晓峰 committed
311
  :global(.@{ant-prefix}-modal-content) {
邓晓峰's avatar
邓晓峰 committed
312 313
    height: 520px;
  }
邓晓峰's avatar
邓晓峰 committed
314
  :global(.@{ant-prefix}-modal-header) {
邓晓峰's avatar
邓晓峰 committed
315 316
    padding: 8px 24px;
  }
邓晓峰's avatar
邓晓峰 committed
317
  :global(.@{ant-prefix}-modal-close-x) {
邓晓峰's avatar
邓晓峰 committed
318 319 320 321
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
邓晓峰's avatar
邓晓峰 committed
322
  :global(.@{ant-prefix}-modal-body) {
邓晓峰's avatar
邓晓峰 committed
323 324
    padding: 0;
    height: 100%;
邓晓峰's avatar
邓晓峰 committed
325
    width: 100%;
邓晓峰's avatar
邓晓峰 committed
326 327
  }
}
邓晓峰's avatar
邓晓峰 committed
328

邓晓峰's avatar
邓晓峰 committed
329
:global(.@{ant-prefix}-pro-global-header) {
dengxiaofeng's avatar
dengxiaofeng committed
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
  .dark {
    .action {
      color: @text-color;
      > span {
        color: @text-color;
      }
      &:hover {
        color: rgba(255, 255, 255, 0.85);
        > span {
          color: rgba(255, 255, 255, 0.85);
        }
      }
    }
  }
}

@media only screen and (max-width: @screen-md) {
邓晓峰's avatar
邓晓峰 committed
347
  :global(.@{ant-prefix}-divider-vertical) {
dengxiaofeng's avatar
dengxiaofeng committed
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
    .account {
      .avatar {
        margin-right: 0;
      }
    }
    .search {
      display: none;
    }
  }
邓晓峰's avatar
邓晓峰 committed
366 367
}
.updatePassword {
邓晓峰's avatar
邓晓峰 committed
368 369
  :global(.@{ant-prefix}-modal-header) {
    padding: 10px 24px !important;
邓晓峰's avatar
邓晓峰 committed
370
  }
邓晓峰's avatar
邓晓峰 committed
371
  :global(.@{ant-prefix}-modal-close .@{ant-prefix}-modal-close-x) {
邓晓峰's avatar
邓晓峰 committed
372 373 374 375 376
    width: 45px;
    height: 45px;
    font-size: 12px;
    line-height: 35px;
  }
邓晓峰's avatar
邓晓峰 committed
377
  :global(.@{ant-prefix}-modal-body) {
邓晓峰's avatar
邓晓峰 committed
378 379
    padding: 10px 24px;
  }
邓晓峰's avatar
邓晓峰 committed
380
  :global(.@{ant-prefix}-modal-footer) {
邓晓峰's avatar
邓晓峰 committed
381 382
    padding: 8px 12px;
  }
邓晓峰's avatar
邓晓峰 committed
383
  :global(.@{ant-prefix}-modal-footer .@{ant-prefix}-btn) {
邓晓峰's avatar
邓晓峰 committed
384 385 386
    line-height: 1.2px;
    height: 28px;
  }
邓晓峰's avatar
邓晓峰 committed
387
}
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435

.noticeModal {
  :global {
    .@{ant-prefix}-modal-body {
      padding: 10px 24px;
      b {
        float: right;
        text-align: right;
        display: block;
        &:last-child {
          float: inherit;
        }
      }
      .@{ant-prefix}-form-item {
        margin-bottom: 20px;
        padding-top: 4px;
      }
      .@{ant-prefix}-form-item {
        &:last-child {
          text-align: center;
        }
      }
    }
  }
  :global(.@{ant-prefix}-modal-header) {
    padding: 10px 24px !important;
  }
  :global(.@{ant-prefix}-modal-close .@{ant-prefix}-modal-close-x) {
    width: 45px;
    height: 45px;
    font-size: 12px;
    line-height: 35px;
  }
  .title {
    font-size: 20px;
    font-weight: bold;
  }
  .content {
    text-indent: 24px;
    padding-top: 4px;
  }
  .time {
    display: block;
    font-weight: 500;
    font-size: 16px;
    text-align: right;
  }
}
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595

.newYearMessage {
  .topPopup-body {
    width: 876px;
    max-height: 90%;
    background: 0;
    box-shadow: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    .topPopup-title{
      width: 100%;
      height: 263px;
      flex: none;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%8A.png) center center no-repeat;
      background-size: 100% 100%;
      font-size: 40px;
      font-family: ZhenyanGB;
      font-weight: 400;
      color: #ffe59f;
      line-height: 60px;
      text-shadow: 0 3px 3px rgb(0 0 0 / 35%);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-radius: 10px 10px 0 0;
      padding: 18px;
      > img {
        width: 40px;
        height: 40px;
        cursor: pointer;
        margin: 0 0 0 auto;
      }
      .newYearTitle {
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding-bottom: 35px;
        > span {
          border-bottom: 2px solid;
          background-image: -webkit-linear-gradient(#fff2c3,#ffbd49);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          text-shadow: none;
          font-size: 40px;
          line-height: 60px;
        }
        > img {
          width: 47px;
          height: 20px;
          margin: 27px 25px 0 25px;
        }
      }
    }
    .topPopup-content {
      display: flex;
      flex-direction: column;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%AD.png) center center no-repeat;
      background-size: 100% 100%;
      flex: 1;
      padding: 0 0 10px 0;
      overflow: hidden;
      margin-top: -30px;
      height: 230px;
      .content {
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0 66px;
        overflow-y: auto;
        .content-mid {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 700;
          color: #fffaee;
          line-height: 28px;
          padding: 0 10px;
          b {
            font-weight: 600;
            float: right;
          }
          span {
             font-weight: 100;
          }

        }
        .content-bottom {
          display: flex;
          flex-direction: row-reverse;
          justify-content: space-between;
          line-height: 48px;
          padding: 0 5px;
          .message-time {
            color: #fffaee;
          }
        }
      }
    }
    .feedbackBox {
      flex: none;
      height: 304px;
      border-top: 0;
      padding: 10px 105px;
      background: url(https://panda-water.com/web4/assets/images/message/%E8%83%8C%E6%99%AF%E4%B8%8B.png) center center no-repeat;
      background-size: 100% 100%;
      .question {
        font-size: 15px;
        font-family: "Microsoft YaHei";
        font-weight: 400;
        color: #ffe59f;
        line-height: 26px;
        margin-bottom: 8px;
      }
      .horiztion {
        display: flex;
        width: 100%;
        :global {
          .ant-form-item {
            &:first-child {
              width: 55%;
            }
          }
          .ant-btn {
            border-color: transparent;
            background: url(https://panda-water.com/web4/assets/images/message/提交.png) center center / 100% 100% no-repeat;
            width: 249px;
            height: 51px;
            padding: 0;
            margin: -8px 0 0 10px;
          }
        }
      }
      :global {
        .ant-form {
          .ant-form-item {
            margin-bottom: 8px!important;
            .ant-input {
              border-radius: 4px!important;
              background: #FFFEEC!important;
              border: 1px solid #ffe59f;
              &:focus, &:hover {
                border-color: #ffe59f;
              }
            }
          }
        }

      }
    }
  }
  :global {
    .ant-modal-content {
      background-color: transparent!important;
      box-shadow: none!important;
      .ant-modal-close {
        display: none!important;
      }
    }
  }
}