_login.scss 7.1 KB

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