_login.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. }
  10. form {
  11. > .padding {
  12. padding: 3rem 2rem 8rem 2rem;
  13. > div {
  14. width: 49%;
  15. display: inline-block;
  16. @include breakpoint(mobile-only) {
  17. width: 100%;
  18. margin-right: 0;
  19. }
  20. }
  21. .form-field {
  22. padding: 0 1rem;
  23. }
  24. }
  25. label {
  26. padding: 0;
  27. }
  28. input {
  29. margin-bottom: 1rem;
  30. text-align: left;
  31. @include placeholder {
  32. font-size: 1rem;
  33. line-height: 2rem;
  34. }
  35. }
  36. }
  37. .grid {
  38. display: block;
  39. }
  40. .form-label, .form-data {
  41. display: block;
  42. width: 100%;
  43. @include flex(1);
  44. }
  45. }
  46. .form-field {
  47. padding-left: 0;
  48. margin-bottom: 0;
  49. }
  50. .form-label {
  51. display: none;
  52. }
  53. .form-data {
  54. padding-right: 0;
  55. }
  56. .wrapper-spacer {
  57. width: 100% !important;
  58. display: block !important;
  59. padding: 0 1rem;
  60. h3 {
  61. padding-left: 1rem;
  62. }
  63. }
  64. .instructions {
  65. display: block;
  66. padding: 2rem 3rem 0;
  67. margin: 0;
  68. font-size: 1.3rem;
  69. p {
  70. margin: 0;
  71. }
  72. }
  73. h1 {
  74. font-size: 0;
  75. color: transparent;
  76. height: 216px;
  77. margin: 0;
  78. }
  79. h5 {
  80. margin-top: 0;
  81. text-align: center;
  82. }
  83. form {
  84. position: relative;
  85. .padding {
  86. padding: 3rem 3rem 6rem 3rem;
  87. }
  88. input {
  89. margin-bottom: 2rem;
  90. font-size: 1.4rem;
  91. line-height: 1.5;
  92. text-align: center;
  93. font-weight: 300;
  94. -webkit-font-smoothing: auto;
  95. }
  96. .form-actions {
  97. display: block !important;
  98. width: 100% !important;
  99. text-align: center;
  100. position: absolute;
  101. bottom: 0;
  102. left: 0;
  103. right: 0;
  104. padding: 1.5rem 3rem;
  105. button:first-child {
  106. margin-right: 1rem;
  107. }
  108. }
  109. }
  110. .alert {
  111. text-align: center;
  112. padding: 1rem 3rem;
  113. }
  114. }
  115. .twofa-secret-code {
  116. font-weight: bold;
  117. }
  118. button[data-2fa-regenerate] {
  119. margin-top: 5px;
  120. }
  121. .twofa-secret {
  122. position: absolute;
  123. opacity: 0;
  124. visibility: hidden;
  125. transition: opacity 600ms, visibility 600ms;
  126. &.show {
  127. position: static;
  128. visibility: visible;
  129. opacity: 1;
  130. }
  131. }