king
2021-04-09 c4cbf2bdf4b87daf679fa183c4ca7a9da2f3d065
src/views/login/index.scss
@@ -1,54 +1,197 @@
.login-container {
  height: 100vh;
  min-height: 600px;
  background: #000000;
  background-color: #000000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  .logo {
    position: relative;
    height: 100px;
    padding-top: 30px;
    border-bottom: 2px solid #06b4f7;
    line-height: 80px;
    border-bottom: 2px solid #1890ff;
    img {
      max-height: 100%;
    }
    .plat-name {
      position: absolute;
      color: #ffffff;
      line-height: 30px;
      font-size: 30px;
      font-weight: 600;
      padding-left: 20px;
      font-family: "黑体","宋体",sans-serif,"Arial","Microsoft YaHei";
      z-index: 1;
    }
  }
  .login-middle {
    position: relative;
    height: calc(100vh - 194px);
    min-height: 420px;
    background: url('../../assets/img/loginbg.png');
    background-size: cover;
    background-position: center center;
    border-bottom: 2px solid #06b4f7;
    border-bottom: 2px solid #1890ff;
    .login-form {
      float: right;
      margin-top: 5%;
      margin-right: 20%;
      padding: 15px;
      background: #ffffff;
      width: 18vw;
      width: 22vw;
      min-width: 300px;
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid #bfbfbf;
      .login-way-wrap {
        height: 50px;
        line-height: 50px;
        margin-bottom: 10px;
        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;
        }
      }
      .login-way-wrap.simple {
        .login-way {
          font-size: 18px;
          text-align: left!important;
          padding-left: 1.6vw!important;
          line-height: 60px!important;
        }
      }
      .form-item-wrap {
        padding: 0.6vw 1.6vw 1.6vw;
      }
      h4 {
        font-size: 18px;
        font-size: 20px;
        font-weight: bold;
        color: #0A95CB;
        margin-bottom: 3vh;
      }
      .minline {
      .ant-form-item {
        font-size: 16px;
        margin-bottom: 3vh;
        height: 40px;
      }
      .ant-form-item.vercode {
        .ant-input-group {
          border: 1px solid #d9d9d9;
          border-radius: 4px;
          .ant-input {
            border: 0;
            border-right: 1px solid #d9d9d9;
          }
          .ant-input-group-addon {
            border: 0;
          }
        }
      }
      .btn-login {
        margin-bottom: 3vh;
        clear: both;
      }
      .register-line {
        font-size: 14px;
        margin-bottom: 10px;
        height: 25px;
        .ant-form-item-control {
          line-height: 25px;
        }
        .register {
          color: #1890ff;
        }
        .forgot {
          font-size: 14px;
          color: #1890ff;
          float: right;
        }
      }
      .minline {
        display: inline-block;
        margin-bottom: 3vh;
        margin-top: -10px;
      }
      button {
      .minline.right {
        float: right;
        width: 100px;
        margin-bottom: 2vh;
        .ant-select-selection {
          border: 0;
          box-shadow: none;
          .ant-select-selection-selected-value {
            float: right;
            margin-right: 10px;
          }
        }
      }
      button.vercode {
        border: 0;
      }
      button:not(.vercode) {
        width: 100%;
        height: 40px;
        line-height: 40px;
        height: calc(2vw + 10px);
        min-height: 30px;
        line-height: 1;
      }
      .ant-dropdown-link {
        float: right;
        cursor: pointer;
        line-height: 20px;
        margin-top: 10px;
        .anticon.anticon-down {
          font-size: 16px;
        }
      }
      .ant-input-affix-wrapper {
        font-size: 16px;
      }
      .ant-input {
        font-size: 16px;
        height: calc(2vw + 5px);
        min-height: 30px;
      }
      .ant-form label {
        font-size: 16px;
      }
      .ant-btn:not(.vercode) {
        font-size: 18px;
      }
      .anticon-eye {
        color: #1890ff;
      }
    }
    .login-sync-button {
      position: absolute;
      bottom: 10px;
      left: 20px;
    }
  }
  .login-bottom {
@@ -58,14 +201,45 @@
    p span.split {
      margin-right: 15px;
    }
    a {
      display: inline-block;
      margin-bottom: 5px;
      color: #ffffff;
    }
  }
  .ant-btn-primary[disabled] {
    color: #fff;
    background-color: #40a9ff;
    border-color: #40a9ff;
  }
}
.sync-cloud-application {
  .ant-modal-body {
    min-height: 176px;
  }
}
.ant-message {
  top: 50px;
  z-index: 1080;
}
@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;
        }
      }
    }
  }
}