daigang 3 лет назад
Родитель
Сommit
9a8701ed99

+ 160 - 128
keycloak-theme/login/resources/css/login.css

@@ -1,128 +1,160 @@
-* {
-  margin: 0;
-  padding: 0; }
-
-html,
-body {
-  width: 100%;
-  height: 100%; }
-
-body {
-  box-sizing: border-box;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-font-smoothing: antialiased;
-  text-rendering: optimizeLegibility;
-  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
-  background-color: #F4F7FB; }
-
-*,
-*::before,
-*::after {
-  box-sizing: inherit; }
-
-a {
-  border: none;
-  outline: none;
-  text-decoration: none;
-  -webkit-touch-callout: none;
-  -webkit-tap-highlight-color: transparent; }
-
-.c-login {
-  display: flex;
-  min-height: 100%;
-  width: 100%; }
-  .c-login__img {
-    flex: 1 1 400px;
-    display: inline-block;
-    background: url("../img/illustration.png") 50% 50%/757px 613px no-repeat; }
-  .c-login__main {
-    flex: 1 0 auto; }
-
-@media screen and (max-width: 900px) {
-  .c-login__img {
-    display: none; } }
-.c-login-form {
-  display: inline-flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
-  padding: 40px 0 80px;
-  background-color: #FFFFFF;
-  overflow: auto; }
-  .c-login-form__header {
-    display: inline-flex;
-    align-items: center; }
-  .c-login-form__logo {
-    display: inline-block;
-    width: 142px;
-    height: 36px;
-    background: url("../img/logo.png") 0 0/100% 100% no-repeat; }
-  .c-login-form__name {
-    padding-left: 10px;
-    color: #1C5CB0;
-    font-size: 28px;
-    font-weight: bold;
-    line-height: 1; }
-  .c-login-form__tip {
-    padding: 20px;
-    height: 100px; }
-    .c-login-form__tip .success {
-      color: #67C23A; }
-    .c-login-form__tip .warning {
-      color: #E6A23C; }
-    .c-login-form__tip .error {
-      color: #F56C6C; }
-    .c-login-form__tip .info {
-      color: #409EFF; }
-  .c-login-form__wrapper {
-    display: inline-flex;
-    flex-direction: column;
-    color: #C4C4C4; }
-  .c-login-form__error {
-    height: 30px;
-    color: #F56C6C;
-    font-size: 12px;
-    line-height: 24px;
-    white-space: nowrap; }
-  .c-login-form__label {
-    font-size: 24px;
-    line-height: 1; }
-  .c-login-form__section {
-    display: inline-flex;
-    align-items: center;
-    padding: 8px 0 2px;
-    border-bottom: 1px solid currentColor; }
-  .c-login-form__input {
-    width: 320px;
-    height: 30px;
-    font-size: 18px;
-    line-height: 30px;
-    border: none;
-    outline: none; }
-  .c-login-form__icon {
-    display: inline-block;
-    margin-left: 10px;
-    width: 30px;
-    height: 30px;
-    background-position: 0 0;
-    background-size: 100% 100%;
-    background-repeat: no-repeat; }
-    .c-login-form__icon.user {
-      background-image: url("../img/icon_user.png"); }
-    .c-login-form__icon.lock {
-      background-image: url("../img/icon_lock.png"); }
-  .c-login-form__submit {
-    display: inline-flex;
-    justify-content: center;
-    align-items: center;
-    width: 360px;
-    height: 40px;
-    margin-top: 50px;
-    color: #ffffff;
-    font-size: 18px;
-    border: none;
-    background-color: #1C5CB0;
-    border-radius: 8px;
-    cursor: pointer; }
-    .c-login-form__submit[disabled] {
-      background-color: #C4C4C4; }
+* {
+  margin: 0;
+  padding: 0;
+}
+
+html,
+body {
+  width: 100%;
+  height: 100%;
+}
+
+body {
+  box-sizing: border-box;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  text-rendering: optimizeLegibility;
+  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+  background-color: #F4F7FB;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: inherit;
+}
+
+a {
+  border: none;
+  outline: none;
+  text-decoration: none;
+  -webkit-touch-callout: none;
+  -webkit-tap-highlight-color: transparent;
+}
+
+.c-login {
+  display: flex;
+  min-height: 100%;
+  width: 100%;
+}
+.c-login__img {
+  flex: 1 1 400px;
+  display: inline-block;
+  background: url("../img/illustration.png") 50% 50%/757px 613px no-repeat;
+}
+.c-login__main {
+  flex: 1 0 auto;
+}
+
+@media screen and (max-width: 900px) {
+  .c-login__img {
+    display: none;
+  }
+}
+.c-login-form {
+  display: inline-flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  padding: 40px 0 80px;
+  background-color: #FFFFFF;
+  overflow: auto;
+}
+.c-login-form__header {
+  display: inline-flex;
+  align-items: center;
+}
+.c-login-form__logo {
+  display: inline-block;
+  width: 142px;
+  height: 36px;
+  background: url("../img/logo.png") 0 0/100% 100% no-repeat;
+}
+.c-login-form__name {
+  padding-left: 10px;
+  color: #1C5CB0;
+  font-size: 28px;
+  font-weight: bold;
+  line-height: 1;
+}
+.c-login-form__tip {
+  padding: 20px;
+  height: 100px;
+}
+.c-login-form__tip .success {
+  color: #67C23A;
+}
+.c-login-form__tip .warning {
+  color: #E6A23C;
+}
+.c-login-form__tip .error {
+  color: #F56C6C;
+}
+.c-login-form__tip .info {
+  color: #409EFF;
+}
+.c-login-form__wrapper {
+  display: inline-flex;
+  flex-direction: column;
+  color: #C4C4C4;
+}
+.c-login-form__error {
+  height: 30px;
+  color: #F56C6C;
+  font-size: 12px;
+  line-height: 24px;
+  white-space: nowrap;
+}
+.c-login-form__label {
+  font-size: 24px;
+  line-height: 1;
+}
+.c-login-form__section {
+  display: inline-flex;
+  align-items: center;
+  padding: 8px 0 2px;
+  border-bottom: 1px solid currentColor;
+}
+.c-login-form__input {
+  width: 320px;
+  height: 30px;
+  font-size: 18px;
+  line-height: 30px;
+  border: none;
+  outline: none;
+}
+.c-login-form__input.password {
+  -webkit-text-security: disc;
+}
+.c-login-form__icon {
+  display: inline-block;
+  margin-left: 10px;
+  width: 30px;
+  height: 30px;
+  background-position: 0 0;
+  background-size: 100% 100%;
+  background-repeat: no-repeat;
+}
+.c-login-form__icon.user {
+  background-image: url("../img/icon_user.png");
+}
+.c-login-form__icon.lock {
+  background-image: url("../img/icon_lock.png");
+}
+.c-login-form__submit {
+  display: inline-flex;
+  justify-content: center;
+  align-items: center;
+  width: 360px;
+  height: 40px;
+  margin-top: 50px;
+  color: #ffffff;
+  font-size: 18px;
+  border: none;
+  background-color: #1C5CB0;
+  border-radius: 8px;
+  cursor: pointer;
+}
+.c-login-form__submit[disabled] {
+  background-color: #C4C4C4;
+}

+ 0 - 1
keycloak-theme/login/resources/css/login.scss

@@ -142,7 +142,6 @@ a {
     outline: none;
 
     &.password {
-      text-security: disc;
       -webkit-text-security: disc;
     }
   }

+ 137 - 112
keycloak-theme/login/resources/css/password.css

@@ -1,112 +1,137 @@
-* {
-  margin: 0;
-  padding: 0; }
-
-html,
-body {
-  width: 100%;
-  height: 100%; }
-
-body {
-  box-sizing: border-box;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-font-smoothing: antialiased;
-  text-rendering: optimizeLegibility;
-  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
-  background-color: #FFFFFF; }
-
-*,
-*::before,
-*::after {
-  box-sizing: inherit; }
-
-a {
-  border: none;
-  outline: none;
-  text-decoration: none;
-  -webkit-touch-callout: none;
-  -webkit-tap-highlight-color: transparent; }
-
-.c-login {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  min-height: 100%;
-  width: 100%; }
-  .c-login__main {
-    flex: 1 0 auto;
-    max-height: 100%;
-    overflow: auto; }
-
-.c-login-form {
-  display: inline-flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
-  padding: 0 0 40px;
-  overflow: auto; }
-  .c-login-form__header {
-    color: #1C5CB0;
-    font-size: 28px;
-    font-weight: bold;
-    text-align: center; }
-  .c-login-form__tip {
-    padding: 20px;
-    height: 60px; }
-    .c-login-form__tip .success {
-      color: #67C23A; }
-    .c-login-form__tip .warning {
-      color: #E6A23C; }
-    .c-login-form__tip .error {
-      color: #F56C6C; }
-    .c-login-form__tip .info {
-      color: #409EFF; }
-  .c-login-form__section {
-    display: flex;
-    flex-direction: column;
-    align-items: center; }
-  .c-login-form__wrapper {
-    display: flex;
-    align-items: center; }
-  .c-login-form__label {
-    width: 150px;
-    margin-right: 20px;
-    color: #333333;
-    font-size: 16px;
-    text-align: right; }
-    .c-login-form__label::before {
-      content: '*';
-      color: #FF0000;
-      font-size: 14px; }
-  .c-login-form__input {
-    padding: 0 10px;
-    width: 320px;
-    height: 30px;
-    font-size: 14px;
-    line-height: 30px;
-    border: 1px solid #C4C4C4;
-    outline: none; }
-  .c-login-form__error {
-    display: inline-block;
-    width: 320px;
-    height: 30px;
-    margin-left: 170px;
-    color: #F56C6C;
-    font-size: 12px;
-    line-height: 24px;
-    white-space: nowrap; }
-  .c-login-form__submit {
-    display: inline-flex;
-    justify-content: center;
-    align-items: center;
-    height: 40px;
-    padding: 0 40px;
-    margin-top: 60px;
-    color: #ffffff;
-    font-size: 18px;
-    border: none;
-    background-color: #1C5CB0;
-    border-radius: 8px;
-    cursor: pointer; }
-    .c-login-form__submit[disabled] {
-      background-color: #C4C4C4; }
+* {
+  margin: 0;
+  padding: 0;
+}
+
+html,
+body {
+  width: 100%;
+  height: 100%;
+}
+
+body {
+  box-sizing: border-box;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  text-rendering: optimizeLegibility;
+  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+  background-color: #FFFFFF;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: inherit;
+}
+
+a {
+  border: none;
+  outline: none;
+  text-decoration: none;
+  -webkit-touch-callout: none;
+  -webkit-tap-highlight-color: transparent;
+}
+
+.c-login {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  min-height: 100%;
+  width: 100%;
+}
+.c-login__main {
+  flex: 1 0 auto;
+  max-height: 100%;
+  overflow: auto;
+}
+
+.c-login-form {
+  display: inline-flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  padding: 0 0 40px;
+  overflow: auto;
+}
+.c-login-form__header {
+  color: #1C5CB0;
+  font-size: 28px;
+  font-weight: bold;
+  text-align: center;
+}
+.c-login-form__tip {
+  padding: 20px;
+  height: 60px;
+}
+.c-login-form__tip .success {
+  color: #67C23A;
+}
+.c-login-form__tip .warning {
+  color: #E6A23C;
+}
+.c-login-form__tip .error {
+  color: #F56C6C;
+}
+.c-login-form__tip .info {
+  color: #409EFF;
+}
+.c-login-form__section {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+}
+.c-login-form__wrapper {
+  display: flex;
+  align-items: center;
+}
+.c-login-form__label {
+  width: 150px;
+  margin-right: 20px;
+  color: #333333;
+  font-size: 16px;
+  text-align: right;
+}
+.c-login-form__label::before {
+  content: "*";
+  color: #FF0000;
+  font-size: 14px;
+}
+.c-login-form__input {
+  padding: 0 10px;
+  width: 320px;
+  height: 30px;
+  font-size: 14px;
+  line-height: 30px;
+  border: 1px solid #C4C4C4;
+  outline: none;
+}
+.c-login-form__input.password {
+  -webkit-text-security: disc;
+}
+.c-login-form__error {
+  display: inline-block;
+  width: 320px;
+  height: 30px;
+  margin-left: 170px;
+  color: #F56C6C;
+  font-size: 12px;
+  line-height: 24px;
+  white-space: nowrap;
+}
+.c-login-form__submit {
+  display: inline-flex;
+  justify-content: center;
+  align-items: center;
+  height: 40px;
+  padding: 0 40px;
+  margin-top: 60px;
+  color: #ffffff;
+  font-size: 18px;
+  border: none;
+  background-color: #1C5CB0;
+  border-radius: 8px;
+  cursor: pointer;
+}
+.c-login-form__submit[disabled] {
+  background-color: #C4C4C4;
+}

+ 0 - 1
keycloak-theme/login/resources/css/password.scss

@@ -121,7 +121,6 @@ a {
     outline: none;
 
     &.password {
-      text-security: disc;
       -webkit-text-security: disc;
     }
   }

+ 143 - 118
keycloak-theme/login/resources/css/totp.css

@@ -1,118 +1,143 @@
-* {
-  margin: 0;
-  padding: 0; }
-
-html,
-body {
-  width: 100%;
-  height: 100%; }
-
-body {
-  box-sizing: border-box;
-  -moz-osx-font-smoothing: grayscale;
-  -webkit-font-smoothing: antialiased;
-  text-rendering: optimizeLegibility;
-  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
-  background-color: #F4F7FB; }
-
-*,
-*::before,
-*::after {
-  box-sizing: inherit; }
-
-a {
-  border: none;
-  outline: none;
-  text-decoration: none;
-  -webkit-touch-callout: none;
-  -webkit-tap-highlight-color: transparent; }
-
-.c-login {
-  display: flex;
-  min-height: 100%;
-  width: 100%; }
-  .c-login__img {
-    flex: 1 1 0;
-    display: inline-block;
-    background: url("../img/illustration.png") 50% 50%/757px 613px no-repeat; }
-  .c-login__main {
-    flex: 1 1 0; }
-
-@media screen and (max-width: 900px) {
-  .c-login__img {
-    display: none; } }
-.c-login-form {
-  display: inline-flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
-  padding: 40px 0 80px;
-  background-color: #FFFFFF;
-  overflow: auto; }
-  .c-login-form__header {
-    display: inline-flex;
-    align-items: center; }
-  .c-login-form__logo {
-    display: inline-block;
-    width: 142px;
-    height: 36px;
-    background: url("../img/logo.png") 0 0/100% 100% no-repeat; }
-  .c-login-form__name {
-    padding-left: 10px;
-    color: #1C5CB0;
-    font-size: 28px;
-    font-weight: bold;
-    line-height: 1; }
-  .c-login-form__title {
-    padding: 60px 0 40px;
-    color: #1C5CB0;
-    font-size: 18px;
-    font-weight: bold; }
-  .c-login-form__info {
-    width: 400px;
-    color: #333333;
-    font-size: 16px;
-    line-height: 20px; }
-    .c-login-form__info p {
-      line-height: 24px; }
-  .c-login-form__qr {
-    max-width: 150px;
-    max-height: 150px; }
-  .c-login-form__retry {
-    color: #1C5CB0;
-    font-size: 12px; }
-  .c-login-form__required {
-    color: #EF1D1D; }
-    .c-login-form__required ::before {
-      content: '*';
-      color: #FF0000;
-      font-size: 14px; }
-  .c-login-form__input {
-    padding: 0 10px;
-    margin-top: 6px;
-    width: 240px;
-    height: 30px;
-    font-size: 14px;
-    line-height: 30px;
-    border: 1px solid #C4C4C4;
-    outline: none; }
-  .c-login-form__error {
-    height: 30px;
-    color: #F56C6C;
-    font-size: 12px;
-    line-height: 24px;
-    white-space: nowrap; }
-  .c-login-form__submit {
-    display: inline-flex;
-    justify-content: center;
-    align-items: center;
-    height: 40px;
-    padding: 0 40px;
-    color: #ffffff;
-    font-size: 18px;
-    border: none;
-    background-color: #1C5CB0;
-    border-radius: 8px;
-    cursor: pointer; }
-    .c-login-form__submit[disabled] {
-      background-color: #C4C4C4; }
+* {
+  margin: 0;
+  padding: 0;
+}
+
+html,
+body {
+  width: 100%;
+  height: 100%;
+}
+
+body {
+  box-sizing: border-box;
+  -moz-osx-font-smoothing: grayscale;
+  -webkit-font-smoothing: antialiased;
+  text-rendering: optimizeLegibility;
+  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
+  background-color: #F4F7FB;
+}
+
+*,
+*::before,
+*::after {
+  box-sizing: inherit;
+}
+
+a {
+  border: none;
+  outline: none;
+  text-decoration: none;
+  -webkit-touch-callout: none;
+  -webkit-tap-highlight-color: transparent;
+}
+
+.c-login {
+  display: flex;
+  min-height: 100%;
+  width: 100%;
+}
+.c-login__img {
+  flex: 1 1 0;
+  display: inline-block;
+  background: url("../img/illustration.png") 50% 50%/757px 613px no-repeat;
+}
+.c-login__main {
+  flex: 1 1 0;
+}
+
+@media screen and (max-width: 900px) {
+  .c-login__img {
+    display: none;
+  }
+}
+.c-login-form {
+  display: inline-flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  padding: 40px 0 80px;
+  background-color: #FFFFFF;
+  overflow: auto;
+}
+.c-login-form__header {
+  display: inline-flex;
+  align-items: center;
+}
+.c-login-form__logo {
+  display: inline-block;
+  width: 142px;
+  height: 36px;
+  background: url("../img/logo.png") 0 0/100% 100% no-repeat;
+}
+.c-login-form__name {
+  padding-left: 10px;
+  color: #1C5CB0;
+  font-size: 28px;
+  font-weight: bold;
+  line-height: 1;
+}
+.c-login-form__title {
+  padding: 60px 0 40px;
+  color: #1C5CB0;
+  font-size: 18px;
+  font-weight: bold;
+}
+.c-login-form__info {
+  width: 400px;
+  color: #333333;
+  font-size: 16px;
+  line-height: 20px;
+}
+.c-login-form__info p {
+  line-height: 24px;
+}
+.c-login-form__qr {
+  max-width: 150px;
+  max-height: 150px;
+}
+.c-login-form__retry {
+  color: #1C5CB0;
+  font-size: 12px;
+}
+.c-login-form__required {
+  color: #EF1D1D;
+}
+.c-login-form__required ::before {
+  content: "*";
+  color: #FF0000;
+  font-size: 14px;
+}
+.c-login-form__input {
+  padding: 0 10px;
+  margin-top: 6px;
+  width: 240px;
+  height: 30px;
+  font-size: 14px;
+  line-height: 30px;
+  border: 1px solid #C4C4C4;
+  outline: none;
+}
+.c-login-form__error {
+  height: 30px;
+  color: #F56C6C;
+  font-size: 12px;
+  line-height: 24px;
+  white-space: nowrap;
+}
+.c-login-form__submit {
+  display: inline-flex;
+  justify-content: center;
+  align-items: center;
+  height: 40px;
+  padding: 0 40px;
+  color: #ffffff;
+  font-size: 18px;
+  border: none;
+  background-color: #1C5CB0;
+  border-radius: 8px;
+  cursor: pointer;
+}
+.c-login-form__submit[disabled] {
+  background-color: #C4C4C4;
+}