blob: 456f8acbf808bfc8fca8d8de7771d21e4e96a16b (
plain)
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
|
@import '../../shared/styles/jetpack-variables.scss';
@import './variables.scss';
@import './css-gram.scss';
$tiled-gallery-max-column-count: 20;
.wp-block-jetpack-tiled-gallery {
margin: 0 auto $jetpack-block-margin-bottom;
&.is-style-circle .tiled-gallery__item img {
border-radius: 50%;
}
&.is-style-square,
&.is-style-circle {
.tiled-gallery__row {
flex-grow: 1;
width: 100%;
@for $cols from 1 through $tiled-gallery-max-column-count {
&.columns-#{$cols} {
.tiled-gallery__col {
width: calc( ( 100% - #{ $tiled-gallery-gutter * ( $cols - 1 ) } ) / #{$cols} );
}
}
}
}
}
&.is-style-columns,
&.is-style-rectangular {
.tiled-gallery__item {
display: flex;
}
}
}
.tiled-gallery__gallery {
width: 100%;
display: flex;
padding: 0;
flex-wrap: wrap;
}
.tiled-gallery__row {
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
margin: 0;
& + & {
margin-top: $tiled-gallery-gutter;
}
}
.tiled-gallery__col {
display: flex;
flex-direction: column;
justify-content: center;
margin: 0;
& + & {
margin-left: $tiled-gallery-gutter;
}
}
.tiled-gallery__item {
justify-content: center;
margin: 0;
overflow: hidden;
padding: 0;
position: relative;
&.filter__black-and-white {
filter: grayscale( 100% );
}
&.filter__sepia {
filter: sepia( 100% );
}
&.filter__1977 {
@include _1977;
}
&.filter__clarendon {
@include clarendon;
}
&.filter__gingham {
@include gingham;
}
& + & {
margin-top: $tiled-gallery-gutter;
}
> img {
background-color: rgba( 0, 0, 0, 0.1 );
}
> a,
> a > img,
> img {
display: block;
height: auto;
margin: 0;
max-width: 100%;
object-fit: cover;
object-position: center;
padding: 0;
width: 100%;
}
}
|