_login.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. #admin-login {
  2. @extend %vertical-align;
  3. max-width: 24rem;
  4. margin: 0 auto;
  5. &.wide {
  6. max-width: 50rem;
  7. h1 {
  8. height: 100px;
  9. &.custom-logo img {
  10. height: 80px;
  11. }
  12. }
  13. form {
  14. > .padding {
  15. padding: 3rem 2rem 8rem 2rem;
  16. > div {
  17. width: 49%;
  18. display: inline-block;
  19. @include breakpoint(mobile-only) {
  20. width: 100%;
  21. margin-right: 0;
  22. }
  23. }
  24. .form-field {
  25. padding: 0 1rem;
  26. }
  27. }
  28. label {
  29. padding: 0;
  30. }
  31. input {
  32. margin-bottom: 1rem;
  33. text-align: left;
  34. @include placeholder {
  35. font-size: 1rem;
  36. line-height: 2rem;
  37. }
  38. }
  39. }
  40. .grid {
  41. display: block;
  42. }
  43. .form-label, .form-data {
  44. display: block;
  45. width: 100%;
  46. @include flex(1);
  47. }
  48. }
  49. .form-field {
  50. padding-left: 0;
  51. margin-bottom: 0;
  52. }
  53. .form-label {
  54. display: none;
  55. }
  56. .form-data {
  57. padding-right: 0;
  58. }
  59. .form-description {
  60. display: block;
  61. margin-top: -15px;
  62. padding-bottom: 15px;
  63. text-align: center;
  64. font-size: 110%;
  65. }
  66. .wrapper-spacer {
  67. width: 100% !important;
  68. display: block !important;
  69. padding: 0 1rem;
  70. h3 {
  71. padding-left: 1rem;
  72. }
  73. }
  74. .instructions {
  75. display: block;
  76. padding: 2rem 3rem 0;
  77. margin: 0;
  78. font-size: 1.3rem;
  79. p {
  80. margin: 0;
  81. }
  82. }
  83. h1 {
  84. font-size: 0;
  85. color: transparent;
  86. height: 216px;
  87. margin: 0;
  88. overflow: hidden;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. &.text-logo {
  93. text-align: center;
  94. font-size: 4rem;
  95. }
  96. &.custom-logo {
  97. img {
  98. max-height: 160px;
  99. }
  100. }
  101. &.default-logo {
  102. svg {
  103. height: 320px;
  104. }
  105. }
  106. }
  107. h5 {
  108. margin-top: 0;
  109. text-align: center;
  110. }
  111. form {
  112. position: relative;
  113. .padding {
  114. padding: 3rem 3rem 6rem 3rem;
  115. }
  116. input {
  117. margin-bottom: 2rem;
  118. font-size: 1.4rem;
  119. line-height: 1.5;
  120. text-align: center;
  121. font-weight: 300;
  122. -webkit-font-smoothing: auto;
  123. }
  124. .form-actions {
  125. display: block !important;
  126. width: 100% !important;
  127. text-align: center;
  128. position: absolute;
  129. bottom: 0;
  130. left: 0;
  131. right: 0;
  132. padding: 1.5rem 0;
  133. .button {
  134. margin-bottom: 2px;
  135. }
  136. button:first-child {
  137. margin-right: 1rem;
  138. }
  139. }
  140. }
  141. .alert {
  142. text-align: center;
  143. padding: 1rem 3rem;
  144. }
  145. }
  146. .twofa-secret-code {
  147. font-weight: bold;
  148. }
  149. .twofa-wrapper {
  150. margin-top: 5px;
  151. }
  152. .twofa-secret {
  153. position: absolute;
  154. opacity: 0;
  155. visibility: hidden;
  156. transition: opacity 600ms, visibility 600ms;
  157. &.show {
  158. position: static;
  159. visibility: visible;
  160. opacity: 1;
  161. }
  162. }