_login.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. .login-submit-button-row {
  169. text-align: center;
  170. margin-top: 30px;
  171. button {
  172. padding: 14px 23px;
  173. font-size: 16px;
  174. font-weight: bold;
  175. min-width: 150px;
  176. display: inline-block;
  177. border: 1px solid lighten($btn-inverse-bg, 10%);
  178. }
  179. }
  180. .login-oauth {
  181. width: 100%;
  182. }
  183. .login-divider {
  184. float: left;
  185. width: 100%;
  186. margin: 0 25% $space-md 25%;
  187. display: flex;
  188. justify-content: space-between;
  189. .login-divider-line {
  190. width: 100px;
  191. height: 10px;
  192. border-bottom: 1px solid $login-border;
  193. .login-divider-text {
  194. background-color: $panel-bg;
  195. color: $gray-2;
  196. padding: 0 10px;
  197. }
  198. }
  199. }
  200. .login-signup-box {
  201. display: flex;
  202. align-items: center;
  203. justify-content: flex-end;
  204. width: 100%;
  205. margin-top: $space-md;
  206. }
  207. .login-signup-title {
  208. justify-self: flex-start;
  209. flex: 1;
  210. text-align: left;
  211. }
  212. .login-btn {
  213. width: 100%;
  214. margin: 0 0 $space-md;
  215. }
  216. .signup-page-background {
  217. position: fixed;
  218. top: 0;
  219. left: 0;
  220. right: 0;
  221. bottom: 0;
  222. height: 100%;
  223. width: 100%;
  224. background-image: url(../img/background_tease.jpg);
  225. opacity: 0.3;
  226. z-index: -1;
  227. }
  228. .invite-box {
  229. text-align: center;
  230. border: 1px solid $tight-form-func-bg;
  231. background-color: $panel-bg;
  232. max-width: 800px;
  233. margin-left: auto;
  234. margin-right: auto;
  235. .tight-form {
  236. text-align: left;
  237. }
  238. h3 {
  239. margin-top: 30px;
  240. }
  241. .modal-close {
  242. float: right;
  243. font-size: 140%;
  244. padding: 10px;
  245. }
  246. .modal-tagline {
  247. font-size: 16px;
  248. }
  249. }
  250. @include media-breakpoint-up(sm) {
  251. .login-branding {
  252. padding: $space-md;
  253. .logo-icon {
  254. width: 80px;
  255. }
  256. }
  257. }
  258. @include media-breakpoint-up(md) {
  259. .login-content {
  260. flex-direction: row;
  261. flex: 1 0 100%;
  262. }
  263. .login-divider {
  264. .login-divider-line {
  265. width: 110px;
  266. }
  267. }
  268. .login-branding {
  269. width: 45%;
  270. padding: $space-xl;
  271. flex-grow: 1;
  272. border-right: 1px solid $login-border;
  273. .logo-icon {
  274. width: 130px;
  275. }
  276. }
  277. .login-inner-box {
  278. width: 55%;
  279. padding: $space-md 56px;
  280. }
  281. .login-button-group {
  282. flex-direction: row;
  283. }
  284. .login-button-forgot-password {
  285. padding-top: 0;
  286. padding-left: 10px;
  287. }
  288. .login-form-input {
  289. min-width: 300px;
  290. }
  291. }
  292. .login-bg {
  293. position: absolute;
  294. top: 0;
  295. left: 0;
  296. right: 0;
  297. perspective: 1000px;
  298. display: flex;
  299. flex-wrap: wrap;
  300. z-index: 0;
  301. flex-direction: column;
  302. justify-content: stretch;
  303. justify-items: stretch;
  304. height: 100%;
  305. .login-bg__row {
  306. display: flex;
  307. flex-grow: 1;
  308. height: 10px;
  309. justify-content: stretch;
  310. }
  311. .login-bg__item {
  312. width: 4%;
  313. height: 100%;
  314. flex-grow: 1;
  315. // background: hotpink;
  316. // border:1px solid #0F1926;
  317. transition: 1s ease-in-out;
  318. z-index: 1;
  319. transform-style: preserve-3d;
  320. &.login-bg-flip {
  321. transform: rotateY(180deg);
  322. }
  323. &:before,
  324. &:after {
  325. backface-visibility: hidden;
  326. position: absolute;
  327. top: 0;
  328. left: 0;
  329. right: 0;
  330. height: 100%;
  331. content: '';
  332. display: block;
  333. }
  334. &:after {
  335. transform: rotateY(180deg);
  336. background-color: rgb(25, 50, 80);
  337. }
  338. }
  339. }
  340. .login-bg-fx {
  341. position: absolute;
  342. top: 0;
  343. left: 0;
  344. right: 0;
  345. height: 100%;
  346. background-image: -webkit-radial-gradient(
  347. center center,
  348. ellipse farthest-corner,
  349. transparent 0%,
  350. transparent 10%,
  351. rgba(18, 22, 29, 1) 100%
  352. );
  353. z-index: 2;
  354. }