-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
104 lines (93 loc) · 1.83 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
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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
:root {
--bg-color: white;
--primary-color: purple;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: var(--bg-color) ;
}
.container {
flex-grow: 3;
display: flex;
flex-direction: column;
justify-content: center;
width: 80%;
padding: 20px;
gap: 40px;
}
.title {
font-size: 40px;
text-align: center;
user-select: none;
color: var(--primary-color);
}
.row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 40px;
}
.inputbox {
position: relative;
display: flex;
flex-direction: column-reverse;
height: 40px;
}
.inputbox label {
position: relative;
top:0;
left: 10px;
font-size: 20px;
color: var(--primary-color);
transition: .5s;
cursor: text;
}
.inputbox input {
position: absolute;
background-color: var(--primary-color);
width: 100%;
height: 4px;
bottom: 0;
box-shadow: none;
border: none;
outline: none;
border-radius: 2px;
transition: .5s;
font-size: 20px;
font-weight: bold;
padding: 0 10px;
}
.inputbox input:focus,
.inputbox input:valid {
height: 100%;
}
.inputbox input:focus + label,
.inputbox input:valid + label {
top: -40px;
left: 0;
}
.container button {
justify-self: center;
width: 200px;
height: 50px;
border:none;
outline: none;
cursor: pointer;
background-color: var(--primary-color);
font-size: 20px;
font-weight: bold;
border-radius: 2px;
}
footer {
color: var(--primary-color);
}