_login.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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. height: 40px;
  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 $input-bg inset !important;
  34. -webkit-text-fill-color: $input-color !important;
  35. box-shadow: 0 0 0px 1000px $input-bg inset;
  36. }
  37. .login-form-group {
  38. display: flex;
  39. flex-direction: column;
  40. width: 100%;
  41. align-items: center;
  42. margin-bottom: $space-md;
  43. }
  44. .login-form {
  45. margin-bottom: $space-md;
  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: $space-sm;
  65. &--right {
  66. justify-content: flex-end;
  67. & .btn {
  68. margin-left: $space-md;
  69. }
  70. }
  71. & .btn-inverse {
  72. color: #e3e3e3;
  73. text-shadow: 0px 1px 0 rgba(0, 0, 0, 0.1);
  74. background-color: #2a2a2c;
  75. background-image: linear-gradient(to bottom, #262628, #303032);
  76. background-repeat: repeat-x;
  77. border-color: #262628;
  78. box-shadow: -1px -1px 0 0 rgba(255, 255, 255, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3);
  79. }
  80. }
  81. .login-button-forgot-password {
  82. padding-top: $space-md;
  83. }
  84. .login-text {
  85. font-size: $font-size-sm;
  86. }
  87. .login-content {
  88. max-width: 700px;
  89. width: 100%;
  90. display: flex;
  91. align-items: stretch;
  92. flex-direction: column;
  93. position: relative;
  94. justify-content: center;
  95. z-index: 1;
  96. min-height: 320px;
  97. }
  98. .login-branding {
  99. width: 100%;
  100. display: flex;
  101. flex: 1;
  102. flex-direction: column;
  103. align-items: center;
  104. justify-content: center;
  105. flex-grow: 0;
  106. padding-top: $space-xl;
  107. .logo-icon {
  108. width: 70px;
  109. margin-bottom: 15px;
  110. }
  111. }
  112. .app-grafana {
  113. .logo-wordmark {
  114. background: url('../img/grafana_typelogo.svg') top center no-repeat;
  115. width: 100%;
  116. height: 70px;
  117. }
  118. }
  119. .app-enterprise {
  120. .logo-wordmark {
  121. background: url('../img/grafana_enterprise_typelogo.svg') top center no-repeat;
  122. width: 100%;
  123. height: 70px;
  124. }
  125. }
  126. .login-outer-box {
  127. display: flex;
  128. overflow-y: hidden;
  129. align-items: center;
  130. justify-content: center;
  131. }
  132. .login-inner-box {
  133. text-align: center;
  134. padding: $space-xl;
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. justify-content: center;
  139. flex-grow: 1;
  140. max-width: 415px;
  141. width: 100%;
  142. transform: tranlate(0px, 0px);
  143. transition: 0.25s ease;
  144. &.add {
  145. transform: translate(0px, -320px);
  146. &.hidden {
  147. display: none;
  148. }
  149. }
  150. &.remove {
  151. transform: translate(0px, 320px);
  152. &.hidden {
  153. display: none;
  154. }
  155. }
  156. }
  157. .login-change-password-info {
  158. padding-bottom: $space-lg;
  159. & h5 {
  160. text-align: left;
  161. }
  162. }
  163. .btn-signup {
  164. color: $white;
  165. border: 1px solid $login-border;
  166. background-color: $btn-semi-transparent;
  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-base;
  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-base, 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. .login-divider {
  201. float: left;
  202. width: 100%;
  203. margin: 0 25% $space-md 25%;
  204. display: flex;
  205. justify-content: space-between;
  206. .login-divider-line {
  207. width: 100px;
  208. height: 10px;
  209. border-bottom: 1px solid $login-border;
  210. .login-divider-text {
  211. background-color: $panel-bg;
  212. color: $gray-2;
  213. padding: 0 10px;
  214. }
  215. }
  216. }
  217. .login-signup-box {
  218. display: flex;
  219. align-items: center;
  220. justify-content: flex-end;
  221. width: 100%;
  222. margin-top: $space-md;
  223. }
  224. .login-signup-title {
  225. justify-self: flex-start;
  226. flex: 1;
  227. text-align: left;
  228. }
  229. .login-btn {
  230. width: 100%;
  231. margin: 0 0 $space-md;
  232. }
  233. .signup-page-background {
  234. position: fixed;
  235. top: 0;
  236. left: 0;
  237. right: 0;
  238. bottom: 0;
  239. height: 100%;
  240. width: 100%;
  241. background-image: url(../img/background_tease.jpg);
  242. opacity: 0.3;
  243. z-index: -1;
  244. }
  245. .invite-box {
  246. text-align: center;
  247. border: 1px solid $tight-form-func-bg;
  248. background-color: $panel-bg;
  249. max-width: 800px;
  250. margin-left: auto;
  251. margin-right: auto;
  252. .tight-form {
  253. text-align: left;
  254. }
  255. h3 {
  256. margin-top: 30px;
  257. }
  258. .modal-close {
  259. float: right;
  260. font-size: 140%;
  261. padding: 10px;
  262. }
  263. .modal-tagline {
  264. font-size: 16px;
  265. }
  266. }
  267. @include media-breakpoint-up(sm) {
  268. .login-branding {
  269. padding: $space-md;
  270. .logo-icon {
  271. width: 80px;
  272. }
  273. }
  274. }
  275. @include media-breakpoint-up(md) {
  276. .login-content {
  277. flex-direction: row;
  278. flex: 1 0 100%;
  279. }
  280. .login-divider {
  281. .login-divider-line {
  282. width: 110px;
  283. }
  284. }
  285. .login-branding {
  286. width: 45%;
  287. padding: $space-xl;
  288. flex-grow: 1;
  289. border-right: 1px solid $login-border;
  290. .logo-icon {
  291. width: 130px;
  292. }
  293. }
  294. .login-inner-box {
  295. width: 55%;
  296. padding: $space-md 56px;
  297. }
  298. .login-button-group {
  299. flex-direction: row;
  300. }
  301. .login-button-forgot-password {
  302. padding-top: 0;
  303. padding-left: 10px;
  304. }
  305. .login-form-input {
  306. min-width: 300px;
  307. }
  308. }
  309. .login-bg {
  310. position: absolute;
  311. top: 0;
  312. left: 0;
  313. right: 0;
  314. perspective: 1000px;
  315. display: flex;
  316. flex-wrap: wrap;
  317. z-index: 0;
  318. flex-direction: column;
  319. justify-content: stretch;
  320. justify-items: stretch;
  321. height: 100%;
  322. .login-bg__row {
  323. display: flex;
  324. flex-grow: 1;
  325. height: 10px;
  326. justify-content: stretch;
  327. }
  328. .login-bg__item {
  329. width: 4%;
  330. height: 100%;
  331. flex-grow: 1;
  332. // background: hotpink;
  333. // border:1px solid #0F1926;
  334. transition: 1s ease-in-out;
  335. z-index: 1;
  336. transform-style: preserve-3d;
  337. &.login-bg-flip {
  338. transform: rotateY(180deg);
  339. }
  340. &:before,
  341. &:after {
  342. backface-visibility: hidden;
  343. position: absolute;
  344. top: 0;
  345. left: 0;
  346. right: 0;
  347. height: 100%;
  348. content: '';
  349. display: block;
  350. }
  351. &:after {
  352. transform: rotateY(180deg);
  353. background-color: rgb(25, 50, 80);
  354. }
  355. }
  356. }
  357. .login-bg-fx {
  358. position: absolute;
  359. top: 0;
  360. left: 0;
  361. right: 0;
  362. height: 100%;
  363. background-image: -webkit-radial-gradient(
  364. center center,
  365. ellipse farthest-corner,
  366. transparent 0%,
  367. transparent 10%,
  368. rgba(18, 22, 29, 1) 100%
  369. );
  370. z-index: 2;
  371. }