@automattic/newspack-blocks 1.53.0 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/babel/1783de595f21d427355e559781275222.json.gz +0 -0
- package/.cache/babel/2a75259638488d555bb07fb4f54ddde6.json.gz +0 -0
- package/.cache/babel/{64cb5afd808420a679c0d56e7bdb7949.json.gz → 2dfe70bf8fa9218857f45826e2386a32.json.gz} +0 -0
- package/.cache/babel/2ef414e63685642b486b71a962a5cc09.json.gz +0 -0
- package/.cache/babel/5a94cdb1154d1770a8b0e8cd3145825b.json.gz +0 -0
- package/.cache/babel/678cc0f373236434bf692c16d26ba22f.json.gz +0 -0
- package/.cache/babel/71371fcf9db60a3a1e024991cb3b4bf3.json.gz +0 -0
- package/.cache/babel/725e695c6992a4d01573b83867255ea9.json.gz +0 -0
- package/.cache/babel/94ee8f45c55ecf01005a435ab588333b.json.gz +0 -0
- package/.cache/babel/a5759fe1915229088160b7f5eb8a2e75.json.gz +0 -0
- package/.cache/babel/{bdebf548c146fe858685d50dd0ebd031.json.gz → be383af4530fd3521ee3db177be1bbf4.json.gz} +0 -0
- package/.cache/babel/d298f58c94d221b643c4c009ea0d8002.json.gz +0 -0
- package/.cache/babel/dc7e2d653dbbdbd1939aa281435afa5d.json.gz +0 -0
- package/.cache/babel/f50f27ba4b367318e30e91dbe003e5c8.json.gz +0 -0
- package/CHANGELOG.md +35 -0
- package/dist/author-profile/view.asset.php +1 -1
- package/dist/author-profile/view.css +1 -1
- package/dist/author-profile/view.rtl.css +1 -1
- package/dist/carousel/view.asset.php +1 -1
- package/dist/carousel/view.css +1 -1
- package/dist/carousel/view.js +1 -1
- package/dist/carousel/view.rtl.css +1 -1
- package/dist/donate/view.asset.php +1 -1
- package/dist/donate/view.css +1 -1
- package/dist/donate/view.rtl.css +1 -1
- package/dist/donateStreamlined.asset.php +1 -1
- package/dist/donateStreamlined.js +1 -1
- package/dist/editor.asset.php +1 -1
- package/dist/editor.css +1 -1
- package/dist/editor.js +5 -5
- package/dist/editor.rtl.css +1 -1
- package/dist/homepage-articles/view.asset.php +1 -1
- package/dist/homepage-articles/view.css +1 -1
- package/dist/homepage-articles/view.rtl.css +1 -1
- package/dist/placeholder_blocks.asset.php +1 -0
- package/dist/placeholder_blocks.js +1 -0
- package/includes/class-newspack-blocks-api.php +14 -12
- package/includes/class-newspack-blocks-patterns.php +3 -2
- package/includes/class-newspack-blocks.php +64 -1
- package/newspack-blocks.php +3 -2
- package/package.json +17 -16
- package/src/block-patterns/homepage-posts-14.php +1 -1
- package/src/block-patterns/homepage-posts-2.php +1 -1
- package/src/block-patterns/homepage-posts-26.php +1 -1
- package/src/block-patterns/homepage-posts-31.php +13 -0
- package/src/block-patterns/homepage-posts-7.php +1 -1
- package/src/block-styles/core/columns/editor.scss +10 -10
- package/src/block-styles/core/columns/view.scss +8 -8
- package/src/block-styles/core/group/editor.scss +3 -3
- package/src/block-styles/core/group/view.scss +3 -3
- package/src/blocks/author-list/editor.scss +1 -1
- package/src/blocks/author-profile/edit.js +29 -6
- package/src/blocks/author-profile/editor.scss +4 -3
- package/src/blocks/author-profile/view.scss +9 -9
- package/src/blocks/carousel/edit.js +31 -15
- package/src/blocks/carousel/editor.scss +1 -1
- package/src/blocks/carousel/view.php +94 -87
- package/src/blocks/carousel/view.scss +52 -13
- package/src/blocks/donate/block.json +49 -0
- package/src/blocks/donate/edit.tsx +569 -0
- package/src/blocks/donate/editor.scss +68 -8
- package/src/blocks/donate/index.js +8 -41
- package/src/blocks/donate/streamlined/style.scss +17 -17
- package/src/blocks/donate/view.php +226 -174
- package/src/blocks/donate/view.scss +97 -114
- package/src/blocks/homepage-articles/edit.js +28 -22
- package/src/blocks/homepage-articles/editor.scss +5 -5
- package/src/blocks/homepage-articles/templates/article.php +78 -73
- package/src/blocks/homepage-articles/utils.ts +1 -3
- package/src/blocks/homepage-articles/view.scss +68 -40
- package/src/blocks/iframe/edit.js +18 -14
- package/src/blocks/iframe/editor.scss +3 -3
- package/src/blocks/video-playlist/editor.scss +2 -2
- package/src/setup/editor.scss +46 -4
- package/src/setup/placeholder-blocks.js +83 -0
- package/src/shared/sass/_mixins.scss +7 -5
- package/src/types/@wordpress/block-editor.d.ts +1 -0
- package/src/types/@wordpress/components.d.ts +1 -0
- package/src/types/{index.ts → index.d.ts} +5 -1
- package/src/types/newspack-components.d.ts +7 -0
- package/vendor/autoload.php +1 -1
- package/vendor/composer/autoload_real.php +4 -4
- package/vendor/composer/autoload_static.php +2 -2
- package/vendor/composer/installed.php +2 -2
- package/webpack.config.js +4 -0
- package/.cache/babel/07169c73863508b392f15022920bd0b6.json.gz +0 -0
- package/.cache/babel/10faf7c74a89e9aa4d8b9528a654913e.json.gz +0 -0
- package/.cache/babel/3fc03f1e35bc1fde55a903cf25d74d3d.json.gz +0 -0
- package/.cache/babel/553094e2be86910f765ad110c8da1ba1.json.gz +0 -0
- package/.cache/babel/55dd64fbb5126117016b9edff26ca5ee.json.gz +0 -0
- package/.cache/babel/7cbfe1b298fdc2a21add34363b2a6046.json.gz +0 -0
- package/.cache/babel/95c79f7af2e88cb1c48e88f304b1a1fd.json.gz +0 -0
- package/.cache/babel/ac3be6086bb961d3a94ba6ba7728901c.json.gz +0 -0
- package/.cache/babel/c9354785521531ea2b4a9a8c2f526abf.json.gz +0 -0
- package/.cache/babel/ca34d0586d4fbcd06c357ff72bda9a19.json.gz +0 -0
- package/.cache/babel/edb4dcd474dbafd6ea1655b24469e261.json.gz +0 -0
- package/src/blocks/donate/edit.js +0 -587
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@use '../../shared/sass/colors';
|
|
2
|
+
@use '../../shared/sass/mixins';
|
|
3
|
+
@use '../../shared/sass/variables';
|
|
4
4
|
|
|
5
5
|
.wpbnbd {
|
|
6
|
-
background:
|
|
7
|
-
border: 1px solid
|
|
8
|
-
color:
|
|
6
|
+
background: colors.$color__background-body;
|
|
7
|
+
border: 1px solid variables.$color__border;
|
|
8
|
+
color: colors.$color__text-main;
|
|
9
9
|
position: relative;
|
|
10
10
|
width: 100%;
|
|
11
11
|
|
|
@@ -15,22 +15,23 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
input[readonly] {
|
|
18
|
-
background-color:
|
|
18
|
+
background-color: colors.$color__background-screen;
|
|
19
19
|
color: #666;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.freq-label,
|
|
23
|
-
.tier-label
|
|
23
|
+
.tier-label,
|
|
24
|
+
.input-container {
|
|
24
25
|
display: block;
|
|
25
26
|
font-weight: bold;
|
|
26
27
|
cursor: pointer;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.freq-label {
|
|
30
|
-
background:
|
|
31
|
+
background: colors.$color__background-body;
|
|
31
32
|
box-sizing: border-box;
|
|
32
|
-
color:
|
|
33
|
-
line-height:
|
|
33
|
+
color: colors.$color__text-light;
|
|
34
|
+
line-height: variables.$font__line-height-body;
|
|
34
35
|
overflow: hidden;
|
|
35
36
|
padding: 0.38rem 0.76rem;
|
|
36
37
|
text-overflow: ellipsis;
|
|
@@ -39,31 +40,31 @@
|
|
|
39
40
|
width: 100%;
|
|
40
41
|
z-index: 1;
|
|
41
42
|
|
|
42
|
-
@include media( tablet ) {
|
|
43
|
+
@include mixins.media( tablet ) {
|
|
43
44
|
text-align: center;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
&:focus,
|
|
47
48
|
&:hover {
|
|
48
|
-
background:
|
|
49
|
-
color:
|
|
49
|
+
background: colors.$color__background-screen;
|
|
50
|
+
color: colors.$color__text-main;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
button {
|
|
54
55
|
margin: 0 0.76rem 0.76rem;
|
|
55
56
|
|
|
56
|
-
@include media( tablet ) {
|
|
57
|
+
@include mixins.media( tablet ) {
|
|
57
58
|
margin: 0 1.5rem 1.5rem;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.thanks {
|
|
62
|
-
color:
|
|
63
|
-
font-size:
|
|
63
|
+
color: colors.$color__text-light;
|
|
64
|
+
font-size: variables.$font__size-sm;
|
|
64
65
|
margin: 0.38rem 0.76rem 0.76rem;
|
|
65
66
|
|
|
66
|
-
@include media( tablet ) {
|
|
67
|
+
@include mixins.media( tablet ) {
|
|
67
68
|
margin-left: 1.5rem;
|
|
68
69
|
margin-right: 1.5rem;
|
|
69
70
|
}
|
|
@@ -77,32 +78,32 @@
|
|
|
77
78
|
flex-wrap: wrap;
|
|
78
79
|
position: relative;
|
|
79
80
|
|
|
80
|
-
@include media( tablet ) {
|
|
81
|
+
@include mixins.media( tablet ) {
|
|
81
82
|
margin: 1.12rem 1.12rem 0.38rem;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
.tier-label {
|
|
85
|
-
border: 1px solid
|
|
86
|
+
border: 1px solid variables.$color__border;
|
|
86
87
|
border-radius: 5px;
|
|
87
88
|
margin: 0.38rem;
|
|
88
89
|
padding: 0.38rem 0.76rem;
|
|
89
90
|
|
|
90
91
|
&:hover {
|
|
91
|
-
background:
|
|
92
|
+
background: colors.$color__background-screen;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
input[type='radio'] {
|
|
96
97
|
&:focus + .tier-label {
|
|
97
|
-
background:
|
|
98
|
-
outline: 1px dotted
|
|
98
|
+
background: colors.$color__background-screen;
|
|
99
|
+
outline: 1px dotted currentcolor;
|
|
99
100
|
outline-offset: -4px;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
&:checked + .tier-label {
|
|
103
|
-
background-color:
|
|
104
|
+
background-color: colors.$color__primary;
|
|
104
105
|
border-color: transparent;
|
|
105
|
-
color:
|
|
106
|
+
color: colors.$color__background-body;
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
109
|
|
|
@@ -124,7 +125,8 @@
|
|
|
124
125
|
&:checked ~ .money-input {
|
|
125
126
|
display: flex;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
+
|
|
129
|
+
&:checked ~ .odl {
|
|
128
130
|
display: block;
|
|
129
131
|
}
|
|
130
132
|
|
|
@@ -142,31 +144,13 @@
|
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
.wpbnbd.untiered {
|
|
145
|
-
padding-top: 7.65em;
|
|
146
|
-
padding-top: calc( 3 * ( 0.76rem + 1.28em + 1px ) );
|
|
147
|
-
position: relative;
|
|
148
|
-
|
|
149
|
-
@include media( tablet ) {
|
|
150
|
-
padding-top: 2.55em;
|
|
151
|
-
padding-top: calc( 0.76rem + 1.28em + 1px );
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.freq-label {
|
|
155
|
-
font-size: $font__size-sm;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
147
|
.input-container {
|
|
159
148
|
margin: 0.76rem;
|
|
160
149
|
display: none;
|
|
161
150
|
|
|
162
|
-
@include media( tablet ) {
|
|
151
|
+
@include mixins.media( tablet ) {
|
|
163
152
|
margin: 1.5rem 1.5rem 0.76rem;
|
|
164
153
|
}
|
|
165
|
-
|
|
166
|
-
label {
|
|
167
|
-
font-size: $font__size-sm;
|
|
168
|
-
font-weight: bold;
|
|
169
|
-
}
|
|
170
154
|
}
|
|
171
155
|
|
|
172
156
|
input[type='radio']:checked ~ .input-container {
|
|
@@ -179,19 +163,19 @@
|
|
|
179
163
|
align-items: center;
|
|
180
164
|
position: relative;
|
|
181
165
|
max-width: 200px;
|
|
182
|
-
background-color:
|
|
166
|
+
background-color: colors.$color__background-input;
|
|
183
167
|
border-radius: 3px;
|
|
184
|
-
border: 1px solid
|
|
168
|
+
border: 1px solid variables.$color__border;
|
|
185
169
|
|
|
186
170
|
&:focus-within {
|
|
187
|
-
border-color:
|
|
188
|
-
outline: thin solid rgba(
|
|
171
|
+
border-color: colors.$color__text-input-focus;
|
|
172
|
+
outline: thin solid rgba( colors.$color__text-input-focus, 0.15 );
|
|
189
173
|
outline-offset: -4px;
|
|
190
174
|
}
|
|
191
175
|
|
|
192
176
|
.currency {
|
|
193
177
|
cursor: default;
|
|
194
|
-
font-size:
|
|
178
|
+
font-size: variables.$font__size-sm;
|
|
195
179
|
padding-left: 0.5em;
|
|
196
180
|
}
|
|
197
181
|
|
|
@@ -211,21 +195,19 @@
|
|
|
211
195
|
}
|
|
212
196
|
|
|
213
197
|
.wpbnbd .frequencies {
|
|
214
|
-
font-size:
|
|
198
|
+
font-size: variables.$font__size-sm;
|
|
215
199
|
padding-top: 7.65em;
|
|
216
|
-
padding-top: calc( 3 * ( 0.76rem + 1.6em + 1px ) );
|
|
217
200
|
position: relative;
|
|
218
201
|
|
|
219
|
-
@include media( tablet ) {
|
|
220
|
-
padding-top:
|
|
221
|
-
padding-top: calc( 0.76rem + 1.6em + 1px );
|
|
202
|
+
@include mixins.media( tablet ) {
|
|
203
|
+
padding-top: calc( 0.76rem + 1.6em + 1px ) !important;
|
|
222
204
|
}
|
|
223
205
|
}
|
|
224
206
|
|
|
225
207
|
.wpbnbd .frequency {
|
|
226
208
|
.freq-label {
|
|
227
209
|
align-items: center;
|
|
228
|
-
border: 0 solid
|
|
210
|
+
border: 0 solid variables.$color__border;
|
|
229
211
|
border-width: 0 0 1px;
|
|
230
212
|
display: flex;
|
|
231
213
|
left: 0;
|
|
@@ -234,7 +216,7 @@
|
|
|
234
216
|
width: 100%;
|
|
235
217
|
|
|
236
218
|
&::before {
|
|
237
|
-
border: 2px solid
|
|
219
|
+
border: 2px solid currentcolor;
|
|
238
220
|
border-radius: 100%;
|
|
239
221
|
content: '';
|
|
240
222
|
display: block;
|
|
@@ -244,9 +226,8 @@
|
|
|
244
226
|
width: 20px;
|
|
245
227
|
}
|
|
246
228
|
|
|
247
|
-
@include media( tablet ) {
|
|
229
|
+
@include mixins.media( tablet ) {
|
|
248
230
|
justify-content: center;
|
|
249
|
-
width: 33.33%;
|
|
250
231
|
|
|
251
232
|
&::before {
|
|
252
233
|
display: none;
|
|
@@ -260,16 +241,16 @@
|
|
|
260
241
|
color: inherit;
|
|
261
242
|
|
|
262
243
|
&::before {
|
|
263
|
-
background:
|
|
244
|
+
background: colors.$color__text-main;
|
|
264
245
|
background-clip: content-box;
|
|
265
246
|
}
|
|
266
247
|
|
|
267
|
-
@include media( tablet ) {
|
|
248
|
+
@include mixins.media( tablet ) {
|
|
268
249
|
border-bottom-color: transparent;
|
|
269
250
|
}
|
|
270
251
|
|
|
271
252
|
&:hover {
|
|
272
|
-
background:
|
|
253
|
+
background: colors.$color__background-body;
|
|
273
254
|
}
|
|
274
255
|
}
|
|
275
256
|
|
|
@@ -287,29 +268,53 @@
|
|
|
287
268
|
|
|
288
269
|
&:nth-of-type( 2 ) .freq-label {
|
|
289
270
|
top: calc( 0.76rem + 1.6em + 1px );
|
|
290
|
-
|
|
291
|
-
@include media( tablet ) {
|
|
292
|
-
border-left-width: 1px;
|
|
293
|
-
border-right-width: 1px;
|
|
294
|
-
left: 33.33%;
|
|
295
|
-
top: 0;
|
|
296
|
-
}
|
|
297
271
|
}
|
|
298
272
|
|
|
299
273
|
&:nth-of-type( 3 ) .freq-label {
|
|
300
274
|
top: calc( 2 * ( 0.76rem + 1.6em + 1px ) );
|
|
301
275
|
|
|
302
|
-
@include media( tablet ) {
|
|
276
|
+
@include mixins.media( tablet ) {
|
|
303
277
|
left: 66.66%;
|
|
304
278
|
top: 0;
|
|
305
279
|
}
|
|
306
280
|
}
|
|
307
281
|
}
|
|
308
282
|
|
|
283
|
+
@include mixins.media( tablet ) {
|
|
284
|
+
.wpbnbd-frequencies {
|
|
285
|
+
&--2 {
|
|
286
|
+
&.wpbnbd .frequency {
|
|
287
|
+
.freq-label {
|
|
288
|
+
width: 50%;
|
|
289
|
+
}
|
|
290
|
+
&:nth-of-type( 2 ) .freq-label {
|
|
291
|
+
border-left-width: 1px;
|
|
292
|
+
left: 50%;
|
|
293
|
+
top: 0;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&--3 {
|
|
299
|
+
&.wpbnbd .frequency {
|
|
300
|
+
.freq-label {
|
|
301
|
+
width: 33.33%;
|
|
302
|
+
}
|
|
303
|
+
&:nth-of-type( 2 ) .freq-label {
|
|
304
|
+
border-left-width: 1px;
|
|
305
|
+
border-right-width: 1px;
|
|
306
|
+
left: 33.33%;
|
|
307
|
+
top: 0;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
309
314
|
/* Alternate Style */
|
|
310
315
|
|
|
311
316
|
.wpbnbd.is-style-alternate {
|
|
312
|
-
border-color:
|
|
317
|
+
border-color: colors.$color__background-screen;
|
|
313
318
|
border-radius: 5px;
|
|
314
319
|
|
|
315
320
|
.thanks {
|
|
@@ -326,12 +331,6 @@
|
|
|
326
331
|
}
|
|
327
332
|
|
|
328
333
|
&.untiered {
|
|
329
|
-
padding-top: calc( 3 * ( 1.14rem + 1.28em ) + 8px );
|
|
330
|
-
|
|
331
|
-
@include media( tablet ) {
|
|
332
|
-
padding-top: calc( 1.14rem + 1.28em + 4px );
|
|
333
|
-
}
|
|
334
|
-
|
|
335
334
|
.input-container {
|
|
336
335
|
margin: 1.12rem;
|
|
337
336
|
}
|
|
@@ -340,15 +339,11 @@
|
|
|
340
339
|
&.tiered {
|
|
341
340
|
.tiers {
|
|
342
341
|
.tier-label {
|
|
343
|
-
background:
|
|
344
|
-
border-color:
|
|
342
|
+
background: colors.$color__background-screen;
|
|
343
|
+
border-color: colors.$color__background-screen;
|
|
345
344
|
margin: 0;
|
|
346
345
|
text-align: center;
|
|
347
346
|
}
|
|
348
|
-
|
|
349
|
-
input.other-input:checked + label {
|
|
350
|
-
margin-bottom: calc( 1.28rem + 1.6em + 2px );
|
|
351
|
-
}
|
|
352
347
|
}
|
|
353
348
|
|
|
354
349
|
.money-input {
|
|
@@ -359,17 +354,15 @@
|
|
|
359
354
|
}
|
|
360
355
|
|
|
361
356
|
.frequencies {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
@include media( tablet ) {
|
|
357
|
+
@include mixins.media( tablet ) {
|
|
365
358
|
padding-top: calc( 1.14rem + 1.6em + 4px );
|
|
366
359
|
}
|
|
367
360
|
}
|
|
368
361
|
|
|
369
362
|
.frequency {
|
|
370
363
|
.freq-label {
|
|
371
|
-
background:
|
|
372
|
-
border-color:
|
|
364
|
+
background: colors.$color__background-screen;
|
|
365
|
+
border-color: colors.$color__background-screen;
|
|
373
366
|
border-width: 1px;
|
|
374
367
|
padding: calc( 0.57rem + 1px ) 0.76rem;
|
|
375
368
|
|
|
@@ -381,7 +374,7 @@
|
|
|
381
374
|
&:nth-of-type( 2 ) .freq-label {
|
|
382
375
|
top: calc( 1.14rem + 1.6em + 2px );
|
|
383
376
|
|
|
384
|
-
@include media( tablet ) {
|
|
377
|
+
@include mixins.media( tablet ) {
|
|
385
378
|
top: 0;
|
|
386
379
|
}
|
|
387
380
|
}
|
|
@@ -389,7 +382,7 @@
|
|
|
389
382
|
&:nth-of-type( 3 ) .freq-label {
|
|
390
383
|
top: calc( 2 * ( 1.14rem + 1.6em + 2px ) );
|
|
391
384
|
|
|
392
|
-
@include media( tablet ) {
|
|
385
|
+
@include mixins.media( tablet ) {
|
|
393
386
|
top: 0;
|
|
394
387
|
}
|
|
395
388
|
}
|
|
@@ -402,7 +395,7 @@
|
|
|
402
395
|
border-radius: 5px;
|
|
403
396
|
bottom: 0.19rem;
|
|
404
397
|
border: 0.19rem solid white;
|
|
405
|
-
box-shadow: 0 0 0 1px
|
|
398
|
+
box-shadow: 0 0 0 1px variables.$color__border;
|
|
406
399
|
content: '';
|
|
407
400
|
display: block;
|
|
408
401
|
left: 0.19rem;
|
|
@@ -413,7 +406,7 @@
|
|
|
413
406
|
}
|
|
414
407
|
|
|
415
408
|
&:hover {
|
|
416
|
-
background:
|
|
409
|
+
background: colors.$color__background-screen;
|
|
417
410
|
}
|
|
418
411
|
}
|
|
419
412
|
|
|
@@ -423,7 +416,7 @@
|
|
|
423
416
|
grid-template-columns: repeat( 4, 1fr );
|
|
424
417
|
margin: 1.12rem;
|
|
425
418
|
|
|
426
|
-
@include media( mobile ) {
|
|
419
|
+
@include mixins.media( mobile ) {
|
|
427
420
|
grid-gap: 0.56rem;
|
|
428
421
|
}
|
|
429
422
|
}
|
|
@@ -461,12 +454,6 @@
|
|
|
461
454
|
}
|
|
462
455
|
|
|
463
456
|
&.untiered {
|
|
464
|
-
padding-top: calc( 3 * ( 0.76rem + 1.28em + 4px ) );
|
|
465
|
-
|
|
466
|
-
@include media( tablet ) {
|
|
467
|
-
padding-top: calc( 0.76rem + 1.28em + 4px );
|
|
468
|
-
}
|
|
469
|
-
|
|
470
457
|
.input-container {
|
|
471
458
|
margin: 0.56rem 0 1.12rem;
|
|
472
459
|
text-align: left;
|
|
@@ -480,7 +467,7 @@
|
|
|
480
467
|
display: grid;
|
|
481
468
|
background: transparent;
|
|
482
469
|
border: none;
|
|
483
|
-
color:
|
|
470
|
+
color: colors.$color__text-light;
|
|
484
471
|
font-family: inherit;
|
|
485
472
|
font-weight: inherit;
|
|
486
473
|
grid-gap: 0.25rem;
|
|
@@ -491,7 +478,7 @@
|
|
|
491
478
|
|
|
492
479
|
&::before {
|
|
493
480
|
background: white;
|
|
494
|
-
border: 1px solid
|
|
481
|
+
border: 1px solid variables.$color__border;
|
|
495
482
|
border-radius: 100%;
|
|
496
483
|
box-shadow: inset 0 0 0 3px white;
|
|
497
484
|
content: '';
|
|
@@ -506,16 +493,12 @@
|
|
|
506
493
|
}
|
|
507
494
|
}
|
|
508
495
|
|
|
509
|
-
input.other-input:checked + label {
|
|
510
|
-
margin-bottom: calc( 1.28rem + 1.6em + 2px );
|
|
511
|
-
}
|
|
512
|
-
|
|
513
496
|
input[type='radio']:checked + .tier-select-label {
|
|
514
497
|
background: none;
|
|
515
498
|
color: inherit;
|
|
516
499
|
|
|
517
500
|
&::before {
|
|
518
|
-
background:
|
|
501
|
+
background: currentcolor;
|
|
519
502
|
}
|
|
520
503
|
}
|
|
521
504
|
}
|
|
@@ -530,7 +513,7 @@
|
|
|
530
513
|
.frequencies {
|
|
531
514
|
padding-top: calc( 3 * ( 0.76rem + 1.6em + 4px ) );
|
|
532
515
|
|
|
533
|
-
@include media( tablet ) {
|
|
516
|
+
@include mixins.media( tablet ) {
|
|
534
517
|
padding-top: calc( 0.76rem + 1.6em + 4px );
|
|
535
518
|
}
|
|
536
519
|
}
|
|
@@ -539,25 +522,25 @@
|
|
|
539
522
|
.freq-label {
|
|
540
523
|
background: transparent;
|
|
541
524
|
border: none;
|
|
542
|
-
box-shadow: 0 3px 0 white, 0 4px 0 0
|
|
525
|
+
box-shadow: 0 3px 0 white, 0 4px 0 0 variables.$color__border;
|
|
543
526
|
padding: 0.38rem 0;
|
|
544
527
|
transition: none;
|
|
545
528
|
|
|
546
|
-
@include media( tablet ) {
|
|
529
|
+
@include mixins.media( tablet ) {
|
|
547
530
|
padding-left: 0.76rem;
|
|
548
531
|
padding-right: 0.76rem;
|
|
549
532
|
}
|
|
550
533
|
|
|
551
534
|
&::before {
|
|
552
535
|
border-width: 1px;
|
|
553
|
-
border-color:
|
|
536
|
+
border-color: variables.$color__border;
|
|
554
537
|
}
|
|
555
538
|
}
|
|
556
539
|
|
|
557
540
|
&:nth-of-type( 2 ) .freq-label {
|
|
558
541
|
top: calc( 0.76rem + 1.6em + 4px );
|
|
559
542
|
|
|
560
|
-
@include media( tablet ) {
|
|
543
|
+
@include mixins.media( tablet ) {
|
|
561
544
|
top: 0;
|
|
562
545
|
}
|
|
563
546
|
}
|
|
@@ -565,14 +548,14 @@
|
|
|
565
548
|
&:nth-of-type( 3 ) .freq-label {
|
|
566
549
|
top: calc( 2 * ( 0.76rem + 1.6em + 4px ) );
|
|
567
550
|
|
|
568
|
-
@include media( tablet ) {
|
|
551
|
+
@include mixins.media( tablet ) {
|
|
569
552
|
top: 0;
|
|
570
553
|
}
|
|
571
554
|
}
|
|
572
555
|
|
|
573
556
|
input[type='radio']:checked {
|
|
574
557
|
+ .freq-label {
|
|
575
|
-
box-shadow: 0 4px 0
|
|
558
|
+
box-shadow: 0 4px 0 currentcolor;
|
|
576
559
|
}
|
|
577
560
|
|
|
578
561
|
~ .tiers {
|
|
@@ -582,7 +565,7 @@
|
|
|
582
565
|
justify-content: center;
|
|
583
566
|
margin: 1.12rem 0;
|
|
584
567
|
|
|
585
|
-
@include media( mobile ) {
|
|
568
|
+
@include mixins.media( mobile ) {
|
|
586
569
|
display: grid;
|
|
587
570
|
grid-gap: 0.56rem;
|
|
588
571
|
grid-template-columns: repeat( 4, 1fr );
|
|
@@ -171,16 +171,18 @@ class Edit extends Component {
|
|
|
171
171
|
) }
|
|
172
172
|
|
|
173
173
|
<div className="entry-wrapper">
|
|
174
|
-
{ post.newspack_post_sponsors &&
|
|
175
|
-
<span className="cat-links sponsor-label">
|
|
176
|
-
<span className="flag">{ post.newspack_post_sponsors[ 0 ].flag }</span>
|
|
177
|
-
</span>
|
|
178
|
-
) }
|
|
179
|
-
{ showCategory &&
|
|
174
|
+
{ ( post.newspack_post_sponsors || showCategory ) &&
|
|
180
175
|
0 < post.newspack_category_info.length &&
|
|
181
|
-
! post.newspack_post_sponsors && (
|
|
182
|
-
<div
|
|
183
|
-
|
|
176
|
+
( ! post.newspack_post_sponsors || post.newspack_sponsors_show_categories ) && (
|
|
177
|
+
<div
|
|
178
|
+
className={ 'cat-links' + ( post.newspack_post_sponsors ? ' sponsor-label' : '' ) }
|
|
179
|
+
>
|
|
180
|
+
{ post.newspack_post_sponsors && (
|
|
181
|
+
<span className="flag">{ post.newspack_post_sponsors[ 0 ].flag }</span>
|
|
182
|
+
) }
|
|
183
|
+
{ showCategory && (
|
|
184
|
+
<a href="#">{ decodeEntities( post.newspack_category_info ) }</a>
|
|
185
|
+
) }
|
|
184
186
|
</div>
|
|
185
187
|
) }
|
|
186
188
|
{ RichText.isEmpty( sectionHeader ) ? (
|
|
@@ -211,17 +213,28 @@ class Edit extends Component {
|
|
|
211
213
|
</a>
|
|
212
214
|
) }
|
|
213
215
|
<div className="entry-meta">
|
|
214
|
-
{ post.newspack_post_sponsors &&
|
|
215
|
-
|
|
216
|
+
{ post.newspack_post_sponsors && (
|
|
217
|
+
<span
|
|
218
|
+
className={ `entry-sponsors ${
|
|
219
|
+
post.newspack_sponsors_show_author ? 'plus-author' : ''
|
|
220
|
+
}` }
|
|
221
|
+
>
|
|
222
|
+
{ formatSponsorLogos( post.newspack_post_sponsors ) }
|
|
223
|
+
{ formatSponsorByline( post.newspack_post_sponsors ) }
|
|
224
|
+
</span>
|
|
225
|
+
) }
|
|
226
|
+
|
|
216
227
|
{ showAuthor &&
|
|
217
228
|
! post.newspack_listings_hide_author &&
|
|
218
229
|
showAvatar &&
|
|
219
|
-
! post.newspack_post_sponsors &&
|
|
230
|
+
( ! post.newspack_post_sponsors || post.newspack_sponsors_show_author ) &&
|
|
220
231
|
formatAvatars( post.newspack_author_info ) }
|
|
232
|
+
|
|
221
233
|
{ showAuthor &&
|
|
222
234
|
! post.newspack_listings_hide_author &&
|
|
223
|
-
! post.newspack_post_sponsors &&
|
|
235
|
+
( ! post.newspack_post_sponsors || post.newspack_sponsors_show_author ) &&
|
|
224
236
|
formatByline( post.newspack_author_info ) }
|
|
237
|
+
|
|
225
238
|
{ showDate && ! post.newspack_listings_hide_publish_date && (
|
|
226
239
|
<time className="entry-date published" key="pub-date">
|
|
227
240
|
{ dateI18n( dateFormat, post.date_gmt ) }
|
|
@@ -579,15 +592,8 @@ class Edit extends Component {
|
|
|
579
592
|
* Constants
|
|
580
593
|
*/
|
|
581
594
|
|
|
582
|
-
const {
|
|
583
|
-
|
|
584
|
-
className,
|
|
585
|
-
setAttributes,
|
|
586
|
-
isSelected,
|
|
587
|
-
latestPosts,
|
|
588
|
-
textColor,
|
|
589
|
-
error,
|
|
590
|
-
} = this.props;
|
|
595
|
+
const { attributes, className, setAttributes, isSelected, latestPosts, textColor, error } =
|
|
596
|
+
this.props;
|
|
591
597
|
|
|
592
598
|
const {
|
|
593
599
|
showImage,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@use '../../shared/sass/variables';
|
|
2
|
+
@use '../../shared/sass/placeholder';
|
|
3
|
+
@use '../../shared/sass/colors';
|
|
4
4
|
|
|
5
5
|
.wpnbha {
|
|
6
6
|
article {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
/* Article meta */
|
|
17
17
|
.cat-links {
|
|
18
|
-
font-size:
|
|
18
|
+
font-size: variables.$font__size-xs;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
span.avatar {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
.newspack-block {
|
|
40
40
|
&--error.components-placeholder {
|
|
41
|
-
color:
|
|
41
|
+
color: colors.$color__error;
|
|
42
42
|
}
|
|
43
43
|
&--disabled {
|
|
44
44
|
position: relative;
|