_login.scss 3.1 KB

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