king
2025-05-13 1a176e4bdba485301385caac1a29102e598d25cc
src/views/login/index.scss
@@ -1,22 +1,27 @@
.login-container {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: #000000;
  background-size: cover;
  background-color: var(--mk-sys-background);
  // background-image: url('http://bms-test.kresstools.cn/Content/images/login2/bg_mid.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-position: center 100px;
  --mk-login-offset-top: 0px;
  --mk-login-offset-left: 0px;
  .logo {
    position: relative;
    height: 100px;
    padding-top: 30px;
    line-height: 80px;
    border-bottom: 2px solid #1890ff;
    border-bottom: 2px solid var(--mk-sys-color);
    img {
      max-height: 100%;
      height: 50px;
    }
    .plat-name {
      position: absolute;
      color: #ffffff;
      color: var(--mk-sys-font-color);
      line-height: 30px;
      font-size: 30px;
      font-weight: 600;
@@ -28,66 +33,117 @@
  .login-middle {
    position: relative;
    height: calc(100vh - 194px);
    height: calc(100vh - 200px);
    min-height: 420px;
    background-size: cover;
    background-position: center center;
    border-bottom: 2px solid #1890ff;
    display: flex;
    align-items: center;
    justify-content: right;
    padding-right: 20vw;
    overflow: hidden;
    .login-form-button {
      background-color: var(--mk-sys-color);
      border-color: var(--mk-sys-color);
    }
    .login-form-button[disabled] {
      background-color: var(--mk-sys-color5);
      border-color: var(--mk-sys-color5);
    }
    .login-form-button.disabled {
      background-color: var(--mk-sys-color5);
      border-color: var(--mk-sys-color5);
      color: #ffffff;
      cursor: not-allowed;
      opacity: 0.9;
    }
    .login-way-wrap {
      .login-way.active, .login-way:hover {
        color: var(--mk-sys-color);
      }
    }
    .login-form {
      float: right;
      margin-top: 5%;
      margin-right: 20%;
      position: relative;
      background: #ffffff;
      width: 22vw;
      min-width: 300px;
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid #bfbfbf;
      z-index: 3;
      top: var(--mk-login-offset-top, 0px);
      left: var(--mk-login-offset-left, 0px);
      transition: all 0.2s;
      .login-way-wrap {
        height: 50px;
        line-height: 50px;
        margin-bottom: 10px;
      .login-way-title {
        font-size: 18px;
        line-height: 45px;
        display: flex;
        .login-way {
          flex: 1;
          width: 50%;
          font-size: 17px;
          text-align: center;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          padding: 0 16px;
          transition: all 0.3s;
          border: 1px solid transparent;
          border-top: 0!important;
        }
        .login-way.active, .login-way:hover {
          color: #1890ff;
        }
        .login-way:not(.active) {
          cursor: pointer;
          background: #fafafa;
          border: 1px solid #e8e8e8;
        }
        .login-way:first-child {
          border-left: 0;
        }
        .login-way:last-child {
          border-right: 0;
        padding-top: 10px;
      }
      .login-way-title::before, .login-way-title::after {
        display: inline-block;
        content: ' ';
        height: 0.5px;
        flex: 1;
        background-color: rgba(0, 0, 0, 0.15);
        position: relative;
        top: 22px;
      }
      .scan-icon {
        position: absolute;
        right: 0px;
        top: 0px;
        font-size: 46px;
        color: #000000;
        line-height: 1;
        transform: rotate(-45deg);
        transform-origin: 0 0;
        overflow: hidden;
        padding-bottom: 10px;
        cursor: pointer;
        .anticon {
          transform-origin: 0 0;
          transform: rotate(45deg);
        }
      }
      .login-way-wrap.simple {
        .login-way {
          font-size: 18px;
          text-align: left!important;
          padding-left: 1.6vw!important;
          line-height: 60px!important;
      .login-ways {
        padding: 0 1.6vw 1.5vw;
        span {
          color: #1890ff;
          cursor: pointer;
        }
        span + span {
          margin-left: 15px;
        }
      }
      .login-ways.center {
        text-align: center;
      }
      .login-way-title::before {
        margin: 0 10px 0 1.6vw;
      }
      .login-way-title::after {
        margin: 0 1.6vw 0 10px;
      }
      .form-item-wrap {
        padding: 0.6vw 1.6vw 1.6vw;
        .ant-select-auto-complete {
          .ant-select-selection__rendered {
            height: calc(2vw + 5px);
          }
        }
        .ant-select-auto-complete.ant-select .ant-input:focus, .ant-select-auto-complete.ant-select .ant-input:hover {
          border-color: var(--mk-sys-color);
        }
      }
      .title {
        color: var(--mk-sys-color);
        font-size: 22px;
        font-weight: bold;
        margin: 20px 1.6vw 5px;
      }
      h4 {
@@ -117,27 +173,30 @@
      .btn-login {
        margin-bottom: 3vh;
        clear: both;
        height: auto;
      }
      .register-line {
        font-size: 14px;
        margin-bottom: 10px;
        height: 25px;
        float: right;
        .ant-form-item-control {
          line-height: 25px;
        }
        .register {
          color: #1890ff;
          margin-right: 10px;
        }
        .forgot {
          font-size: 14px;
          color: #1890ff;
          float: right;
        }
      }
      .minline {
        display: inline-block;
        margin-bottom: 3vh;
        margin-top: -10px;
        height: 35px;
      }
      .minline.right {
        float: right;
@@ -152,8 +211,37 @@
          }
        }
      }
      .proline {
        display: inline-block;
        margin-bottom: 10px;
        height: auto;
        margin-top: calc(-3vh + 10px);
        font-size: 13px;
        .ant-form-item-children {
          display: flex;
          align-items: flex-start;
          line-height: 1.5;
          color: rgba(0, 0, 0, 0.5);
          // .ant-checkbox-inner {
          //   width: 15px;
          //   height: 15px;
          // }
          input[type="checkbox"] {
            width: 35px;
            height: 22px;
            top: -4px;
            left: -4px;
          }
          a {
            color: var(--mk-sys-color);
          }
        }
      }
      button.vercode {
        border: 0;
        color: var(--mk-sys-color);
      }
      button:not(.vercode) {
        width: 100%;
@@ -177,6 +265,7 @@
        font-size: 16px;
        height: calc(2vw + 5px);
        min-height: 30px;
        border-radius: 0;
      }
      .ant-form label {
        font-size: 16px;
@@ -185,7 +274,7 @@
        font-size: 18px;
      }
      .anticon-eye {
        color: #1890ff;
        color: var(--mk-sys-color);
      }
    }
    .login-sync-button {
@@ -195,16 +284,19 @@
    }
  }
  .login-bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    color: var(--mk-sys-font-color);
    padding-top: 20px;
    font: 12px/150% Arial,Verdana,"\5b8b\4f53";
    p span.split {
      margin-right: 15px;
    }
    a {
      display: inline-block;
      margin-bottom: 5px;
      color: #ffffff;
      color: var(--mk-sys-font-color);
    }
  }
  .ant-btn-primary[disabled] {
@@ -252,6 +344,25 @@
        }
      }
    }
    .qr-wrap + img {
      width: 24px;
      margin-right: 5px;
      vertical-align: middle;
    }
  }
}
.mk-user-option {
  .anticon-close-circle {
    float: right;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 3px;
  }
}
.mk-user-option:hover {
  .anticon-close-circle {
    opacity: 1;
  }
}
.sync-cloud-application {
@@ -266,23 +377,8 @@
@media screen and (max-width: 500px) {
  .login-container {
    .login-middle {
      .login-form {
        float: unset;
        margin: 0 auto;
        margin-top: 5%;
      }
    }
  }
}
@media screen and (min-width: 1550px) {
  .login-container {
    .ant-tabs.ant-tabs-card {
      .ant-tabs-card-bar {
        .ant-tabs-tab {
          font-size: 20px;
        }
      }
      justify-content: center;
      padding-right: 0px;
    }
  }
}