-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmasonry_gallery_rows.css
66 lines (63 loc) · 1.41 KB
/
masonry_gallery_rows.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
body {
overflow-y: scroll;
}
.masonry-gallery-rows {
padding: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start;
opacity: 0;
}
.masonry-gallery-rows img { /*Here you can change paddings, borders and margins of images*/
padding: 2px;
/*border: 2px solid #ccc;*/
/*margin: 5px;*/
border-radius: 5px;
height: 300px;
}
/*Styles for anchors and captions*/
.thumbnail-item {
position: relative;
padding: 0;
margin: 0;
}
.thumbnail-item img {
display: block;
-webkit-transition-duration: 0.5s;
transition-duration: 0.5s;
}
.caption-center {
width: 100%;
position: absolute;
top: 50%;
left: 0;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
text-align: center;
}
.caption-center p {
padding: 20px;
color: white;
font-size: 18px;
opacity: 0.3;
-webkit-transition-duration: 0.1s;
transition-duration: 0.1s;
}
.thumbnail-item:hover img {
-webkit-filter: grayscale(100%) brightness(90%);
filter: grayscale(100%) brightness(90%);
}
.thumbnail-item:hover p {
opacity: 1;
}