_login.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. .btn-grafana-net {
  101. background: url(../img/grafana_net_logo.svg);
  102. background-size: 10rem;
  103. background-repeat: no-repeat;
  104. background-position: right 35%;
  105. overflow: hidden;
  106. padding-right: 10.5rem;
  107. span {
  108. display: none;
  109. }
  110. }
  111. }
  112. .password-recovery {
  113. background: $tight-form-bg;
  114. margin-top: 10px;
  115. padding: 10px;
  116. a {
  117. color: $gray-2;
  118. }
  119. }
  120. .login-divider {
  121. float: left;
  122. width: 50%;
  123. margin: 5px 25% 25px 25%;
  124. .login-divider-line {
  125. width: 100%;
  126. height: 10px;
  127. border-bottom: 1px solid $gray-1;
  128. .login-divider-text {
  129. background-color: $panel-bg;
  130. color: $gray-2;
  131. padding: 0 10px;
  132. }
  133. }
  134. }
  135. .signup-page-background {
  136. position: fixed;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. bottom: 0;
  141. height: 100%;
  142. width: 100%;
  143. background-image: url(../img/background_tease.jpg);
  144. opacity: 0.3;
  145. z-index: -1;
  146. }
  147. .invite-box {
  148. text-align: center;
  149. border: 1px solid $tight-form-func-bg;
  150. background-color: $panel-bg;
  151. max-width: 800px;
  152. margin-left: auto;
  153. margin-right: auto;
  154. .tight-form {
  155. text-align: left;
  156. }
  157. h3 {
  158. margin-top: 30px;
  159. }
  160. .modal-close {
  161. float: right;
  162. font-size: 140%;
  163. padding: 10px;
  164. }
  165. .modal-tagline {
  166. font-size: 16px;
  167. }
  168. }
  169. @include media-breakpoint-up(md) {
  170. .login-box-logo {
  171. img {
  172. width: 125px;
  173. }
  174. .icon-gf-grafana_wordmark {
  175. top: -5px;
  176. font-size: 3rem;
  177. }
  178. }
  179. }