-
Notifications
You must be signed in to change notification settings - Fork 2
/
block-editor-styles.css
97 lines (71 loc) · 2.27 KB
/
block-editor-styles.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
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1. Styles Specific to Block Editor Screen
2. Block Editor Width
3. General Block Differences
4. Blocks with Different Markup
----------------------------------------------------------------------------- */
/*==============================================================
= 1. Styles Specific to Block Editor Screen =
==============================================================*/
/*
* Block editor styles wrapper: .editor-styles-wrapper
* @see: https://developer.wordpress.org/block-editor/developers/themes/theme-support/
*/
/**
* Post Title Field
*/
.editor-post-title {}
/* The faux placeholder text for the title */
.editor-post-title label {}
/* The user-entered title */
.editor-post-title .editor-post-title__input {}
/*==========================================
= 2. Block Editor Width =
==========================================*/
/* Main column width */
.wp-block {
max-width: 720px;
}
/* Width of "wide" blocks */
.wp-block[data-align="wide"] {
max-width: 1080px;
}
/* Width of "full-wide" blocks */
.wp-block[data-align="full"] {
max-width: none;
}
/*=================================================
= 3. General Block Differences =
=================================================*/
/*
* Wrapper element for all blocks
*/
.wp-block {}
/* Type */
.wp-block[date-type="core/button"] {}
/* Alignment */
.wp-block[data-align="center"] {}
/*====================================================
= 4. Blocks with Different Markup =
====================================================*/
/**
* Button
*
* Uses div instead of a elements
*/
div.wp-block-button div.wp-block-button__link {}
/**
* File
*
* Provides unique class for text link and uses div instead of a elements
*/
/* Text link */
div.wp-block-file div.wp-block-file__textlink {}
/* Text link when button option is disabled */
div.wp-block-file__textlink:first-child:last-child {}
/* Text link when button option is enabled */
div.wp-block-file__textlink:first-child:not(:last-child) {}
/* Download Button */
div.wp-block-file div.wp-block-file__file {}