snappymail/dev/Styles/Login.less

176 lines
2.8 KiB
Text
Raw Normal View History

#V-Login, #V-AdminLogin {
2021-04-30 22:39:27 +08:00
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
min-width: 250px;
max-width: 600px;
transition: all 0.3s ease-out;
2021-04-30 22:39:27 +08:00
z-index: 5;
}
.LoginView {
2021-04-22 19:37:43 +08:00
.descWrapper {
color: var(--loading-color, #000);
2023-12-11 20:34:23 +08:00
font-size: 214%;
2021-04-22 19:37:43 +08:00
margin-bottom: 10px;
text-align: center;
text-shadow: var(--loading-text-shadow);
}
2021-04-30 22:39:27 +08:00
form {
2021-04-22 19:37:43 +08:00
background-color: var(--login-bg-color, rgba(0, 0, 0, .5));
border: var(--login-border, 1px solid rgba(255, 255, 255, .2));
border-radius: var(--login-border-radius, 7px);
box-shadow: var(--login-box-shadow);
2023-02-25 01:31:03 +08:00
color: var(--login-color, rgba(255, 255, 255, .8));
2021-04-22 19:37:43 +08:00
margin: 0;
2021-04-30 22:39:27 +08:00
padding: 40px 40px 20px 40px;
position: relative;
2021-04-22 19:37:43 +08:00
* {
2023-02-25 01:31:03 +08:00
color: var(--login-color, rgba(255, 255, 255, .8));
}
.controls.error * {
2023-02-25 01:31:03 +08:00
color: #f76260;
border-color: #f76260;
2021-04-22 19:37:43 +08:00
}
2021-04-30 22:39:27 +08:00
&.submitting > * {
opacity: 0.3;
}
2021-02-06 03:48:36 +08:00
2021-04-30 22:39:27 +08:00
&.submitting::after{
content: '';
position: absolute;
width: 60px;
height: 60px;
top: 50%;
left: 50%;
margin-top: -30px;
margin-left: -30px;
border: 8px solid transparent;
border-top-color: var(--spinner-color, #fff);
animation: loginRotation 1s infinite ease-in-out;
border-radius: 50%;
z-index: 1052;
}
2021-04-22 19:37:43 +08:00
}
2021-02-06 03:48:36 +08:00
.controls, .control-group {
margin-bottom: 25px;
position: relative;
}
2021-04-22 19:37:43 +08:00
input {
2023-12-11 20:34:23 +08:00
font-size: 128%;
height: 40px;
padding-right: 30px;
&:placeholder {
2023-02-25 01:31:03 +08:00
color: #fff;
2021-04-22 19:37:43 +08:00
}
2021-02-06 03:48:36 +08:00
&:focus, &:hover {
2023-02-25 01:31:03 +08:00
border-color: #fff;
}
}
input, .btn {
2022-08-31 22:19:16 +08:00
background: none;
2023-02-25 01:31:03 +08:00
border: 1px solid rgba(255, 255, 255, .8);
2021-04-22 19:37:43 +08:00
}
.fontastic + input {
2023-04-18 17:43:28 +08:00
padding: 0 30px;
2021-04-22 19:37:43 +08:00
}
.controls > .fontastic:first-child {
2021-04-22 19:37:43 +08:00
position: absolute;
2023-12-11 20:34:23 +08:00
font-size: 121%;
line-height: 38px;
left: 6px;
2021-04-22 19:37:43 +08:00
}
.btn {
text-transform: uppercase;
2023-12-11 20:34:23 +08:00
font-size: 90%;
&:hover, &:active {
2023-02-25 01:31:03 +08:00
border-color: #fff;
}
}
.buttonLogin {
2022-11-21 19:50:00 +08:00
width: 100%;
}
.alert {
position: absolute;
left: 0;
right: 0;
z-index: 1;
display: block;
opacity: 1;
transition: opacity 0.5s linear;
2022-04-29 05:10:21 +08:00
p {
font-family: var(--fontMono);
font-size: 90%;
}
}
.alert[hidden] {
opacity: 0;
}
.language-buttons {
flex-grow: 1;
2023-04-18 17:35:31 +08:00
text-align: var(--right, right);
}
2020-09-25 23:42:40 +08:00
.language-button {
padding: 5px;
text-decoration: none;
}
.errorAnimated {
animation: login-form-shake 400ms ease-in-out;
}
.errorAnimated .buttonLogin {
color: #b94a48;
font-weight: bold;
}
}
2016-06-23 06:26:54 +08:00
@media screen and (max-width: 480px) {
.LoginView {
2021-04-30 22:39:27 +08:00
form {
padding: 30px 4vw 10px;
}
}
}
2016-06-23 06:26:54 +08:00
@keyframes loginRotation {
to {transform: rotate(1turn);}
}
@keyframes login-form-shake {
0% {transform: translateX(0);}
12.5% {transform: translateX(-6px)}
37.5% {transform: translateX(5px)}
62.5% {transform: translateX(-3px)}
87.5% {transform: translateX(2px)}
100% {transform: translateX(0)}
}
html.rl-started-trigger .LoginView {
opacity: 0.5;
}