-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.css
139 lines (116 loc) · 2 KB
/
home.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
.container {
width: 90vw;
max-width: 1000px;
margin: auto;
}
.container#country_data_container {
margin: 2rem auto;
display: flex;
gap: 2rem;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.card .upper img {
width: 100%;
height: 100%;
object-fit: cover;
}
a.card {
min-width: 270px;
width: 25%;
aspect-ratio: 3/4;
color: var(--col-text);
text-decoration: none;
background-color: var(--col-ele);
border-radius: 0.5rem;
margin-top: 1rem;
cursor: pointer;
overflow: hidden;
display: grid;
grid-template-rows: 1fr 1fr;
box-shadow: var(--shadow);
transition: all 0.2s ease-in-out;
}
a.card:hover {
transform: scale(1.04);
}
.card h3 {
margin: 1rem 0;
font-weight: 800;
}
.upper {
overflow: hidden;
}
.lower {
padding-left: 1rem;
}
.container.search{
margin: 1.2rem auto;
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.search_box {
width:100%;
max-width: 450px;
background-color: var(--col-ele);
box-shadow: var(--shadow);
border-radius: 0.4rem;
overflow: hidden;
margin: 1rem 0;
padding: 1.1rem 0rem;
display: flex;
flex-direction: row;
align-items: center;
}
.search_box i {
margin: 0 2rem;
font-size: 1.2rem;
cursor: pointer;
}
::placeholder {
font-size: 1.1rem;
opacity: 0.5;
color: var(--col-text);
}
.search_input {}
input[type=text] {
background-color: transparent;
font-size: 1.2rem;
outline: none;
border: none;
color: var(--col-text);
}
.filter_box {
position: relative;
}
.filter_select,
.filter_options {
border-radius: 0.4rem;
width: 200px;
padding: 1rem;
box-shadow: var(--shadow);
background-color: var(--col-ele);
cursor: pointer;
}
.filter_select{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.filter_options {
position: absolute;
z-index: 20;
margin-top: 0.4rem;
display: block;
}
.option:hover{
opacity: 0.5;
}
.hidden{
display: none;
}