This repository was archived by the owner on Mar 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
117 lines (103 loc) · 2.22 KB
/
style.css
File metadata and controls
117 lines (103 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
@import 'uc-input-field/style.css';
@import './button.css';
$login-color: $uiLoginColor;
$login-accent: $uiLoginAccent;
$login-background: $uiLoginBackground;
$login-backdrop-color: $uiLoginBackdropColor;
$login-backdrop-filter: $uiLoginBackdropFilter;
$login-fadein: $uiLoginFadeIn;
$login-fadeout: $uiLoginFadeOut;
.login {
font-size: 1em;
position: fixed;
width: 100%;
height: 100%;
overflow: hidden;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
color: $login-color;
background-color: $login-backdrop-color;
backdrop-filter: $login-backdrop-filter;
opacity: 0;
visibility: hidden;
transition:
visibility 0s linear $login-fadeout,
all $login-fadeout $uiBaseTransition $login-fadeout;
&.active {
opacity: 1;
visibility: visible;
transition:
visibility 0s $uiBaseTransition $login-fadein,
all $login-fadein $uiBaseTransition 0s;
}
}
.login-login {
.input {
font-size: 1.25em;
width: 300px;
height: calc(3*$uiGrid);
color: $login-color;
&:before {
transition: all 300ms $uiBaseTransition;
content: '';
position: absolute;
top: -$uiGrid;
left: calc(-2*$uiGrid);
right: calc(-2*$uiGrid);
bottom: -$uiGrid;
background: $login-background;
border-radius: calc(3*$uiGrid);
filter: blur(10px);
z-index: 0;
}
input {
position: relative;
height: calc(3*$uiGrid);
font-size: 28px;
background: $login-background;
color: $login-color;
}
input:focus + span,
span {
color: $login-accent;
}
&.error, &.input-message {
input,
&:before {
background: $uiErrorColor;
}
}
}
}
.login-done {
max-width: calc(20*$uiGrid);
h2 {
font-size: 1.25em;
height: calc(3*$uiGrid);
margin: 0;
}
}
.login-login,
.login-done {
display: none;
}
.login-s-login .login-login { display: block; }
.login-s-done .login-done { display: block; }
.login-close {
position: absolute;
display: block;
width: calc(2*$uiGrid);
height: calc(2*$uiGrid);
top: $uiGrid;
right: $uiGrid;
stroke: $uiBgColor;
stroke-width: 1px;
svg {
width: 100%;
height: 100%;
}
}