CSS: Redesign login form

This commit is contained in:
Florian Strohmaier 2021-03-18 13:37:57 +01:00 committed by Johannes Meyer
parent 3b1b8a0b92
commit e863344dad
1 changed files with 14 additions and 30 deletions

View File

@ -3,11 +3,14 @@
// Login page styles // Login page styles
#login { #login {
height: 100%; height: 100%;
background-color: @menu-bg-color; background-color: @menu-bg-color;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
// fallback ie 9 // fallback ie 9
background-size: 100% 100%; background-size: 100% 100%;
@ -15,7 +18,6 @@
.login-wrapper { .login-wrapper {
height: 100%; height: 100%;
max-width: 85em;
padding: 0 1em; padding: 0 1em;
margin: 0 auto; margin: 0 auto;
z-index: 2; z-index: 2;
@ -23,24 +25,17 @@
} }
.login-form { .login-form {
min-width: 24em;
position: relative; position: relative;
background: @body-bg-color;
min-width: 288px;
height: 100%;
width: 33%; width: 33%;
box-shadow: 0 0 4em 1em rgba(0, 0, 0, 0.2); z-index: 10;
}
.logo-wrapper {
position: absolute;
top: 1em; right: 1em; left: 1em;
} }
#icinga-logo { #icinga-logo {
width: 100%; width: 100%;
max-width: 18em; max-width: 18em;
height: auto; height: auto;
margin: 0 auto; margin: 0 auto 2em auto;
&:after { &:after {
content: ""; content: "";
@ -116,7 +111,7 @@
input[type=submit] { input[type=submit] {
border-radius: .25em; border-radius: .25em;
background: @icinga-blue; background: @icinga-secondary;
color: white; color: white;
border: none; border: none;
height: 2.5em; height: 2.5em;
@ -124,7 +119,7 @@
width: 100%; width: 100%;
&:hover { &:hover {
background-color: darken(@icinga-blue, 10) background-color: darken(@icinga-secondary, 10)
} }
} }
@ -199,27 +194,15 @@
} }
#login-footer { #login-footer {
position: absolute;
right: 2em; bottom: .25em; left: 2em;
border-top: 1px solid @gray-light;
padding: .5em 0; padding: .5em 0;
font-size: @font-size-small;
&:after {
content: "";
display: block;
clear: both;
}
p { p {
float: left;
margin-bottom: 0; margin-bottom: 0;
} }
a { a {
float: right;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
color: @icinga-blue; color: @icinga-secondary;
&:hover { &:hover {
text-decoration: none; text-decoration: none;
@ -327,10 +310,11 @@
} }
#orb-icinga { #orb-icinga {
left: 50%;
top: 50%; top: 50%;
right: 19%; margin-top: -37.5em;
width: 75%; margin-left: -37.5em;
margin: -37.5%; width: 75em;
z-index: 0; z-index: 0;
} }