-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStyles.css
More file actions
53 lines (46 loc) · 943 Bytes
/
Styles.css
File metadata and controls
53 lines (46 loc) · 943 Bytes
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
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Inter, sans-serif;
height: 100vh;
background-color: #1a1a1a;
display: flex;
justify-content: center;
align-items: center;
}
.input-group {
font-size: 1.25rem;
position: relative;
--primary: #2196f3;
}
.input {
all: unset;
color: #fefefe;
padding: 1rem;
border: 1px solid #9e9e9e;
border-radius: 10px;
transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.label {
position: absolute;
top: 1rem;
left: 1rem;
color: #d4d4d4;
pointer-events: none;
transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.input:focus {
border: 1px solid var(--primary);
}
.input:is(:focus, :valid) ~ label {
transform: translateY(-120%) scale(0.7);
background-color: #1a1a1a;
padding-inline: 0.3rem;
color: var(--primary);
}