_login.scss 7.3 KB

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