-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_images.scss
124 lines (106 loc) · 1.98 KB
/
_images.scss
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@mixin pad-ratio($x, $y, $selector: img) {
position: relative;
padding: 0 0 percentage($y/$x) 0;
height: 0;
#{$selector} {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
img {
height: auto;
}
figure img {
background: $silver;
display: block;
margin: auto;
}
.figure {
@include row;
clear: both;
margin: $gutter 0;
}
article .figure {
@include media($md) {
border-color: $accent;
border-style: solid;
border-width: 30px;
}
}
.figure__caption {
@include span-columns(12);
font-family: $display-font-family;
font-style: italic;
font-weight: 400;
font-size: modular-scale(0);
line-height: 1.25;
padding: $gutter/4 $gutter/2;
@include media($md) {
font-weight: 400;
padding: 0 $gutter/2 !important;
}
}
.figure__caption p {
@include shift(0);
@include span-columns(12);
display: inline !important;
clear: both;
float: none !important;
line-height: 1.5;
font-size: modular-scale(0);
padding: 0;
@include media($md) {
font-weight: 100;
padding: 0;
line-height: 1.25;
}
}
.figure__caption--full {
@include media($md) {
@include outer-container;
padding: 0 $gutter/2 !important;
margin: $gutter/4 auto !important;
float: none !important;
@include media($xl) {
padding: 0 !important;
}
p {
float: none !important;
margin: auto !important;
font-size: modular-scale(2);
}
}
}
.fluid-width-video-wrapper {
margin-bottom: $gutter/2;
}
.figure--full {
margin-top: 0!important;
}
.figure--full .ratio-box {
@include pad-ratio(1088, 500);
}
.fade-box .lazyload,
.fade-box .lazyloading {
opacity: 0;
}
.fade-box .lazyloaded {
opacity: 1;
transition: opacity 400ms;
}
@include media($md) {
article .figure {
@include row;
.figure__image {
@include span-columns(6);
}
.figure__caption {
@include span-columns(6);
font-size:modular-scale(2);
text-align: right;
}
}
}