-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.css
109 lines (103 loc) · 2.4 KB
/
layout.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
.container {
padding: 0 var(--container-xs);
}
/* breackpoint: 320 | 640 | 768 | 1024 | 1280 */
@media screen and (min-width: 320px) {
.container {
padding: 0 var(--container-xs);
}
}
@media screen and (min-width: 640px) {
.container {
padding: 0 var(--container-sm);
}
}
@media screen and (min-width: 800px) {
.container {
padding: 0 var(--container-lg);
}
}
@media screen and (min-width: 1280px) {
.container {
padding: 0 var(--container-xl);
}
}
.header {
width: 100%;
height: var(--header);
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: var(--bg-light);
box-shadow: var(--shadow-2);
}
.main {
width: 100%;
min-height: 100vh;
padding-top: var(--header);
}
.footer {
width: 100%;
min-height: var(--footer);
background-color: var(--bg-light);
padding: var(--space-8) 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.section-column {
width: 100%;
background-color: var(--bg-base);
display: flex;
flex-wrap: wrap;
}
.section-column:first-child {
height: 100vh;
}
.section-column__column {
flex:1 1 100%;
height: 50%;
}
@media screen and (min-width: 768px) {
.section-column__column {
flex-basis: 50%;
height: 100%;
}
}
.section-cards {
width: 100%;
background-color: var(--bg-dark);
}
.section-cards__content{
width: 100%;
display: flex;
flex-wrap: wrap;
}
.card {
width: 100%;
min-height: 180px;
margin-bottom: var(--space-4);
}
@media screen and (min-width: 400px) {
.card {
width: min(200px, calc(calc(100% / 2) - calc(var(--space-3) * 2)));
margin: var(--space-3);
height: 160px;
}
}
@media screen and (min-width: 480px) {
.card {
width: min(300px, calc(calc(100% / 2) - calc(var(--space-3) * 2)));
margin: var(--space-3);
min-height: 200px;
}
}
@media screen and (min-width: 714px) {
.card {
width: calc(calc(100% / 3) - calc(var(--space-3) * 2));
margin: var(--space-3);
min-height: 260px;
}
}