_login.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. .wrapper-spacer {
  60. width: 100% !important;
  61. display: block !important;
  62. padding: 0 1rem;
  63. h3 {
  64. padding-left: 1rem;
  65. }
  66. }
  67. .instructions {
  68. display: block;
  69. padding: 2rem 3rem 0;
  70. margin: 0;
  71. font-size: 1.3rem;
  72. p {
  73. margin: 0;
  74. }
  75. }
  76. h1 {
  77. font-size: 0;
  78. color: transparent;
  79. height: 216px;
  80. margin: 0;
  81. overflow: hidden;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. &.text-logo {
  86. text-align: center;
  87. font-size: 4rem;
  88. }
  89. &.custom-logo {
  90. img {
  91. max-height: 160px;
  92. }
  93. }
  94. &.default-logo {
  95. svg {
  96. height: 320px;
  97. }
  98. }
  99. }
  100. h5 {
  101. margin-top: 0;
  102. text-align: center;
  103. }
  104. form {
  105. position: relative;
  106. .padding {
  107. padding: 3rem 3rem 6rem 3rem;
  108. }
  109. input {
  110. margin-bottom: 2rem;
  111. font-size: 1.4rem;
  112. line-height: 1.5;
  113. text-align: center;
  114. font-weight: 300;
  115. -webkit-font-smoothing: auto;
  116. }
  117. .form-actions {
  118. display: block !important;
  119. width: 100% !important;
  120. text-align: center;
  121. position: absolute;
  122. bottom: 0;
  123. left: 0;
  124. right: 0;
  125. padding: 1.5rem 0;
  126. .button {
  127. margin-bottom: 2px;
  128. }
  129. button:first-child {
  130. margin-right: 1rem;
  131. }
  132. }
  133. }
  134. .alert {
  135. text-align: center;
  136. padding: 1rem 3rem;
  137. }
  138. }
  139. .twofa-secret-code {
  140. font-weight: bold;
  141. }
  142. .twofa-wrapper {
  143. margin-top: 5px;
  144. }
  145. .twofa-secret {
  146. position: absolute;
  147. opacity: 0;
  148. visibility: hidden;
  149. transition: opacity 600ms, visibility 600ms;
  150. &.show {
  151. position: static;
  152. visibility: visible;
  153. opacity: 1;
  154. }
  155. }