-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompact-gallery.css
78 lines (66 loc) · 1.51 KB
/
compact-gallery.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
.gallery-block{
padding-bottom: 60px;
padding-top: 60px;
}
.gallery-block .heading{
margin-bottom: 50px;
text-align: center;
}
.gallery-block .heading h2{
font-weight: bold;
font-size: 1.4rem;
text-transform: uppercase;
}
.gallery-block.compact-gallery .item{
overflow: hidden;
margin-bottom: 0;
background: black;
opacity: 1;
}
.gallery-block.compact-gallery .item .image{
transition: 0.8s ease;
}
.gallery-block.compact-gallery .item .info{
position: relative;
display: inline-block;
}
.gallery-block.compact-gallery .item .description{
display: grid;
position: absolute;
bottom: 0;
left: 0;
color: #fff;
padding: 10px;
font-size: 17px;
line-height: 18px;
width: 100%;
padding-top: 15px;
padding-bottom: 15px;
opacity: 1;
color: #fff;
transition: 0.8s ease;
text-align: center;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.39));
}
.gallery-block.compact-gallery .item .description .description-heading{
font-size: 1em;
font-weight: bold;
}
.gallery-block.compact-gallery .item .description .description-body{
font-size: 0.8em;
margin-top: 10px;
font-weight: 300;
}
@media (min-width: 576px) {
.gallery-block.compact-gallery .item .description {
opacity: 0;
}
.gallery-block.compact-gallery .item a:hover .description {
opacity: 1;
}
.gallery-block .zoom-on-hover:hover .image {
transform: scale(1.3);
opacity: 0.7;
}
}