password.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. $blue: #1C5CB0;
  2. $gray: #C4C4C4;
  3. $black: #333333;
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. html,
  9. body {
  10. width: 100%;
  11. height: 100%;
  12. }
  13. body {
  14. box-sizing: border-box;
  15. -moz-osx-font-smoothing: grayscale;
  16. -webkit-font-smoothing: antialiased;
  17. text-rendering: optimizeLegibility;
  18. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  19. background-color: #FFFFFF;
  20. }
  21. *,
  22. *::before,
  23. *::after {
  24. box-sizing: inherit;
  25. }
  26. a {
  27. border: none;
  28. outline: none;
  29. text-decoration: none;
  30. -webkit-touch-callout: none;
  31. -webkit-tap-highlight-color: transparent;
  32. }
  33. .c-login {
  34. display: flex;
  35. justify-content: center;
  36. align-items: center;
  37. min-height: 100%;
  38. width: 100%;
  39. &__main {
  40. flex: 1 0 auto;
  41. max-height: 100%;
  42. overflow: auto;
  43. }
  44. }
  45. .c-login-form {
  46. display: inline-flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. align-items: center;
  50. padding: 0 0 40px;
  51. overflow: auto;
  52. &__header {
  53. color: $blue;
  54. font-size: 28px;
  55. font-weight: bold;
  56. text-align: center;
  57. }
  58. &__tip {
  59. padding: 20px;
  60. height: 60px;
  61. .success {
  62. color: #67C23A;
  63. }
  64. .warning {
  65. color: #E6A23C;
  66. }
  67. .error {
  68. color: #F56C6C;
  69. }
  70. .info {
  71. color: #409EFF;
  72. }
  73. }
  74. &__section {
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. }
  79. &__wrapper {
  80. display: flex;
  81. align-items: center;
  82. }
  83. &__label {
  84. width: 150px;
  85. margin-right: 20px;
  86. color: $black;
  87. font-size: 16px;
  88. text-align: right;
  89. &::before {
  90. content: '*';
  91. color: #FF0000;
  92. font-size: 14px;
  93. }
  94. }
  95. &__input {
  96. padding: 0 10px;
  97. width: 320px;
  98. height: 30px;
  99. font-size: 14px;
  100. line-height: 30px;
  101. border: 1px solid $gray;
  102. outline: none;
  103. &.password {
  104. -webkit-text-security: disc;
  105. }
  106. }
  107. &__error {
  108. display: inline-block;
  109. width: 320px;
  110. height: 30px;
  111. margin-left: 170px;
  112. color: #F56C6C;
  113. font-size: 12px;
  114. line-height: 24px;
  115. white-space: nowrap;
  116. }
  117. &__submit {
  118. display: inline-flex;
  119. justify-content: center;
  120. align-items: center;
  121. height: 40px;
  122. padding: 0 40px;
  123. margin-top: 60px;
  124. color: #ffffff;
  125. font-size: 18px;
  126. border: none;
  127. background-color: $blue;
  128. border-radius: 8px;
  129. cursor: pointer;
  130. &[disabled] {
  131. background-color: $gray;
  132. }
  133. }
  134. }