1 /** |
1 html :where(.editor-styles-wrapper){ |
2 * Colors |
2 background:#fff; |
3 */ |
3 color:initial; |
4 /** |
4 font-family:serif; |
5 * Breakpoints & Media Queries |
5 font-size:medium; |
6 */ |
6 line-height:normal; |
7 /** |
|
8 * SCSS Variables. |
|
9 * |
|
10 * Please use variables from this sheet to ensure consistency across the UI. |
|
11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
|
13 */ |
|
14 /** |
|
15 * Colors |
|
16 */ |
|
17 /** |
|
18 * Fonts & basic variables. |
|
19 */ |
|
20 /** |
|
21 * Grid System. |
|
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 */ |
|
24 /** |
|
25 * Dimensions. |
|
26 */ |
|
27 /** |
|
28 * Shadows. |
|
29 */ |
|
30 /** |
|
31 * Editor widths. |
|
32 */ |
|
33 /** |
|
34 * Block & Editor UI. |
|
35 */ |
|
36 /** |
|
37 * Block paddings. |
|
38 */ |
|
39 /** |
|
40 * React Native specific. |
|
41 * These variables do not appear to be used anywhere else. |
|
42 */ |
|
43 /** |
|
44 * Converts a hex value into the rgb equivalent. |
|
45 * |
|
46 * @param {string} hex - the hexadecimal value to convert |
|
47 * @return {string} comma separated rgb values |
|
48 */ |
|
49 /** |
|
50 * Breakpoint mixins |
|
51 */ |
|
52 /** |
|
53 * Long content fade mixin |
|
54 * |
|
55 * Creates a fading overlay to signify that the content is longer |
|
56 * than the space allows. |
|
57 */ |
|
58 /** |
|
59 * Focus styles. |
|
60 */ |
|
61 /** |
|
62 * Applies editor left position to the selector passed as argument |
|
63 */ |
|
64 /** |
|
65 * Styles that are reused verbatim in a few places |
|
66 */ |
|
67 /** |
|
68 * Allows users to opt-out of animations via OS-level preferences. |
|
69 */ |
|
70 /** |
|
71 * Reset default styles for JavaScript UI based pages. |
|
72 * This is a WP-admin agnostic reset |
|
73 */ |
|
74 /** |
|
75 * Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 */ |
|
77 /** |
|
78 * Editor Normalization Styles |
|
79 * |
|
80 * These are only output in the editor, but styles here are prefixed .editor-styles-wrapper and affect the theming |
|
81 * of the editor by themes. |
|
82 */ |
|
83 html :where(.editor-styles-wrapper) { |
|
84 /** |
|
85 * The following styles revert to the browser defaults overriding the WPAdmin styles. |
|
86 * This is only needed while the block editor is not being loaded in an iframe. |
|
87 */ |
|
88 font-family: serif; |
|
89 font-size: initial; |
|
90 line-height: initial; |
|
91 color: initial; |
|
92 background: #fff; |
|
93 } |
7 } |
94 html :where(.editor-styles-wrapper) .wp-align-wrapper { |
8 :where(.editor-styles-wrapper) .wp-align-wrapper{ |
95 max-width: 840px; |
9 max-width:840px; |
96 } |
10 } |
97 html :where(.editor-styles-wrapper) .wp-align-wrapper > .wp-block, html :where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full { |
11 :where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-full,:where(.editor-styles-wrapper) .wp-align-wrapper>.wp-block{ |
98 max-width: none; |
12 max-width:none; |
99 } |
13 } |
100 html :where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide { |
14 :where(.editor-styles-wrapper) .wp-align-wrapper.wp-align-wide{ |
101 max-width: 840px; |
15 max-width:840px; |
102 } |
16 } |
103 html :where(.editor-styles-wrapper) a { |
17 :where(.editor-styles-wrapper) a{ |
104 transition: none; |
18 transition:none; |
105 } |
19 } |
106 html :where(.editor-styles-wrapper) code, |
20 :where(.editor-styles-wrapper) code,:where(.editor-styles-wrapper) kbd{ |
107 html :where(.editor-styles-wrapper) kbd { |
21 background:inherit; |
108 padding: 0; |
22 font-family:monospace; |
109 margin: 0; |
23 font-size:inherit; |
110 background: inherit; |
24 margin:0; |
111 font-size: inherit; |
25 padding:0; |
112 font-family: monospace; |
|
113 } |
26 } |
114 html :where(.editor-styles-wrapper) p { |
27 :where(.editor-styles-wrapper) p{ |
115 font-size: revert; |
28 font-size:revert; |
116 line-height: revert; |
29 line-height:revert; |
117 margin: revert; |
30 margin:revert; |
118 } |
31 } |
119 html :where(.editor-styles-wrapper) ul, |
32 :where(.editor-styles-wrapper) ol,:where(.editor-styles-wrapper) ul{ |
120 html :where(.editor-styles-wrapper) ol { |
33 box-sizing:border-box; |
121 margin: revert; |
34 list-style-type:revert; |
122 padding: revert; |
35 margin:revert; |
123 list-style-type: revert; |
36 padding:revert; |
124 box-sizing: border-box; |
|
125 } |
37 } |
126 html :where(.editor-styles-wrapper) ul ul, |
38 :where(.editor-styles-wrapper) ol ol,:where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ol,:where(.editor-styles-wrapper) ul ul{ |
127 html :where(.editor-styles-wrapper) ul ol, |
39 margin:revert; |
128 html :where(.editor-styles-wrapper) ol ul, |
|
129 html :where(.editor-styles-wrapper) ol ol { |
|
130 margin: revert; |
|
131 } |
40 } |
132 html :where(.editor-styles-wrapper) ul li, |
41 :where(.editor-styles-wrapper) ol li,:where(.editor-styles-wrapper) ul li{ |
133 html :where(.editor-styles-wrapper) ol li { |
42 margin:revert; |
134 margin: revert; |
|
135 } |
43 } |
136 html :where(.editor-styles-wrapper) ul ul, |
44 :where(.editor-styles-wrapper) ol ul,:where(.editor-styles-wrapper) ul ul{ |
137 html :where(.editor-styles-wrapper) ol ul { |
45 list-style-type:revert; |
138 list-style-type: revert; |
|
139 } |
46 } |
140 html :where(.editor-styles-wrapper) h1, |
47 :where(.editor-styles-wrapper) h1,:where(.editor-styles-wrapper) h2,:where(.editor-styles-wrapper) h3,:where(.editor-styles-wrapper) h4,:where(.editor-styles-wrapper) h5,:where(.editor-styles-wrapper) h6{ |
141 html :where(.editor-styles-wrapper) h2, |
48 color:revert; |
142 html :where(.editor-styles-wrapper) h3, |
49 font-size:revert; |
143 html :where(.editor-styles-wrapper) h4, |
50 font-weight:revert; |
144 html :where(.editor-styles-wrapper) h5, |
51 line-height:revert; |
145 html :where(.editor-styles-wrapper) h6 { |
52 margin:revert; |
146 font-size: revert; |
|
147 margin: revert; |
|
148 color: revert; |
|
149 line-height: revert; |
|
150 font-weight: revert; |
|
151 } |
53 } |
152 html :where(.editor-styles-wrapper) select { |
54 :where(.editor-styles-wrapper) select{ |
153 font-family: system-ui; |
55 -webkit-appearance:revert; |
154 -webkit-appearance: revert; |
56 background:revert; |
155 color: revert; |
57 border:revert; |
156 border: revert; |
58 border-radius:revert; |
157 border-radius: revert; |
59 box-shadow:revert; |
158 background: revert; |
60 color:revert; |
159 box-shadow: revert; |
61 cursor:revert; |
160 text-shadow: revert; |
62 font-family:system-ui; |
161 outline: revert; |
63 font-size:revert; |
162 cursor: revert; |
64 font-weight:revert; |
163 transform: revert; |
65 line-height:revert; |
164 font-size: revert; |
66 margin:revert; |
165 line-height: revert; |
67 max-width:revert; |
166 padding: revert; |
68 min-height:revert; |
167 margin: revert; |
69 outline:revert; |
168 min-height: revert; |
70 padding:revert; |
169 max-width: revert; |
71 text-shadow:revert; |
170 vertical-align: revert; |
72 transform:revert; |
171 font-weight: revert; |
73 vertical-align:revert; |
172 } |
74 } |
173 html :where(.editor-styles-wrapper) select:disabled, |
75 :where(.editor-styles-wrapper) select:disabled,:where(.editor-styles-wrapper) select:focus{ |
174 html :where(.editor-styles-wrapper) select:focus { |
76 background-color:revert; |
175 color: revert; |
77 background-image:revert; |
176 border-color: revert; |
78 border-color:revert; |
177 background-color: revert; |
79 box-shadow:revert; |
178 background-image: revert; |
80 color:revert; |
179 box-shadow: revert; |
81 cursor:revert; |
180 text-shadow: revert; |
82 text-shadow:revert; |
181 cursor: revert; |
83 transform:revert; |
182 transform: revert; |
|
183 } |
84 } |