_login.scss 7.6 KB

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