PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 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 All 404 releases
← All changes | build/styles/edit-post/style-rtl.css +36 -161 23.3.1 → trunk View file →
@@ -67,8 +67,14 @@
67 67 /**
68 68 * Focus styles.
69 69 */
70 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 +/**
71 77 * Applies editor left position to the selector passed as argument
72 78 */
73 79 /**
74 80 * Styles that are reused verbatim in a few places
@@ -105,101 +111,8 @@
105 111 --wp-admin-border-width-focus: 1.5px;
106 112 }
107 113 }
108 114
109 -.edit-post-fullscreen-mode-close__view-mode-toggle {
110 - top: 0;
111 - right: 0;
112 - height: 64px;
113 - width: 64px;
114 - z-index: 100;
115 -}
116 -.edit-post-fullscreen-mode-close__view-mode-toggle .components-button {
117 - color: #fff;
118 - height: 100%;
119 - width: 100%;
120 - border-radius: 0;
121 - overflow: hidden;
122 - padding: 0;
123 - display: flex;
124 - align-items: center;
125 - justify-content: center;
126 -}
127 -.edit-post-fullscreen-mode-close__view-mode-toggle .components-button:hover, .edit-post-fullscreen-mode-close__view-mode-toggle .components-button:active {
128 - color: #fff;
129 -}
130 -.edit-post-fullscreen-mode-close__view-mode-toggle .components-button:focus {
131 - box-shadow: none;
132 -}
133 -.edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon svg,
134 -.edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__view-mode-toggle-icon img {
135 - background: #1e1e1e;
136 - display: block;
137 -}
138 -
139 -.edit-post-fullscreen-mode-close-site-icon__icon {
140 - fill: currentColor;
141 - width: 100%;
142 - height: 100%;
143 - padding: 12px;
144 -}
145 -
146 -.edit-post-fullscreen-mode-close-site-icon__image {
147 - width: 100%;
148 - height: 100%;
149 - object-fit: cover;
150 - background: #333;
151 - aspect-ratio: 1/1;
152 -}
153 -
154 -.edit-post-fullscreen-mode-close.components-button:focus {
155 - position: relative;
156 -}
157 -.edit-post-fullscreen-mode-close.components-button:focus::before {
158 - content: "";
159 - display: block;
160 - position: absolute;
161 - z-index: 1;
162 - top: 0;
163 - left: 0;
164 - bottom: 0;
165 - right: 0;
166 - box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 calc(1px + var(--wp-admin-border-width-focus)) #fff;
167 -}
168 -
169 -.edit-post-fullscreen-mode-close__back-icon {
170 - position: absolute;
171 - top: 0;
172 - right: 0;
173 - width: 64px;
174 - height: 64px;
175 - display: flex;
176 - align-items: center;
177 - justify-content: center;
178 - background-color: hsl(0, 0%, 80%);
179 - pointer-events: none;
180 -}
181 -.edit-post-fullscreen-mode-close__back-icon svg {
182 - fill: currentColor;
183 -}
184 -.edit-post-fullscreen-mode-close__back-icon.has-site-icon {
185 - background-color: hsla(0, 0%, 100%, 0.6);
186 - backdrop-filter: saturate(180%) blur(15px);
187 -}
188 -
189 -/**
190 - * Show icon label overrides.
191 - */
192 -.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon {
193 - width: 64px;
194 -}
195 -.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon svg {
196 - display: block;
197 -}
198 -.show-icon-labels .editor-header .edit-post-fullscreen-mode-close.has-icon::after {
199 - content: none;
200 -}
201 -
202 115 .edit-post-meta-boxes-main {
203 116 filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133));
204 117 outline: 1px solid transparent;
205 118 background-color: #fff;
@@ -293,18 +206,24 @@
293 206 .edit-post-layout__metaboxes {
294 207 clear: both;
295 208 }
296 209
297 -.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
210 +.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor,
211 +.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-text-editor {
298 212 flex-shrink: 1;
299 213 flex-basis: 0%;
214 + isolation: isolate;
215 +}
216 +.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
300 217 overflow: hidden;
301 - isolation: isolate;
302 218 }
219 +.has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-text-editor {
220 + overflow: auto;
221 +}
303 222
304 223 .edit-post-layout__snackbar {
305 224 position: fixed;
306 - bottom: 24px;
225 + bottom: var(--wpds-dimension-size-md, 32px);
307 226 right: 0;
308 227 left: 0;
309 228 padding-inline: 16px;
310 229 box-sizing: border-box;
@@ -334,9 +253,9 @@
334 253 .edit-post-meta-boxes-area input {
335 254 box-sizing: border-box;
336 255 }
337 256 .edit-post-meta-boxes-area .postbox-header {
338 - border-top: 1px solid #ddd;
257 + border-top: 1px solid #e0e0e0;
339 258 border-bottom: 0;
340 259 }
341 260 .edit-post-meta-boxes-area {
342 261 /* Match width and positioning of the meta boxes. Override default styles. */
@@ -352,10 +271,11 @@
352 271 .edit-post-meta-boxes-area #poststuff h3.hndle,
353 272 .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
354 273 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
355 274 box-sizing: border-box;
356 - color: inherit;
357 - font-weight: 600;
275 + color: #1e1e1e;
276 + font-size: 13px;
277 + font-weight: var(--wpds-typography-font-weight-emphasis, 600);
358 278 outline: none;
359 279 padding: 0 24px;
360 280 position: relative;
361 281 width: 100%;
@@ -414,9 +334,9 @@
414 334 object-fit: cover;
415 335 }
416 336 .edit-post-welcome-guide__heading,
417 337 .edit-template-welcome-guide__heading {
418 - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
338 + font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
419 339 font-size: 24px;
420 340 line-height: 1.4;
421 341 margin: 16px 0 16px 0;
422 342 padding: 0 24px;
@@ -434,66 +354,15 @@
434 354 vertical-align: text-top;
435 355 }
436 356 .edit-post-welcome-guide .components-button:hover svg,
437 357 .edit-template-welcome-guide .components-button:hover svg {
438 - fill: #fff;
358 + color: #fff;
439 359 }
440 360
441 361 .edit-template-welcome-guide .components-button svg {
442 - fill: #fff;
362 + color: #fff;
443 363 }
444 364
445 -body.has-admin-bar-in-editor .edit-post-fullscreen-mode-close__view-mode-toggle {
446 - display: flex;
447 - align-items: center;
448 - justify-content: center;
449 - width: 32px;
450 - height: 32px;
451 -}
452 -body.has-admin-bar-in-editor .edit-post-fullscreen-mode-close__view-mode-toggle .edit-post-fullscreen-mode-close__back-icon {
453 - top: auto;
454 - right: auto;
455 - width: 32px;
456 - height: 32px;
457 - background: transparent;
458 -}
459 -body.has-admin-bar-in-editor .edit-post-fullscreen-mode-close__view-mode-toggle:hover .edit-post-fullscreen-mode-close__back-icon {
460 - color: var(--wp-admin-theme-color);
461 -}
462 -body.has-admin-bar-in-editor.is-fullscreen-mode .editor-header:has(> .editor-header__back-button) {
463 - grid-template-columns: 32px minmax(0, max-content) minmax(min-content, 1fr) 64px;
464 -}
465 -body.has-admin-bar-in-editor.is-fullscreen-mode .editor-header:has(> .editor-header__back-button):has(> .editor-header__center) {
466 - grid-template-columns: 32px min-content 1fr min-content 64px;
467 -}
468 -body.has-admin-bar-in-editor.is-fullscreen-mode .editor-header__back-button {
469 - padding-right: 8px;
470 -}
471 -@media (min-width: 782px) {
472 - body.has-admin-bar-in-editor.is-fullscreen-mode {
473 - margin-top: 0;
474 - height: 100%;
475 - }
476 - body.has-admin-bar-in-editor.is-fullscreen-mode #wpadminbar {
477 - display: block;
478 - }
479 - body.has-admin-bar-in-editor.is-fullscreen-mode .interface-interface-skeleton,
480 - body.has-admin-bar-in-editor.is-fullscreen-mode .editor-post-publish-panel,
481 - body.has-admin-bar-in-editor.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,
482 - body.has-admin-bar-in-editor.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within {
483 - top: var(--wp-admin--admin-bar--height, 0);
484 - }
485 - body.has-admin-bar-in-editor.is-fullscreen-mode .block-editor__container {
486 - min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0));
487 - }
488 - body.has-admin-bar-in-editor.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) {
489 - --wp-admin--admin-bar--height: 0;
490 - }
491 - body.has-admin-bar-in-editor.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar {
492 - display: none;
493 - }
494 -}
495 -
496 365 body.js.block-editor-page {
497 366 background: #fff;
498 367 }
499 368 body.js.block-editor-page #wpcontent {
@@ -523,8 +392,17 @@
523 392 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
524 393 width: auto;
525 394 max-width: 100%;
526 395 }
396 +@media (min-width: 782px) {
397 + body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) {
398 + --wp-admin--admin-bar--height: 0px;
399 + --wp-editor-admin-bar-display: none;
400 + }
401 + body.js.block-editor-page.is-fullscreen-mode #wpadminbar {
402 + display: var(--wp-editor-admin-bar-display, block);
403 + }
404 +}
527 405
528 406 .block-editor-page #wpwrap {
529 407 overflow-y: auto;
530 408 }
@@ -533,14 +411,14 @@
533 411 overflow-y: initial;
534 412 }
535 413 }
536 414
537 -.edit-post-visual-editor.is-iframed {
415 +.edit-post-visual-editor {
538 416 box-sizing: border-box;
539 417 }
540 -.edit-post-visual-editor.is-iframed *,
541 -.edit-post-visual-editor.is-iframed *::before,
542 -.edit-post-visual-editor.is-iframed *::after {
418 +.edit-post-visual-editor *,
419 +.edit-post-visual-editor *::before,
420 +.edit-post-visual-editor *::after {
543 421 box-sizing: inherit;
544 422 }
545 423
546 424 @media (min-width: 600px) {
@@ -554,12 +432,9 @@
554 432 }
555 433 }
556 434 @media (min-width: 782px) {
557 435 .block-editor__container {
558 - min-height: calc(100vh - 32px);
559 - }
560 - body.is-fullscreen-mode .block-editor__container {
561 - min-height: 100vh;
436 + min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
562 437 }
563 438 }
564 439 .block-editor__container img {
565 440 max-width: 100%;