_media.scss
1.41 KB
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
125
126
127
/**
* Media
*/
.page-content,
.entry-content,
.comment-content {
img.wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
display: inline-block;
}
}
/**
* Captions
*/
.wp-caption {
margin-bottom: $vspacing;
max-width: 100%;
img[class*="wp-image-"] {
display: block;
margin: 0 auto;
}
.wp-caption-text {
text-align: left;
font-style: italic;
border-bottom: 2px solid $color_border;
padding: 1em 0;
}
}
/**
* Galleries
*/
.gallery {
@extend %clearfix;
margin-bottom: $vspacing;
.gallery-item {
float: left;
.gallery-icon {
a {
display: block;
}
img {
border: none;
height: auto;
margin: 0 auto;
}
}
.gallery-caption {
margin: 0;
text-align: center;
}
}
&.gallery-columns-1 {
.gallery-item {
width: 100%;
}
}
&.gallery-columns-2 {
.gallery-item {
width: 50%;
}
}
&.gallery-columns-3 {
.gallery-item {
width: 33.3%;
}
}
&.gallery-columns-4 {
.gallery-item {
width: 25%;
}
}
&.gallery-columns-5 {
.gallery-item {
width: 20%;
}
}
&.gallery-columns-6 {
.gallery-item {
width: 16.666666667%;
}
}
&.gallery-columns-7 {
.gallery-item {
width: 14.285714286%;
}
}
&.gallery-columns-8 {
.gallery-item {
width: 12.5%;
}
}
&.gallery-columns-9 {
.gallery-item {
width: 11.111111111%;
}
}
}
/**
* Embeds
*/
embed,
iframe,
object,
video {
max-width: 100%;
}