_login.scss 6.5 KB

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