_login.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. $login-border: #8daac5;
  2. .login {
  3. min-height: 85vh;
  4. background-position: center;
  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. color: #d8d9da;
  15. & a {
  16. color: #d8d9da !important;
  17. }
  18. & .btn-primary {
  19. @include buttonBackground(#ff6600, #bc3e06);
  20. }
  21. }
  22. input:-webkit-autofill,
  23. input:-webkit-autofill:hover,
  24. input:-webkit-autofill:focus,
  25. input:-webkit-autofill,
  26. textarea:-webkit-autofill,
  27. textarea:-webkit-autofill:hover,
  28. textarea:-webkit-autofill:focus,
  29. select:-webkit-autofill,
  30. select:-webkit-autofill:hover,
  31. select:-webkit-autofill:focus {
  32. -webkit-box-shadow: 0 0 0px 1000px $black inset !important;
  33. -webkit-text-fill-color: #fbfbfb !important;
  34. box-shadow: 0 0 0px 1000px $black inset;
  35. }
  36. .login-form-group {
  37. display: flex;
  38. flex-direction: column;
  39. width: 100%;
  40. align-items: center;
  41. margin-bottom: 1rem;
  42. }
  43. .login-form {
  44. margin-bottom: 1rem;
  45. width: 100%;
  46. }
  47. .login-form-input {
  48. border: 1px solid $login-border;
  49. border-radius: 4px;
  50. opacity: 0.6;
  51. background: $black;
  52. color: #fbfbfb;
  53. &:focus {
  54. border: 1px solid $login-border;
  55. }
  56. }
  57. .login-button-group {
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. justify-content: space-between;
  62. width: 100%;
  63. margin-top: 0.5rem;
  64. &--right {
  65. justify-content: flex-end;
  66. & .btn {
  67. margin-left: 1rem;
  68. }
  69. }
  70. }
  71. .login-button-forgot-password {
  72. padding-top: 1rem;
  73. }
  74. .login-text {
  75. font-size: $font-size-sm;
  76. }
  77. .login-content {
  78. max-width: 700px;
  79. display: flex;
  80. align-items: stretch;
  81. flex-direction: column;
  82. position: relative;
  83. justify-content: center;
  84. z-index: 1;
  85. min-height: 320px;
  86. }
  87. .login-branding {
  88. width: 100%;
  89. display: flex;
  90. flex: 1;
  91. flex-direction: column;
  92. align-items: center;
  93. justify-content: center;
  94. flex-grow: 0;
  95. padding-top: 2rem;
  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;
  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: 100px;
  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. .logo-icon {
  283. width: 80px;
  284. }
  285. }
  286. .login-inner-box {
  287. width: 65%;
  288. padding: 1rem 2rem;
  289. }
  290. .login-divider {
  291. .login-divider-line {
  292. width: 110px;
  293. }
  294. }
  295. }
  296. @include media-breakpoint-up(md) {
  297. .login {
  298. min-height: 100vh;
  299. }
  300. .login-content {
  301. flex: 1 0 100%;
  302. }
  303. .login-branding {
  304. width: 45%;
  305. padding: 2rem 4rem;
  306. flex-grow: 1;
  307. .logo-icon {
  308. width: 130px;
  309. }
  310. .icon-gf-grafana_wordmark {
  311. font-size: 3.2rem;
  312. }
  313. }
  314. .login-inner-box {
  315. width: 55%;
  316. padding: 1rem 4rem;
  317. }
  318. .login-button-group {
  319. flex-direction: row;
  320. }
  321. .login-button-forgot-password {
  322. padding-top: 0;
  323. padding-left: 10px;
  324. }
  325. }
  326. @include media-breakpoint-up(lg) {
  327. .login-form-input {
  328. min-width: 300px;
  329. }
  330. }
  331. .login-bg {
  332. position: absolute;
  333. top: 0;
  334. left: 0;
  335. right: 0;
  336. perspective: 1000px;
  337. display: flex;
  338. flex-wrap: wrap;
  339. z-index: 0;
  340. flex-direction: column;
  341. justify-content: stretch;
  342. justify-items: stretch;
  343. height: 100%;
  344. .login-bg__row {
  345. display: flex;
  346. flex-grow: 1;
  347. height: 10px;
  348. justify-content: stretch;
  349. }
  350. .login-bg__item {
  351. width: 4%;
  352. height: 100%;
  353. flex-grow: 1;
  354. // background: hotpink;
  355. // border:1px solid #0F1926;
  356. transition: 1s ease-in-out;
  357. z-index: 1;
  358. transform-style: preserve-3d;
  359. &.login-bg-flip {
  360. transform: rotateY(180deg);
  361. }
  362. &:before,
  363. &:after {
  364. backface-visibility: hidden;
  365. position: absolute;
  366. top: 0;
  367. left: 0;
  368. right: 0;
  369. height: 100%;
  370. content: '';
  371. display: block;
  372. }
  373. &:after {
  374. transform: rotateY(180deg);
  375. background-color: rgb(25, 50, 80);
  376. }
  377. }
  378. }
  379. .login-bg-fx {
  380. position: absolute;
  381. top: 0;
  382. left: 0;
  383. right: 0;
  384. height: 100%;
  385. background-image: -webkit-radial-gradient(
  386. center center,
  387. ellipse farthest-corner,
  388. transparent 0%,
  389. transparent 10%,
  390. rgba(18, 22, 29, 1) 100%
  391. );
  392. z-index: 2;
  393. }