_login.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. padding-bottom: 3rem;
  36. }
  37. .login-tab-header {
  38. background: $tight-form-bg;
  39. text-align: center;
  40. margin-bottom: 3rem;
  41. }
  42. .btn-login-tab {
  43. background: transparent;
  44. border: none;
  45. font-size: 15px;
  46. padding: 10px 10px;
  47. &.active {
  48. background: darken($tight-form-bg, 5%);
  49. color: $white;
  50. }
  51. &:focus {
  52. outline: 0;
  53. }
  54. font-weight: bold;
  55. display: inline-block;
  56. width: 170px;
  57. color: $text-color;
  58. }
  59. .password-strength {
  60. display: block;
  61. width: 15%;
  62. overflow: visible;
  63. white-space: nowrap;
  64. padding-top: 3px;
  65. color: darken($text-color, 20%);
  66. border-top: 3px solid $red;
  67. &.password-strength-ok {
  68. width: 40%;
  69. border-top: 3px solid lighten($yellow, 10%);
  70. }
  71. &.password-strength-good {
  72. width: 100%;
  73. border-top: 3px solid lighten($green, 10%);
  74. }
  75. }
  76. .login-submit-button-row {
  77. text-align: center;
  78. margin-top: 30px;
  79. button {
  80. padding: 14px 23px;
  81. font-size: 16px;
  82. font-weight: bold;
  83. min-width: 150px;
  84. display: inline-block;
  85. border: 1px solid lighten($btn-inverse-bg, 10%);
  86. }
  87. }
  88. .login-oauth {
  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. .btn-grafana-com {
  101. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color);
  102. box-shadow: $card-shadow;
  103. img {
  104. width: 19px;
  105. vertical-align: sub;
  106. }
  107. }
  108. }
  109. .password-recovery {
  110. background: $tight-form-bg;
  111. padding: 10px;
  112. a {
  113. color: $gray-2;
  114. }
  115. }
  116. .login-divider {
  117. float: left;
  118. width: 50%;
  119. margin: 5px 25% 25px 25%;
  120. .login-divider-line {
  121. width: 100%;
  122. height: 10px;
  123. border-bottom: 1px solid $gray-1;
  124. .login-divider-text {
  125. background-color: $panel-bg;
  126. color: $gray-2;
  127. padding: 0 10px;
  128. }
  129. }
  130. }
  131. .signup-page-background {
  132. position: fixed;
  133. top: 0;
  134. left: 0;
  135. right: 0;
  136. bottom: 0;
  137. height: 100%;
  138. width: 100%;
  139. background-image: url(../img/background_tease.jpg);
  140. opacity: 0.3;
  141. z-index: -1;
  142. }
  143. .invite-box {
  144. text-align: center;
  145. border: 1px solid $tight-form-func-bg;
  146. background-color: $panel-bg;
  147. max-width: 800px;
  148. margin-left: auto;
  149. margin-right: auto;
  150. .tight-form {
  151. text-align: left;
  152. }
  153. h3 {
  154. margin-top: 30px;
  155. }
  156. .modal-close {
  157. float: right;
  158. font-size: 140%;
  159. padding: 10px;
  160. }
  161. .modal-tagline {
  162. font-size: 16px;
  163. }
  164. }
  165. @include media-breakpoint-up(md) {
  166. .login-box-logo {
  167. img {
  168. width: 125px;
  169. }
  170. .icon-gf-grafana_wordmark {
  171. top: -5px;
  172. font-size: 3rem;
  173. }
  174. }
  175. }