-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
87 lines (75 loc) · 2.11 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
:root {
--card_width: 33%;
--row_increment: 10px;
--card_border_radius: 16px;
--card_small: 26;
--card_medium: 33;
--card_large: 45;
}
body {
margin: 0;
padding: 0;
padding-top: 5px;
background-color: grey;
}
.pin_container {
margin: 0;
padding: 0;
width: 80vw;
position: absolute;
left: 50%;
transform: translateX(-50%);
display: grid;
grid-template-columns: repeat(auto-fill, var(--card_width));
grid-auto-rows: var(--row_increment);
justify-content: center;
background-color: black;
}
.card {
padding: 0;
margin: 15px 10px;
border-radius: var(--card_border_radius);
background-color: red;
}
.card_small {
grid-row-end: span var(--card_small);
}
.card_medium {
grid-row-end: span var(--card_medium);
}
.card_large {
grid-row-end: span var(--card_large);
}
#list {
columns: 4;
column-gap: 12px;
}
.item {
background-color: #169fe6;
width: 100%;
margin-bottom: 12px;
}
</style>
</head>
<body>
<div class="container">
<div id="list" class="section">
<div class="item" style="height: 14em;"></div>
<div class="item" style="height: 26em;"></div>
<div class="item" style="height: 8em;"></div>
<div class="item" style="height: 14em;"></div>
<div class="item" style="height: 8em;"></div>
<div class="item" style="height: 18em;"></div>
<div class="item" style="height: 16em;"></div>
<div class="item" style="height: 12em;"></div>
</div>
</div>
</body>
</html>