PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.2
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / build / styles / edit-post / style.css

style.css in Gutenberg 23.7.2, at build/styles/edit-post/style.css

438 lines 10.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Typography
3 */
4 /**
5 * SCSS Variables.
6 *
7 * Please use variables from this sheet to ensure consistency across the UI.
8 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
9 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
10 */
11 /**
12 * Colors
13 */
14 /**
15 * Fonts & basic variables.
16 */
17 /**
18 * Typography
19 */
20 /**
21 * Grid System.
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
23 */
24 /**
25 * Radius scale.
26 */
27 /**
28 * Elevation scale.
29 */
30 /**
31 * Dimensions.
32 */
33 /**
34 * Mobile specific styles
35 */
36 /**
37 * Editor styles.
38 */
39 /**
40 * Block & Editor UI.
41 */
42 /**
43 * Block paddings.
44 */
45 /**
46 * React Native specific.
47 * These variables do not appear to be used anywhere else.
48 */
49 /**
50 * Breakpoints & Media Queries
51 */
52 /**
53 * Converts a hex value into the rgb equivalent.
54 *
55 * @param {string} hex - the hexadecimal value to convert
56 * @return {string} comma separated rgb values
57 */
58 /**
59 * Long content fade mixin
60 *
61 * Creates a fading overlay to signify that the content is longer
62 * than the space allows.
63 */
64 /**
65 * Breakpoint mixins
66 */
67 /**
68 * Focus styles.
69 */
70 /**
71 * Standard focus rings for the WordPress Design System.
72 *
73 * Apply `outset-ring__focus` inside the relevant pseudo-class at the call site,
74 * e.g. `&:focus { @include outset-ring__focus(); }`.
75 */
76 /**
77 * Applies editor left position to the selector passed as argument
78 */
79 /**
80 * Styles that are reused verbatim in a few places
81 */
82 /**
83 * Allows users to opt-out of animations via OS-level preferences.
84 */
85 /**
86 * Reset default styles for JavaScript UI based pages.
87 * This is a WP-admin agnostic reset
88 */
89 /**
90 * Reset the WP Admin page styles for Gutenberg-like pages.
91 */
92 /**
93 * Creates a checkerboard pattern background to indicate transparency.
94 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
95 */
96 :root {
97 --wp-block-synced-color: #7a00df;
98 --wp-block-synced-color--rgb: 122, 0, 223;
99 --wp-bound-block-color: var(--wp-block-synced-color);
100 --wp-editor-canvas-background: #ddd;
101 --wp-admin-theme-color: #007cba;
102 --wp-admin-theme-color--rgb: 0, 124, 186;
103 --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
104 --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
105 --wp-admin-theme-color-darker-20: #005a87;
106 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
107 --wp-admin-border-width-focus: 2px;
108 }
109 @media (min-resolution: 192dpi) {
110 :root {
111 --wp-admin-border-width-focus: 1.5px;
112 }
113 }
114
115 .edit-post-meta-boxes-main {
116 filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133));
117 outline: 1px solid transparent;
118 background-color: #fff;
119 display: flex;
120 flex-direction: column;
121 overflow: hidden;
122 }
123
124 .edit-post-meta-boxes-main__presenter {
125 flex-shrink: 0;
126 display: flex;
127 justify-content: center;
128 box-shadow: 0 1px #ddd;
129 outline: 1px solid transparent;
130 position: relative;
131 z-index: 1;
132 height: 32px;
133 }
134 @media (pointer: coarse) {
135 .edit-post-meta-boxes-main__presenter {
136 height: 36px;
137 }
138 }
139 .edit-post-meta-boxes-main__presenter > button {
140 -webkit-appearance: none;
141 -moz-appearance: none;
142 appearance: none;
143 padding: 0;
144 border: none;
145 outline: none;
146 background-color: transparent;
147 touch-action: none;
148 }
149 .edit-post-meta-boxes-main__presenter > button[aria-expanded] {
150 cursor: var(--wpds-cursor-control, pointer);
151 width: 100%;
152 display: flex;
153 justify-content: space-between;
154 align-items: center;
155 padding-inline: 24px 12px;
156 }
157 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) {
158 color: var(--wp-admin-theme-color);
159 }
160 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after {
161 content: "";
162 position: absolute;
163 inset: var(--wp-admin-border-width-focus);
164 box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
165 outline: 2px solid transparent;
166 }
167 .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg {
168 fill: currentColor;
169 }
170 .edit-post-meta-boxes-main__presenter > button[role=separator] {
171 cursor: row-resize;
172 position: absolute;
173 width: 64px;
174 height: inherit;
175 }
176 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
177 content: "";
178 background-color: #ddd;
179 outline: 2px solid transparent;
180 outline-offset: -2px;
181 position: absolute;
182 inset-block: calc(50% - 4px / 2) auto;
183 transform: translateX(-50%);
184 width: inherit;
185 height: 4px;
186 border-radius: 2px;
187 }
188 @media not (prefers-reduced-motion) {
189 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
190 transition: width 0.3s ease-out;
191 }
192 }
193 .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before {
194 background-color: var(--wp-admin-theme-color);
195 width: 80px;
196 }
197
198 .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
199 overflow: auto;
200 }
201 .edit-post-meta-boxes-main__liner {
202 isolation: isolate;
203 }
204 .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
205 display: unset;
206 }
207
208 .edit-post-layout__metaboxes {
209 clear: both;
210 }
211
212 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
213 flex-shrink: 1;
214 flex-basis: 0%;
215 overflow: hidden;
216 isolation: isolate;
217 }
218
219 .edit-post-layout__snackbar {
220 position: fixed;
221 bottom: 24px;
222 left: 0;
223 right: 0;
224 padding-inline: 16px;
225 box-sizing: border-box;
226 display: flex;
227 flex-direction: column;
228 pointer-events: none;
229 }
230 .edit-post-layout__snackbar .components-snackbar {
231 margin-inline: auto;
232 }
233
234 .edit-post-meta-boxes-area {
235 position: relative;
236 /**
237 * The wordpress default for most meta-box elements is content-box. Some
238 * elements such as textarea and input are set to border-box in forms.css.
239 * These elements therefore specifically set back to border-box here, while
240 * other elements (such as .button) are unaffected by Gutenberg's style
241 * because of their higher specificity.
242 */
243 }
244 .edit-post-meta-boxes-area__container,
245 .edit-post-meta-boxes-area .inside {
246 box-sizing: content-box;
247 }
248 .edit-post-meta-boxes-area textarea,
249 .edit-post-meta-boxes-area input {
250 box-sizing: border-box;
251 }
252 .edit-post-meta-boxes-area .postbox-header {
253 border-top: 1px solid #e0e0e0;
254 border-bottom: 0;
255 }
256 .edit-post-meta-boxes-area {
257 /* Match width and positioning of the meta boxes. Override default styles. */
258 }
259 .edit-post-meta-boxes-area #poststuff {
260 margin: 0 auto;
261 padding-top: 0;
262 min-width: auto;
263 }
264 .edit-post-meta-boxes-area {
265 /* Override Default meta box stylings */
266 }
267 .edit-post-meta-boxes-area #poststuff h3.hndle,
268 .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
269 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
270 box-sizing: border-box;
271 color: #1e1e1e;
272 font-size: 13px;
273 font-weight: var(--wpds-typography-font-weight-emphasis, 600);
274 outline: none;
275 padding: 0 24px;
276 position: relative;
277 width: 100%;
278 }
279 .edit-post-meta-boxes-area .postbox {
280 border: 0;
281 color: inherit;
282 margin-bottom: 0;
283 }
284 .edit-post-meta-boxes-area .postbox > .inside {
285 color: inherit;
286 padding: 0 24px 24px;
287 margin: 0;
288 }
289 .edit-post-meta-boxes-area .postbox .handlediv {
290 height: 44px;
291 width: 44px;
292 }
293 .edit-post-meta-boxes-area.is-loading::before {
294 position: absolute;
295 top: 0;
296 left: 0;
297 right: 0;
298 bottom: 0;
299 content: "";
300 background: transparent;
301 z-index: 1;
302 }
303 .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner {
304 position: absolute;
305 top: 10px;
306 right: 20px;
307 z-index: 2;
308 }
309 .edit-post-meta-boxes-area .is-hidden {
310 display: none;
311 }
312
313 .edit-post-meta-boxes-area__clear {
314 clear: both;
315 }
316
317 .edit-post-welcome-guide,
318 .edit-template-welcome-guide {
319 width: 312px;
320 }
321 .edit-post-welcome-guide__image,
322 .edit-template-welcome-guide__image {
323 background: #00a0d2;
324 margin: 0 0 16px;
325 }
326 .edit-post-welcome-guide__image > img,
327 .edit-template-welcome-guide__image > img {
328 display: block;
329 max-width: 100%;
330 -o-object-fit: cover;
331 object-fit: cover;
332 }
333 .edit-post-welcome-guide__heading,
334 .edit-template-welcome-guide__heading {
335 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
336 font-size: 24px;
337 line-height: 1.4;
338 margin: 16px 0 16px 0;
339 padding: 0 24px;
340 }
341 .edit-post-welcome-guide__text,
342 .edit-template-welcome-guide__text {
343 font-size: 13px;
344 line-height: 1.4;
345 margin: 0 0 24px 0;
346 padding: 0 24px;
347 }
348 .edit-post-welcome-guide__inserter-icon,
349 .edit-template-welcome-guide__inserter-icon {
350 margin: 0 4px;
351 vertical-align: text-top;
352 }
353 .edit-post-welcome-guide .components-button:hover svg,
354 .edit-template-welcome-guide .components-button:hover svg {
355 fill: #fff;
356 }
357
358 .edit-template-welcome-guide .components-button svg {
359 fill: #fff;
360 }
361
362 body.js.block-editor-page {
363 background: #fff;
364 }
365 body.js.block-editor-page #wpcontent {
366 padding-left: 0;
367 }
368 body.js.block-editor-page #wpbody-content {
369 padding-bottom: 0;
370 }
371 body.js.block-editor-page {
372 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
373 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
374 }
375 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
376 display: none;
377 }
378 body.js.block-editor-page #wpfooter {
379 display: none;
380 }
381 body.js.block-editor-page .a11y-speak-region {
382 left: -1px;
383 top: -1px;
384 }
385 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
386 body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
387 border-right-color: #fff;
388 }
389 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
390 width: auto;
391 max-width: 100%;
392 }
393 @media (min-width: 782px) {
394 body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) {
395 --wp-admin--admin-bar--height: 0px;
396 }
397 body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar {
398 display: none;
399 }
400 }
401
402 .block-editor-page #wpwrap {
403 overflow-y: auto;
404 }
405 @media (min-width: 782px) {
406 .block-editor-page #wpwrap {
407 overflow-y: initial;
408 }
409 }
410
411 .edit-post-visual-editor {
412 box-sizing: border-box;
413 }
414 .edit-post-visual-editor *,
415 .edit-post-visual-editor *::before,
416 .edit-post-visual-editor *::after {
417 box-sizing: inherit;
418 }
419
420 @media (min-width: 600px) {
421 .block-editor__container {
422 position: absolute;
423 top: 0;
424 right: 0;
425 bottom: 0;
426 left: 0;
427 min-height: calc(100vh - 46px);
428 }
429 }
430 @media (min-width: 782px) {
431 .block-editor__container {
432 min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
433 }
434 }
435 .block-editor__container img {
436 max-width: 100%;
437 height: auto;
438 }