-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
113 lines (87 loc) · 1.33 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
/* COLUMN */
/*
body {
column-count: 6;
}
div {
border-radius: 10px;
background-size: cover;
background-position: center;
margin: 0.3em;
height: 10em;
display: inline-block;
width: 100%;
}
div:nth-child(2n) {
height: 12em;
}
div:nth-child(3n) {
height: 14em;
}
div:nth-child(4n) {
height: 16em;
}
div:nth-child(5n) {
height: 17em;
}
div:nth-child(6n) {
height: 20em;
}
*/
/* GRID */
/*
body {
display: grid;
gap: 0.5em;
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
grid-auto-rows: 10em;
grid-auto-flow: dense;
}
div {
border-radius: 10px;
background-size: cover;
background-position: center;
margin: 0.3em;
height: 100%;
width: 100%;
}
div:nth-child(6n) {
grid-column: span 2;
grid-row: span 2;
}
div:nth-child(7n) {
grid-column: span 2;
}
div:nth-child(8n) {
grid-row: span 2;
}
*/
/* ROWS (FLEX) */
body {
display: flex;
flex-wrap: wrap;
}
div {
border-radius: 10px;
background-size: cover;
background-position: center;
margin: 0.3em;
height: 10em;
width: 10em;
flex-grow: 1;
}
div:nth-child(2n) {
width: 15em;
}
div:nth-child(2n) {
width: 14em;
}
div:nth-child(4n) {
width: 12em;
}
div:nth-child(5n) {
width: 7em;
}
div:nth-child(6n) {
width: 20em;
}