_login.scss 7.6 KB

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