-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
98 lines (84 loc) · 1.32 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.title-light-bg {
margin: 25px 0;
text-align: center;
}
.title-light-bg span {
color: #ffffff;
background-color: #000000;
padding: 0 5px;
}
.title-dark-bg {
width: 100%;
background-color: #000000;
color: #ffffff;
margin: 0;
text-align: center;
line-height: 80px;
}
.title-dark-bg span {
color: #000000;
background-color: #ffffff;
padding: 0 5px;
}
.container {
flex: 1;
display: flex;
flex-wrap: wrap;
}
.light-bg,
.dark-bg {
position: relative;
width: 100%;
}
.light-bg::before,
.dark-bg::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.light-bg::before {
background-color: #ffffff;
}
.dark-bg::before {
background-color: #000000;
}
.grid-item {
display: flex;
justify-content: center;
align-items: center;
flex: 1 0 calc(25% - 10px);
margin: 5px;
padding: 20px;
box-sizing: border-box;
}
@media (max-width: 768px) {
.grid-item {
flex: 1 0 calc(33.33% - 10px);
}
}
@media (max-width: 576px) {
.grid-item {
flex: 1 0 calc(50% - 10px);
}
}
@media (max-width: 300px) {
.grid-item {
flex: 1 0 calc(80% - 10px);
}
}