_login.scss 3.0 KB

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