2015-05-20 15:31:53 +02:00
|
|
|
/// LoginUI.scss -*- Mode: scss; indent-tabs-mode: nil; basic-offset: 2 -*-
|
2015-04-10 21:37:00 +02:00
|
|
|
|
2016-07-15 20:03:16 +02:00
|
|
|
$sg-login-width: grid-step(5);
|
|
|
|
|
2015-09-15 17:42:47 +02:00
|
|
|
[ui-view="login"] {
|
|
|
|
md-content {
|
2016-07-15 20:03:16 +02:00
|
|
|
// Keep content centered
|
|
|
|
margin: auto;
|
2016-07-19 21:20:21 +02:00
|
|
|
overflow: hidden;
|
2016-07-15 20:03:16 +02:00
|
|
|
|
2016-08-01 17:54:03 +02:00
|
|
|
.sg-logo {
|
|
|
|
// Center image
|
|
|
|
margin: auto;
|
|
|
|
img {
|
|
|
|
height: 100%;
|
|
|
|
width: grid-step(5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Overwrite Chrome autofill yellow background
|
2016-08-10 15:51:25 +02:00
|
|
|
// http://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete
|
2016-08-01 17:54:03 +02:00
|
|
|
@-webkit-keyframes autofill {
|
|
|
|
to {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
input:-webkit-autofill {
|
|
|
|
-webkit-animation-name: autofill;
|
|
|
|
-webkit-animation-fill-mode: both;
|
2016-07-15 20:03:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* On small screens, we dispose the logo and login form as column.
|
|
|
|
*/
|
|
|
|
@include to(md) {
|
|
|
|
& {
|
|
|
|
// Fill the screen
|
|
|
|
min-height: 100%;
|
2019-01-30 22:36:46 +01:00
|
|
|
overflow: auto;
|
2016-07-15 20:03:16 +02:00
|
|
|
}
|
|
|
|
.sg-logo {
|
2015-09-15 17:42:47 +02:00
|
|
|
img {
|
2016-07-15 20:03:16 +02:00
|
|
|
margin: auto;
|
|
|
|
height: 100%;
|
2019-01-30 22:36:46 +01:00
|
|
|
max-height: 20vh; // limit the logo's height
|
2015-09-15 17:42:47 +02:00
|
|
|
max-width: 75%;
|
|
|
|
}
|
|
|
|
}
|
2016-07-15 20:03:16 +02:00
|
|
|
.sg-login {
|
|
|
|
// Let the form take all available space
|
|
|
|
flex-grow: 1;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.sg-login-content {
|
|
|
|
margin: auto;
|
|
|
|
max-width: $sg-login-width;
|
|
|
|
}
|
2015-09-15 17:42:47 +02:00
|
|
|
}
|
2016-07-15 20:03:16 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* On larger screen, we dispose the logo and login form as a row.
|
|
|
|
*/
|
2017-05-24 17:54:04 +02:00
|
|
|
@include from(lg) {
|
2015-09-15 17:42:47 +02:00
|
|
|
&.ng-hide {
|
2016-07-15 20:03:16 +02:00
|
|
|
.sg-logo img {
|
2015-09-15 17:42:47 +02:00
|
|
|
opacity: 0;
|
2016-07-15 20:03:16 +02:00
|
|
|
transform: translateX($sg-login-width/2 + $baseline-grid + $baseline-grid*2);
|
2015-09-15 17:42:47 +02:00
|
|
|
}
|
|
|
|
.sg-login {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
}
|
2016-07-15 20:03:16 +02:00
|
|
|
.sg-logo img, .sg-login {
|
2015-09-15 17:42:47 +02:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-07-15 20:03:16 +02:00
|
|
|
.sg-logo {
|
|
|
|
max-height: 100%;
|
|
|
|
max-width: 50%;
|
|
|
|
img {
|
|
|
|
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function 600ms,
|
|
|
|
opacity 400ms linear;
|
|
|
|
}
|
2015-09-15 17:42:47 +02:00
|
|
|
}
|
|
|
|
.sg-login {
|
2016-07-15 20:03:16 +02:00
|
|
|
max-width: 50%;
|
2015-09-15 17:42:47 +02:00
|
|
|
transition: all $swift-ease-out-duration $swift-ease-out-timing-function 600ms;
|
|
|
|
}
|
2016-07-15 20:03:16 +02:00
|
|
|
.sg-login-content {
|
|
|
|
width: $sg-login-width;
|
|
|
|
}
|
|
|
|
} // from(md)
|
2015-09-15 17:42:47 +02:00
|
|
|
}
|
|
|
|
}
|