-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
179 lines (140 loc) · 2.85 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap');
*,
*::after,
*::before{
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root{
--main-web-color: #2B2D42;
--text-main-color: #FFF;
--container-color: #0C1524;
--active-cases-color: #0081A7;
--today-cases-color: #8AC926;
--today-deaths-color: #F94144;
--total-cases-color: #E36414;
--total-deaths-color: #BF3131;
--recovered-color: #2C9B2C;
--btn-background-color: #ff8f00;
}
html{
font-family: 'Quicksand', sans-serif;
font-weight: 500;
font-size: 16px;
}
body{
background-color: var(--main-web-color);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--text-main-color);
}
.container{
/*** Styles ***/
background-color: var(--container-color);
box-shadow: 0px 8px 17px -6px rgba(0,0,0,0.75);
border-radius: 24px;
/*** SIZE ***/
max-width: 1280px;
width: 90%;
/*** Padding and Margin ***/
padding: 30px;
margin: 30px auto 0 auto;
}
header{
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
font-weight: 700;
}
#list-countries{
width: 45%;
height: 3rem;
margin: 15px 5px;
border-radius: 8px;
color: #FFF;
background-color: #2a2b38;
border: 2px solid #fff;
}
.country__btn{
background: var(--container-color);
color: #FFF;
border: 2px solid #FFF;
border-radius: 8px;
font-size: 1.1rem;
cursor: pointer;
padding: 0.5rem 2rem;
}
.country__btn:hover{
background-color: #FFF;
color: var(--container-color);
}
.main-text{
font-size: 3.5rem;
}
header h3{
font-size: 1.5rem;
margin-top: -10px;
}
header h2{
margin-top: -15px;
}
header p{
font-weight: 400;
}
.country-flag{
width: 100px;
height: auto;
margin-top: 8px;
}
/********************/
main{
margin: 15px 5px;
}
.board{
display: grid;
/* grid-template-columns: 1fr 1fr 1fr; */
/*Cambiar el min a 10rem para hacerlo responsive*/
grid-template-columns: repeat(auto-fill, minmax(20rem,1fr));
/* gap: 1rem; */
row-gap: 0;
column-gap: 1rem;
}
@media (max-width: 474px){
.board{
/* grid-template-columns: repeat(auto-fill, minmax(10rem,1fr)); */
grid-template-columns: 100%;
}
}
/**** CARDS ****/
.card{
border-radius: 8px;
background: rgb(99, 98, 98);
margin-bottom: 20px;
padding: 8%;
font-size: 1.5rem;
}
.card span{
font-size: 2.5rem;
}
.active-cases{
background-color: var(--active-cases-color);
}
.today-cases{
background-color: var(--today-cases-color);
}
.today-deaths{
background-color: var(--today-deaths-color);
}
.total-cases{
background-color: var(--total-cases-color);
}
.total-deaths{
background-color: var(--total-deaths-color);
}
.recovered{
background-color: var(--recovered-color);
}