-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
239 lines (195 loc) · 4.13 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/* Variáveis globais */
:root {
--main-bg-color: #ecfaff;
--primary-color: #224592;
--secondary-color: #183066;
--tertiary-color: #fff;
--shadow-color: #737a7c;
}
@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");
/* Reset de estilos e configurações globais */
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
/* Estilos gerais do corpo do documento */
body {
font-family: "Urbanist", sans-serif;
background-color: var(--main-bg-color);
color: var(--primary-color);
display: grid;
grid-template-rows: auto 1fr auto;
height: 100dvh;
}
/* Estilos do cabeçalho */
header {
background-color: var(--primary-color);
color: var(--tertiary-color);
padding: 0.75rem 0.5rem;
box-shadow: 0px 1px 7px var(--shadow-color);
}
header h1 {
color: var(--tertiary-color);
}
/* Estilos do conteúdo principal */
main {
padding: 1rem;
}
/* Estilos do formulário de países */
.form-paises {
display: grid;
gap: 0.8rem;
padding: 0.75rem;
border: 2px solid var(--primary-color);
border-radius: 0.5rem;
margin-top: 1rem;
}
.form-paises__group {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0.75rem;
position: relative;
margin-top: 0.75rem;
border: none;
}
.form-paises__group legend {
position: absolute;
top: -2.4rem;
left: -0.35rem;
background-color: #ecfaff;
padding: 0 0.25rem;
font-weight: bold;
font-size: 1.25rem;
}
.form-paises__group label {
font-weight: bold;
padding: 0.1rem 0;
justify-self: center;
}
.form-paises__input,
.form-paises__select,
.table-paises__filtro {
font-family: "Urbanist", sans-serif;
padding: .25rem 0.15rem;
outline: none;
border: 1px solid var(--secondary-color);
border-radius: 0.1rem;
background-color: #f7fbfc;
color: var(--secondary-color);
box-sizing: border-box;
}
.form-paises__input {
padding-left: 0.35rem
}
.form-paises--focus:focus,
.table-paises__filtro:focus {
border: 1px solid transparent;
outline: 2px solid var(--secondary-color);
}
.form-paises__button {
justify-self: end;
padding: 0.55rem 0.75rem;
border-radius: 0.2rem;
background-color: #72d2f1;
color: var(--tertiary-color);
border: none;
transition: 0.2s;
}
.form-paises__button:hover {
background-color: #67bcd8;
}
/* Estilos da seção de tabela dos países */
.section-table-paises {
display: grid;
margin: 1rem 0;
gap: 0.5rem;
}
.table-paises__filtro {
padding: 0.3rem 0;
margin: 0.25rem 0 0;
}
.table-paises,
th,
td {
border-collapse: collapse;
}
th,
td {
width: 40%;
padding: 0.25rem 0.35rem;
text-align: center;
}
th:first-child,
td:first-child {
width: 20%;
}
th {
background-color: var(--primary-color);
color: var(--tertiary-color);
}
tr:nth-child(odd) td {
background-color: var(--tertiary-color);
border-bottom: 1px solid var(--primary-color);
}
tr:nth-child(even) td {
border-bottom: 1px solid var(--primary-color);
}
.table-paises__icon-group {
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.table-paises__icon-group img {
display: inline-block;
box-sizing: content-box;
}
/* Estilos da navegação */
.paginacao-paises {
margin: 0.25rem 0;
display: inline-flex;
justify-content: space-between;
gap: 0.5rem;
font-size: 0.85rem;
}
.paginacao-paises__nav {
display: inline-flex;
align-items: center;
gap: 0.3rem;
text-decoration: none;
background-color: var(--secondary-color);
color: var(--tertiary-color);
padding: 0.4rem 0.6rem;
border-radius: 0.2rem;
}
/* Estilos do rodapé */
footer {
padding: 0.75rem 0.5rem;
text-align: center;
font-size: 0.85rem;
background-color: var(--primary-color);
color: var(--tertiary-color);
box-shadow: 0px 1px 7px var(--shadow-color);
}
.footer__link {
color: var(--tertiary-color);
}
/* Estilos para desktop */
@media (min-width: 768px) {
main {
place-self: start center;
min-width: 700px;
}
header {
text-align: center;
}
}
/* Classe de utilidade para esconder elementos */
.hidden {
display: none;
}
/* Classe de utilidade para alinhar elementos à direita*/
.stay-right {
justify-content: flex-end;
}