_login.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. .login-container {
  2. background-position: left;
  3. background-size: 60%;
  4. background-repeat: no-repeat;
  5. min-width: 100%;
  6. margin-left: 0;
  7. margin-top: -26px; /* BAD HACK - experiement to see how it looks */
  8. padding-top: $spacer * 5; /* BAD HACK - experiement to see how it looks */
  9. }
  10. .login-form {
  11. display: inline-block;
  12. max-width: 24rem;
  13. }
  14. .login-box {
  15. max-width: 700px;
  16. margin: 0 auto; /* was $spacer * 2 auto 0 auto; */
  17. }
  18. .login-box-logo {
  19. text-align: center;
  20. margin-bottom: $spacer * 2;
  21. img {
  22. width: 6rem;
  23. }
  24. .icon-gf-grafana_wordmark {
  25. color: $link-color;
  26. position: relative;
  27. top: -4.5rem;
  28. font-size: 2.5rem;
  29. text-shadow: 3px 3px 5px black;
  30. }
  31. }
  32. .login-inner-box {
  33. background: $panel-bg;
  34. text-align: center;
  35. }
  36. .login-tab-header {
  37. background: $tight-form-bg;
  38. text-align: center;
  39. margin-bottom: 3rem;
  40. }
  41. .btn-login-tab {
  42. background: transparent;
  43. border: none;
  44. font-size: 15px;
  45. padding: 10px 10px;
  46. &.active {
  47. background: darken($tight-form-bg, 5%);
  48. color: $white;
  49. }
  50. &:focus {
  51. outline: 0;
  52. }
  53. font-weight: bold;
  54. display: inline-block;
  55. width: 170px;
  56. color: $text-color;
  57. }
  58. .password-strength {
  59. display: block;
  60. width: 15%;
  61. overflow: visible;
  62. white-space: nowrap;
  63. padding-top: 3px;
  64. color: darken($text-color, 20%);
  65. border-top: 3px solid $red;
  66. &.password-strength-ok {
  67. width: 40%;
  68. border-top: 3px solid lighten($yellow, 10%);
  69. }
  70. &.password-strength-good {
  71. width: 100%;
  72. border-top: 3px solid lighten($green, 10%);
  73. }
  74. }
  75. .login-submit-button-row {
  76. text-align: center;
  77. margin-top: 30px;
  78. button {
  79. padding: 14px 23px;
  80. font-size: 16px;
  81. font-weight: bold;
  82. min-width: 150px;
  83. display: inline-block;
  84. border: 1px solid lighten($btn-inverse-bg, 10%);
  85. }
  86. }
  87. .login-oauth {
  88. margin-bottom: 15px;
  89. .btn {
  90. margin: 5px;
  91. }
  92. .btn-google {
  93. background: #dd4b39;
  94. color: white;
  95. }
  96. .btn-github {
  97. background: #555;
  98. color: white;
  99. }
  100. }
  101. .password-recovery {
  102. background: $tight-form-bg;
  103. margin-top: 10px;
  104. padding: 10px;
  105. a {
  106. color: $gray-2;
  107. }
  108. }
  109. .login-divider {
  110. float: left;
  111. width: 50%;
  112. margin: 5px 25% 25px 25%;
  113. .login-divider-line {
  114. width: 100%;
  115. height: 10px;
  116. border-bottom: 1px solid $gray-1;
  117. .login-divider-text {
  118. background-color: $panel-bg;
  119. color: $gray-2;
  120. padding: 0 10px;
  121. }
  122. }
  123. }
  124. .signup-page-background {
  125. position: fixed;
  126. top: 0;
  127. left: 0;
  128. right: 0;
  129. bottom: 0;
  130. height: 100%;
  131. width: 100%;
  132. background-image: url(../img/background_tease.jpg);
  133. opacity: 0.3;
  134. z-index: -1;
  135. }
  136. .invite-box {
  137. text-align: center;
  138. border: 1px solid $tight-form-func-bg;
  139. background-color: $panel-bg;
  140. max-width: 800px;
  141. margin-left: auto;
  142. margin-right: auto;
  143. .tight-form {
  144. text-align: left;
  145. }
  146. h3 {
  147. margin-top: 30px;
  148. }
  149. .modal-close {
  150. float: right;
  151. font-size: 140%;
  152. padding: 10px;
  153. }
  154. .modal-tagline {
  155. font-size: 16px;
  156. }
  157. }
  158. @include media-breakpoint-up(md) {
  159. .login-box-logo {
  160. img {
  161. width: 125px;
  162. }
  163. .icon-gf-grafana_wordmark {
  164. top: -5px;
  165. font-size: 3rem;
  166. }
  167. }
  168. }