forked from riskycase/multisearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
95 lines (94 loc) · 1.93 KB
/
index.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
html, body {
height: 100vh;
width: 100vw;
background-color:rgb(200, 182, 182);
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
box-sizing: border-box;
font-family: 'Comfortaa', cursive;
margin: 0;
}
.container {
display: flex;
flex-direction: column;
max-width: min(100vw, 80rem);
/* Hint */
}
.container > * {
margin: 0.5rem;
}
.heading {
font-size: 5rem;
margin: 1.5rem;
font-weight: 500;
font-family: 'MomsTypewriterRegular',monospace;
}
@media screen and (max-width:540px) {
.heading {
font-size: 2.5rem;
}
}
.description {
text-align: center;
font-style: oblique;
}
.search_wrapper {
border: 0.125rem solid dotted #575a6b;
height: 3rem;
padding: 0.25rem 0.75rem;
box-sizing: border-box;
border-radius: 0.5rem;
display: flex;
align-items: center;
}
.search_label{
transition: linear 0.25s;
transform: none;
position: absolute;
font-size: 1.25rem;
transform-origin: left;
background-color: white;
padding: 0 0.5rem;
z-index: -1;
margin-left: 1.5rem;
}
.search_wrapper:focus-within {
border-color: #303F9F;
}
.search_wrapper:focus-within > .search_label,
.search_input:valid + .search_label {
transform: translateY(-1.5rem) scale(0.75);
transition: linear 0.25s;
z-index: 1;
color: #303F9F;
}
.search_input,
.search_input:focus-visible {
background-color: transparent;
flex-grow: 1;
border: none;
font-family: 'Comfortaa', cursive;
font-size: 1.5rem;
padding: 0 0.5rem;
outline: none;
max-width: calc(100% - 2rem);
}
.search_button {
width: max-content;
display: flex;
align-items: center;
align-self: flex-end;
color: white;
background-color: #3F51B5;
border-radius: 0.25rem;
border: none;
padding: 0.5rem 0.75rem;
}
.search_icon {
width: 1.5rem;
height: 1.5rem;
}