_login.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. $login-border: #8daac5;
  2. .login {
  3. background-position: center;
  4. min-height: 85vh;
  5. background-repeat: no-repeat;
  6. min-width: 100%;
  7. margin-left: 0;
  8. background-color: $black;
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. background-image: url(../img/heatmap_bg_test.svg);
  13. background-size: cover;
  14. }
  15. input:-webkit-autofill,
  16. input:-webkit-autofill:hover,
  17. input:-webkit-autofill:focus,
  18. input:-webkit-autofill,
  19. textarea:-webkit-autofill,
  20. textarea:-webkit-autofill:hover,
  21. textarea:-webkit-autofill:focus,
  22. select:-webkit-autofill,
  23. select:-webkit-autofill:hover,
  24. select:-webkit-autofill:focus {
  25. -webkit-box-shadow: 0 0 0px 1000px $black inset;
  26. -webkit-text-fill-color: $gray-7 !important;
  27. }
  28. .login-form-group {
  29. display: flex;
  30. flex-direction: column;
  31. width: 100%;
  32. align-items: center;
  33. margin-bottom: 1rem;
  34. }
  35. .login-form {
  36. margin-bottom: 1rem;
  37. width: 100%;
  38. }
  39. .login-form-input {
  40. border: 1px solid $login-border;
  41. border-radius: 4px;
  42. opacity: .6;
  43. &:focus {
  44. border: 1px solid $login-border;
  45. }
  46. }
  47. .login-button-group {
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. justify-content:space-between;
  52. width: 100%;
  53. margin-top: .5rem
  54. }
  55. .login-button-forgot-password {
  56. padding-top: 1rem;
  57. }
  58. .login-text {
  59. font-size: $font-size-sm;
  60. }
  61. .login-content {
  62. max-width: 700px;
  63. display: flex;
  64. align-items: stretch;
  65. flex-direction: column;
  66. position: relative;
  67. z-index: 1;
  68. }
  69. .login-branding {
  70. width: 100%;
  71. display: flex;
  72. flex: 1;
  73. flex-direction: column;
  74. align-items: center;
  75. justify-content: center;
  76. flex-grow: 0;
  77. .logo-icon {
  78. width: 70px;
  79. margin-bottom: 15px;
  80. }
  81. .icon-gf-grafana_wordmark {
  82. color: $link-color;
  83. position: relative;
  84. font-size: 2rem;
  85. text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  86. }
  87. }
  88. .login-inner-box {
  89. text-align: center;
  90. padding: 2rem 4rem;
  91. display: flex;
  92. flex-direction: column;
  93. align-items: center;
  94. justify-content: center;
  95. flex-grow: 1;
  96. max-width: 415px;
  97. }
  98. .login-tab-header {
  99. background: $tight-form-bg;
  100. text-align: center;
  101. margin-bottom: 3rem;
  102. }
  103. .btn-signup {
  104. color: $white;
  105. border: 1px solid $login-border;
  106. background-color: $btn-semi-transparent;
  107. }
  108. .btn-login-tab {
  109. background: transparent;
  110. border: none;
  111. font-size: 15px;
  112. padding: 10px 10px;
  113. &.active {
  114. background: darken($tight-form-bg, 5%);
  115. color: $white;
  116. }
  117. &:focus {
  118. outline: 0;
  119. }
  120. font-weight: bold;
  121. display: inline-block;
  122. width: 170px;
  123. color: $text-color;
  124. }
  125. .password-strength {
  126. display: block;
  127. width: 15%;
  128. overflow: visible;
  129. white-space: nowrap;
  130. padding-top: 3px;
  131. color: darken($text-color, 20%);
  132. border-top: 3px solid $red;
  133. &.password-strength-ok {
  134. width: 40%;
  135. border-top: 3px solid lighten($yellow, 10%);
  136. }
  137. &.password-strength-good {
  138. width: 100%;
  139. border-top: 3px solid lighten($green, 10%);
  140. }
  141. }
  142. .login-submit-button-row {
  143. text-align: center;
  144. margin-top: 30px;
  145. button {
  146. padding: 14px 23px;
  147. font-size: 16px;
  148. font-weight: bold;
  149. min-width: 150px;
  150. display: inline-block;
  151. border: 1px solid lighten($btn-inverse-bg, 10%);
  152. }
  153. }
  154. .login-oauth {
  155. width: 100%;
  156. }
  157. .password-recovery {
  158. background: $tight-form-bg;
  159. padding: 10px;
  160. a {
  161. color: $gray-2;
  162. }
  163. }
  164. .login-divider {
  165. float: left;
  166. width: 100%;
  167. margin: 0 25% 1rem 25%;
  168. display: flex;
  169. justify-content: space-between;
  170. .login-divider-line {
  171. width: 110px;
  172. height: 10px;
  173. border-bottom: 1px solid $login-border;
  174. .login-divider-text {
  175. background-color: $panel-bg;
  176. color: $gray-2;
  177. padding: 0 10px;
  178. }
  179. }
  180. }
  181. .login-signup-box {
  182. display: flex;
  183. align-items: center;
  184. justify-content: flex-end;
  185. width: 100%;
  186. margin-top: 1rem
  187. }
  188. .login-signup-title {
  189. justify-self: flex-start;
  190. flex: 1;
  191. text-align: left;
  192. }
  193. .login-btn {
  194. width: 100%;
  195. margin: 0 0 1rem;
  196. }
  197. .signup-page-background {
  198. position: fixed;
  199. top: 0;
  200. left: 0;
  201. right: 0;
  202. bottom: 0;
  203. height: 100%;
  204. width: 100%;
  205. background-image: url(../img/background_tease.jpg);
  206. opacity: 0.3;
  207. z-index: -1;
  208. }
  209. .invite-box {
  210. text-align: center;
  211. border: 1px solid $tight-form-func-bg;
  212. background-color: $panel-bg;
  213. max-width: 800px;
  214. margin-left: auto;
  215. margin-right: auto;
  216. .tight-form {
  217. text-align: left;
  218. }
  219. h3 {
  220. margin-top: 30px;
  221. }
  222. .modal-close {
  223. float: right;
  224. font-size: 140%;
  225. padding: 10px;
  226. }
  227. .modal-tagline {
  228. font-size: 16px;
  229. }
  230. }
  231. @include media-breakpoint-up(sm) {
  232. .login-content {
  233. flex-direction: row;
  234. }
  235. .login-branding {
  236. width: 35%;
  237. padding: 4rem 2rem;
  238. border-right: 1px solid $login-border;
  239. justify-content: flex-start;
  240. }
  241. .login-inner-box {
  242. width: 65%;
  243. padding: 1rem 2rem;
  244. }
  245. .login-branding {
  246. .logo-icon {
  247. width: 80px;
  248. }
  249. }
  250. }
  251. @include media-breakpoint-up(md) {
  252. .login-branding {
  253. width: 45%;
  254. padding: 2rem 4rem;
  255. .logo-icon {
  256. width: 130px;
  257. }
  258. .icon-gf-grafana_wordmark {
  259. font-size: 3.2rem;
  260. }
  261. }
  262. .login-inner-box {
  263. width: 55%;
  264. padding: 1rem 4rem;
  265. }
  266. .login-button-group {
  267. flex-direction: row;
  268. }
  269. .login-button-forgot-password {
  270. padding-top: 0;
  271. padding-left: 10px;
  272. }
  273. }
  274. @include media-breakpoint-up(lg) {
  275. .login {
  276. min-height: 100vh;
  277. }
  278. .login-form-input {
  279. min-width: 300px;
  280. }
  281. }
  282. .login-bg {
  283. position: absolute;
  284. top: 0;
  285. left: 0;
  286. right: 0;
  287. perspective: 1000px;
  288. display: flex;
  289. flex-wrap: wrap;
  290. z-index: 0;
  291. flex-direction: column;
  292. justify-content: stretch;
  293. justify-items: stretch;
  294. height: 100%;
  295. .login-bg__row {
  296. display: flex;
  297. flex-grow: 1;
  298. height: 10px;
  299. justify-content: stretch;
  300. }
  301. .login-bg__item {
  302. width: 4%;
  303. height: 100%;
  304. flex-grow: 1;
  305. // background: hotpink;
  306. // border:1px solid #0F1926;
  307. transition: 1s ease-in-out;
  308. z-index: 1;
  309. transform-style: preserve-3d;
  310. &.login-bg-flip {
  311. transform: rotateY(180deg);
  312. }
  313. &:before, &:after {
  314. backface-visibility: hidden;
  315. position: absolute;
  316. top: 0;
  317. left: 0;
  318. right: 0;
  319. height: 100%;
  320. content: '';
  321. display: block;
  322. }
  323. &:after {
  324. transform: rotateY(180deg);
  325. background-color: rgb(25, 50, 80);
  326. }
  327. }
  328. }
  329. .login-bg-fx {
  330. position: absolute;
  331. top: 0;
  332. left: 0;
  333. right: 0;
  334. height: 100%;
  335. background-image: -webkit-radial-gradient(center center, ellipse farthest-corner, transparent 0%, transparent 10%, rgba(18, 22, 29, 1) 100%);
  336. z-index:2;
  337. }