-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
135 lines (114 loc) · 2.71 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
@import url('https://fonts.googleapis.com/css?family=Tangerine');
* {
margin: 0;
padding: 0;
}
body {
background-image: linear-gradient(to bottom, rgb(3, 6, 19), rgb(49, 75, 190));
z-index: inherit;
}
header {
position: relative;
text-align: center;
color: red;
font-size: 78px;
/* font-family: cursive; */
margin-top: 20px;
padding-bottom: 0;
}
header h3 {
font-family: 'Tangerine', serif;
text-transform: lowercase;
}
header h3:hover {
transition: all 2s ease-in;
}
section {
margin: 50px;
margin-top: 50px;
min-width: 180px;
background: none;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
border-radius: 16px;
}
.main-div {
width: 200px;
height: 200px;
background-color: pink;
}
.card {
width: 25%;
height: 150px;
min-width: 170px;
margin: 20px;
/* background-color: yellow; */
border-radius: 8px;
/* transition: all 1s ease-in; */
}
.country {
background-color: rgb(126, 74, 175);
border: 3px solid red;
}
.total {
background-color: rgb(101, 196, 101);
border: 3px solid red;
}
.recovered {
background-color: rgb(189, 174, 45);
border: 3px solid red;
}
.active {
background-color: rgb(196, 101, 168);
border: 3px solid red;
}
.last-update {
background-color: rgb(111, 185, 185);
border: 3px solid red;
}
.death {
background-color: rgb(226, 131, 42);
border: 3px solid red;
}
.head {
background-color: transparent;
text-align: center;
padding-top: 20px;
font-size: 24px;
font-weight: bold;
word-spacing: 2px;
}
.card:hover {
transform: scale(1.1);
box-shadow: 2px 2px 4px 2px rgb(216, 88, 88);
}
.card:hover .data {
font-size: 40px;
transition: all 1s ease-out;
}
.data {
background-color: transparent;
font-size: 32px;
text-align: center;
color: white;
font-weight: bolder;
padding: 20px;
}
.data:last-child {
padding: 10px;
}
::selection {
background-color: red;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
height: 30px;
background-color: rgb(196, 117, 117);
text-align: center;
}
footer>h3 {
padding-top: 5px;
}