-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_grid.scss
More file actions
54 lines (41 loc) · 743 Bytes
/
_grid.scss
File metadata and controls
54 lines (41 loc) · 743 Bytes
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
.grid {
@include row;
margin-bottom: $gutter;
}
.grid__item {
width: 33.33%;
float:left;
}
.grid__item--figure a {
@include pad-ratio(800, 600);
}
.grid__item a {
display: block;
position: relative;
}
@include media($md) { // show descriptions on hover when larger than medium breakpoint
.grid__item a img {
opacity: 0;
}
.grid__item a:hover img.lazyloaded {
opacity: .15;
}
.grid__item a:hover:after {
@include pad;
content: attr(alt);
color: $primary;
position: absolute;
top: 0;
left: 0;
}
}
@include media($lg) {
.grid__item a:hover:after {
font-size: modular-scale(1);
}
}
.grid__item img {
display: block;
}
.grid__item--figure {}
.grid__item--text {}