-
Notifications
You must be signed in to change notification settings - Fork 61
/
index.css
76 lines (69 loc) · 1.19 KB
/
index.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
.example {
display: block;
vertical-align: top;
text-align: center;
padding: 1em;
}
.example img {
margin-bottom: 1em;
max-width: 100%;
}
article figure img {
max-width: 100%;
}
#photos-grid {
/* Prevent vertical gaps */
line-height: 0;
-moz-column-count: 5;
-moz-column-gap: 0px;
column-count: 5;
column-gap: 0px;
}
#photos-grid img {
/* Just in case there are inline attributes */
width: 100% !important;
height: auto !important;
}
img[ix-sizes='auto'] {
display: block;
width: 100%;
}
.size-info {
z-index: 1;
position: relative;
bottom: 40px;
color: white;
font-size: x-large;
background-color: black;
width: auto;
height: auto;
}
.size-info p {
text-align: right;
}
/* media queries test the browser width and adjust
the number of columns accordingly. */
@media (max-width: 1200px) {
#photos-grid {
-moz-column-count: 4;
column-count: 4;
}
}
@media (max-width: 1000px) {
#photos-grid {
-moz-column-count: 3;
column-count: 3;
}
}
@media (max-width: 800px) {
#photos-grid {
-moz-column-count: 2;
column-count: 2;
}
}
@media (max-width: 400px) {
#photos-grid {
-moz-column-count: 1;
column-count: 1;
}
}