_login.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. font-size: 4rem;
  87. }
  88. &.custom-logo {
  89. img {
  90. max-height: 160px;
  91. }
  92. }
  93. &.default-logo {
  94. svg {
  95. height: 320px;
  96. }
  97. }
  98. }
  99. h5 {
  100. margin-top: 0;
  101. text-align: center;
  102. }
  103. form {
  104. position: relative;
  105. .padding {
  106. padding: 3rem 3rem 6rem 3rem;
  107. }
  108. input {
  109. margin-bottom: 2rem;
  110. font-size: 1.4rem;
  111. line-height: 1.5;
  112. text-align: center;
  113. font-weight: 300;
  114. -webkit-font-smoothing: auto;
  115. }
  116. .form-actions {
  117. display: block !important;
  118. width: 100% !important;
  119. text-align: center;
  120. position: absolute;
  121. bottom: 0;
  122. left: 0;
  123. right: 0;
  124. padding: 1.5rem 0;
  125. .button {
  126. margin-bottom: 2px;
  127. }
  128. button:first-child {
  129. margin-right: 1rem;
  130. }
  131. }
  132. }
  133. .alert {
  134. text-align: center;
  135. padding: 1rem 3rem;
  136. }
  137. }
  138. .twofa-secret-code {
  139. font-weight: bold;
  140. }
  141. .twofa-wrapper {
  142. margin-top: 5px;
  143. }
  144. .twofa-secret {
  145. position: absolute;
  146. opacity: 0;
  147. visibility: hidden;
  148. transition: opacity 600ms, visibility 600ms;
  149. &.show {
  150. position: static;
  151. visibility: visible;
  152. opacity: 1;
  153. }
  154. }