Browser: Update UI with new components and elements (#5671)

This commit is contained in:
Rushan
2018-03-21 23:39:23 +05:30
committed by Harshavardhana
parent 384b4fdf28
commit 1459c4be1e
199 changed files with 10549 additions and 4702 deletions

View File

@@ -1,104 +1,86 @@
.login {
height: 100vh;
min-height: 500px;
background: @dark-gray;
padding: 1.5rem;
text-align: center;
&:before {
height: ~"calc(100% - 110px)";
width: 1px;
content: "";
}
display: flex;
align-items: center;
justify-content: center;
}
.l-wrap,
.login:before {
display: inline-block;
vertical-align: middle;
.login__inner {
max-width: 400px;
width: 90%;
flex-shrink: 0;
}
.l-wrap {
width: 80%;
max-width: 500px;
margin-top: -50px;
&.toggled {
display: inline-block;
}
.input-group:not(:last-child) {
margin-bottom: 40px;
}
.login__header {
margin-bottom: 1rem;
}
.l-footer {
height: 110px;
padding: 0 50px;
}
.login__form {
background-color: @white;
padding: 2rem;
.lf-logo {
float: right;
img {
width: 40px;
}
}
.lf-server {
float: left;
color: rgba(255, 255, 255, 0.4);
font-size: 20px;
font-weight: 400;
padding-top: 40px;
}
@media (max-width: @screen-sm-min) {
.lf-logo,
.lf-server {
float: none;
display: block;
.form-group__field {
text-align: center;
width: 100%;
}
.lf-logo {
margin-bottom: 5px;
}
.lf-server {
font-size: 15px;
}
}
.lw-btn {
width: 50px;
height: 50px;
border: 1px solid @white;
display: inline-block;
.login__logo {
width: 2rem;
}
.login__host {
color: @text-muted-color;
margin-top: -0.5rem;
font-size: @font-size-small;
}
.login__btn {
margin-top: 0.5rem;
width: 2.6rem;
height: 2.6rem;
line-height: 100%;
border-radius: 50%;
font-size: 22px;
color: @white;
.transition(all);
.transition-duration(300ms);
opacity: 0.3;
background-color: transparent;
line-height: 45px;
padding: 0;
border: 1px solid darken(@input-border-color, 5%);
.transition(all);
.transition-duration(500ms);
position: relative;
overflow: hidden;
&:hover {
color: @white;
opacity: 0.8;
border-color: @white;
border-color: darken(@input-border-color, 15%);
&:before {
left: 2.6rem;
.opacity(0);
}
&:after {
.opacity(1);
left: 0;
}
}
i {
display: block;
&:before,
&:after {
display: flex;
align-items: center;
justify-content: center;
content: '\f301';
font-family: @font-family-icon;
position: absolute;
left: 0;
top: 0;
width: 100%;
padding-left: 3px;
height: 100%;
.transition(all);
.transition-duration(300ms);
}
}
/*------------------------------
Chrome autofill fix
-------------------------------*/
input:-webkit-autofill {
-webkit-box-shadow:0 0 0 50px @dark-gray inset !important;
-webkit-text-fill-color: @white !important;
&:after {
left: -2.6rem;
.opacity(0);
}
}