forked from petyosi/react-virtuoso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.css
72 lines (64 loc) · 1.1 KB
/
grid.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
.virtuoso-grid-list {
display: flex;
flex-wrap: wrap;
}
.virtuoso-grid-item {
padding: 0.5rem;
width: 25%;
background: #f5f5f5;
display: flex;
flex: none;
align-content: stretch;
box-sizing: border-box;
}
.virtuoso-grid-item > div {
flex: 1;
text-align: center;
font-size: 80%;
padding: 2rem;
box-shadow: 0 5px 6px -6px #777777;
background: white;
}
@media (max-width: 1024px) {
.virtuoso-grid-item {
width: 33%;
}
}
@media (max-width: 768px) {
.virtuoso-grid-item {
width: 50%;
}
}
@media (max-width: 480px) {
.virtuoso-grid-item {
width: 100%;
}
}
.virtuoso-grid-placeholder-item {
padding: 16px;
width: 25%;
display: flex;
flex: none;
align-content: stretch;
box-sizing: border-box;
}
.item {
height: 150px;
background: white;
box-sizing: border-box;
flex: 1;
text-align: center;
font-size: 80%;
padding: 2rem;
box-shadow: 0 5px 6px -6px #777777;
}
.placeholder {
height: 150px;
background: red;
box-sizing: border-box;
flex: 1;
text-align: center;
font-size: 80%;
padding: 2rem;
box-shadow: 0 5px 6px -6px #777777;
}