-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (57 loc) · 1.1 KB
/
style.css
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
* {
margin: 0;
padding: 0;
border: none;
outline: none;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html,
body {
height: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background: #040404;
}
label {
position: relative;
}
label input {
font-family: sans-serif;
font-size: 1.2rem;
color: #f9f9f9;
background: transparent;
padding: 1rem 3.2rem 1rem 1.2rem;
min-width: 24rem;
border-radius: 0.2rem;
border: 2px solid #7a7a7a56;
transition: border-color 0.2s;
}
label input:focus {
border-color: #2aa6ee;
}
label p {
color: #f9f9f9;
font-size: 1.2rem;
user-select: none;
position: absolute;
top: 50%;
transform: translateY(-50%);
margin-left: 0.8rem;
padding: 0 0.4rem;
background: #040404;
transition: top 0.2s, font-size 0.2s, color 0.2s;
}
label input:focus+p,
label input:not(:placeholder-shown)+p {
top: 0;
font-size: 1rem;
color: #2aa6ee;
}
label input:not(:focus)+p {
color: #7a7a7a56;
}