-
Notifications
You must be signed in to change notification settings - Fork 2
/
front-end-blocks.css
395 lines (301 loc) · 8.01 KB
/
front-end-blocks.css
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1. Blocks without Classes (Text)
2. Font Sizes
3. Colors & Gradients
4. Alignments
5. Text Blocks
6. Media Blocks
7. Design Blocks
8. Widget Blocks
9. Embed Blocks
----------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* 1. Blocks without Classes (Text)
/* -------------------------------------------------------------------------- */
/**
* Headings
*
* Alignments: has-text-align-[left/center/right]
* Color Support: Text
*/
h1 {}
h2 {}
h3 {}
h4 {}
h5 {}
h6 {}
/**
* Paragraph
*
* Alignments: has-text-align-[left/center/right]
* Font-size: has-[name]-font-size
* Color Support: Background, Text
*/
p {}
/**
* List
*/
ul {}
ol {}
/* -------------------------------------------------------------------------- */
/* 2. Font Sizes
/* -------------------------------------------------------------------------- */
.has-NAME-font-size {}
/* -------------------------------------------------------------------------- */
/* 3. Colors & Gradients
/* -------------------------------------------------------------------------- */
.has-NAME-background-color {
background-color: ;
}
.has-NAME-color {
color: ;
}
.has-NAME-gradient-background {
background: linear-gradient();
}
/* -------------------------------------------------------------------------- */
/* 4. Alignments
/* -------------------------------------------------------------------------- */
/* For alignments, consider: https://themehybrid.com/weblog/block-containers-and-wide-full-alignment */
.alignwide {}
.alignfull {}
/* -------------------------------------------------------------------------- */
/* 5. Text Blocks
/* -------------------------------------------------------------------------- */
/**
* Quote
*
* Alignments: has-text-align-[left/center/right]
* Default Style Variations: is-style-large
*/
blockquote.wp-block-quote {}
blockquote.wp-block-quote cite {}
/**
* Pullquote
*
* Alignments: alignleft, alignright, alignwide, alignfull
* Default Style Variations: is-style-solid-color
* Color Support: Background, Text
*/
figure.wp-block-pullquote {}
figure.wp-block-pullquote blockquote {}
figure.wp-block-pullquote cite {}
/**
* Table
*
* Alignments: alignleft, aligncenter, alignright, alignwide, alignfull
* Default Style Variations: is-style-stripes
* Color Support: Background
*/
figure.wp-block-table table {}
/**
* Code
*/
pre.wp-block-code pre {}
/**
* Preformatted
*/
pre.wp-block-preformatted {}
/**
* Verse
*/
pre.wp-block-verse {}
/* -------------------------------------------------------------------------- */
/* 6. Media Blocks
/* -------------------------------------------------------------------------- */
/**
* Image
*
* Alignments: alignwide, alignfull
* Inline Styles (on figure): background-image, background-position (if using focal point)
*/
figure.wp-block-image {}
figure.wp-block-image img {}
/* Caption Markup */
figure.wp-block-image figcaption {}
/* when aligned right or left */
div.wp-block-image figure.alignright.size-medium img {}
/* when aligned full or wide */
figure.wp-block-image.alignfull.size-large {}
/**
* Gallery
*
* Needs details. PR welcome!
*/
/**
* Media & Text
*
* Alignments: alignwide, alignfull, is-vertically-aligned-[top/center/bottom]
* Option Classes: has-background, is-stacked-on-mobile, is-image-fill, has-media-on-the-right
* Color Support: Background
*/
div.wp-block-media-text {}
div.wp-block-media-text figure.wp-block-media-text__media {}
div.wp-block-media-text div.wp-block-media-text__content {}
/**
* Cover
*
* Alignments: alignleft, aligncenter, alignright, alignwide, alignfull
* Color Support: Background (Color or Gradient)
* Option Classes: has-background-dim has-background-dim-XX has-parallax has-custom-content-position is-position-[top/center/bottom]-[left/center/right]
* Notes:
* - has-background-dim-XX class only uses multiples of 10
* - Background image is applied via style attribute on .wp-block-cover
* - The cover block does NOT apply the .has-background class when it has a background color or gradient. See: https://github.com/WordPress/gutenberg/issues/21439
*/
div.wp-block-cover {}
div.wp-block-cover div.wp-block-cover__inner-container {}
/* Core selector used to style pseudo element used for tinting/fading background image */
.wp-block-cover.has-background-dim::before {}
/**
* File
*/
div.wp-block-file {}
/* download link */
div.wp-block-file a:first-child {}
/* Text link when button option is disabled */
div.wp-block-file a:first-child:last-child {}
/* Text link when button option is enabled */
div.wp-block-file a:first-child:not(:last-child) {}
/* Download Button */
div.wp-block-file a.wp-block-file__button {}
/**
* Audio
*
* Needs details. PR welcome!
*/
/**
* Video
*
* Needs details. PR welcome!
*/
/* -------------------------------------------------------------------------- */
/* 7. Design Blocks
/* -------------------------------------------------------------------------- */
/**
* Button
*
* Note: Buttons container added in WP5.4
*
* Alignments: alignleft, aligncenter, alignright
* Default Style Variations: is-style-outline
* Possible Inline Styles: border-radius
* Color Support: Background, Text
*/
div.wp-block-buttons {}
div.wp-block-button {}
div.wp-block-button a.wp-block-button__link {} /* option to disable */
/**
* Columns
*
* Additional Classes: wp-#-columns // # = number of columns
* Alignments: alignwide, alignfull, are-vertically-aligned-[top/center/bottom]
* Inline Style on wp-block-column: display: flex
* Inline Style on Columns: flex-basis: [XX]%
*/
div.wp-block-columns {}
div.wp-block-columns div.wp-block-column {}
/**
* Group
*
* Alignments: alignwide, alignfull
* Option Classes: has-background
* Color Support: Background
*/
div.wp-block-group {}
div.wp-block-group div.wp-block-group__inner-container {}
/**
* More
*
* Needs details. PR welcome!
*/
/**
* Page Break
*
* Needs details. PR welcome!
*/
/**
* Separator
*
* Default Style Variations: is-style-wide, is-style-dots
*
* Note:
* - Core block styles (if in use), use a default <hr> selector with extremely high specificity: .wp-block-separator:not(.is-style-wide):not(.is-style-dots)
*/
hr.wp-block-separator {}
/**
* Spacer
*
* Inline Style: height: [XXX]px;
*/
div.wp-block-spacer {}
/* -------------------------------------------------------------------------- */
/* 8. Widget Blocks
/* -------------------------------------------------------------------------- */
/**
* Archives
*
* Needs details. PR welcome!
*/
/**
* Calendar
*
* Needs details. PR welcome!
*/
/**
* Categories
*
* Needs details. PR welcome!
*/
/**
* Latest Comments
*
* Needs details. PR welcome!
*/
/**
* Latest Posts
*
* Needs details. PR welcome!
*/
/**
* RSS
*
* Needs details. PR welcome!
*/
/**
* Search
*
* Needs details. PR welcome!
*/
/**
* Social Icons
*
* Alignments: alignleft, aligncenter, alignright
* Default Style Variations: is-style-logos-only, is-style-pill-shape
*/
ul.wp-block-social-links {}
ul.wp-block-social-links li.wp-social-link.wp-social-link-NAME {}
ul.wp-block-social-links li.wp-social-link a svg path {}
/* default style, note high specificity! */
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-NAME {
/* background-color: ;
color: ; */
}
/**
* Tag Cloud
*
* Needs details. PR welcome!
*/
/* -------------------------------------------------------------------------- */
/* 9. Embed Blocks
/* -------------------------------------------------------------------------- */
/**
* Embeds
*
* Additional Classes on figure element: .is-type-[video/audio/etc], .is-provider-[youtube/twitter/etc]
* If Resize Option: .wp-embed-aspect-ratio-[16-9], .wp-has-aspect-ratio
*/
figure.wp-block-embed {}
figure.wp-block-embed div.wp-block-embed__wrapper {}