PluginProbe
Gutenberg / 23.2.1
Gutenberg v23.2.1
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-rtl.css

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

516 lines 12.3 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 * Applies editor left position to the selector passed as argument
72 */
73 /**
74 * Styles that are reused verbatim in a few places
75 */
76 /**
77 * Allows users to opt-out of animations via OS-level preferences.
78 */
79 /**
80 * Reset default styles for JavaScript UI based pages.
81 * This is a WP-admin agnostic reset
82 */
83 /**
84 * Reset the WP Admin page styles for Gutenberg-like pages.
85 */
86 /**
87 * Creates a checkerboard pattern background to indicate transparency.
88 * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px.
89 */
90 :root {
91 --wp-block-synced-color: #7a00df;
92 --wp-block-synced-color--rgb: 122, 0, 223;
93 --wp-bound-block-color: var(--wp-block-synced-color);
94 --wp-editor-canvas-background: #ddd;
95 --wp-admin-theme-color: #007cba;
96 --wp-admin-theme-color--rgb: 0, 124, 186;
97 --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
98 --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
99 --wp-admin-theme-color-darker-20: #005a87;
100 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
101 --wp-admin-border-width-focus: 2px;
102 }
103 @media (min-resolution: 192dpi) {
104 :root {
105 --wp-admin-border-width-focus: 1.5px;
106 }
107 }
108
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 .edit-post-meta-boxes-main {
203 filter: drop-shadow(0 -1px rgba(0, 0, 0, 0.133));
204 outline: 1px solid transparent;
205 background-color: #fff;
206 display: flex;
207 flex-direction: column;
208 overflow: hidden;
209 }
210
211 .edit-post-meta-boxes-main__presenter {
212 flex-shrink: 0;
213 display: flex;
214 justify-content: center;
215 box-shadow: 0 1px #ddd;
216 outline: 1px solid transparent;
217 position: relative;
218 z-index: 1;
219 height: 32px;
220 }
221 @media (pointer: coarse) {
222 .edit-post-meta-boxes-main__presenter {
223 height: 36px;
224 }
225 }
226 .edit-post-meta-boxes-main__presenter > button {
227 appearance: none;
228 padding: 0;
229 border: none;
230 outline: none;
231 background-color: transparent;
232 touch-action: none;
233 }
234 .edit-post-meta-boxes-main__presenter > button[aria-expanded] {
235 cursor: var(--wpds-cursor-control, pointer);
236 width: 100%;
237 display: flex;
238 justify-content: space-between;
239 align-items: center;
240 padding-inline: 24px 12px;
241 }
242 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) {
243 color: var(--wp-admin-theme-color);
244 }
245 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after {
246 content: "";
247 position: absolute;
248 inset: var(--wp-admin-border-width-focus);
249 box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
250 outline: 2px solid transparent;
251 }
252 .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg {
253 fill: currentColor;
254 }
255 .edit-post-meta-boxes-main__presenter > button[role=separator] {
256 cursor: row-resize;
257 position: absolute;
258 width: 64px;
259 height: inherit;
260 }
261 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
262 content: "";
263 background-color: #ddd;
264 outline: 2px solid transparent;
265 outline-offset: -2px;
266 position: absolute;
267 inset-block: calc(50% - 4px / 2) auto;
268 transform: translateX(50%);
269 width: inherit;
270 height: 4px;
271 border-radius: 2px;
272 }
273 @media not (prefers-reduced-motion) {
274 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
275 transition: width 0.3s ease-out;
276 }
277 }
278 .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before {
279 background-color: var(--wp-admin-theme-color);
280 width: 80px;
281 }
282
283 .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
284 overflow: auto;
285 }
286 .edit-post-meta-boxes-main__liner {
287 isolation: isolate;
288 }
289 .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
290 display: unset;
291 }
292
293 .edit-post-layout__metaboxes {
294 clear: both;
295 }
296
297 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
298 flex-shrink: 1;
299 flex-basis: 0%;
300 overflow: hidden;
301 isolation: isolate;
302 }
303
304 .edit-post-layout__snackbar {
305 position: fixed;
306 bottom: 24px;
307 right: 0;
308 left: 0;
309 padding-inline: 16px;
310 box-sizing: border-box;
311 display: flex;
312 flex-direction: column;
313 pointer-events: none;
314 }
315 .edit-post-layout__snackbar .components-snackbar {
316 margin-inline: auto;
317 }
318
319 .edit-post-meta-boxes-area {
320 position: relative;
321 /**
322 * The wordpress default for most meta-box elements is content-box. Some
323 * elements such as textarea and input are set to border-box in forms.css.
324 * These elements therefore specifically set back to border-box here, while
325 * other elements (such as .button) are unaffected by Gutenberg's style
326 * because of their higher specificity.
327 */
328 }
329 .edit-post-meta-boxes-area__container,
330 .edit-post-meta-boxes-area .inside {
331 box-sizing: content-box;
332 }
333 .edit-post-meta-boxes-area textarea,
334 .edit-post-meta-boxes-area input {
335 box-sizing: border-box;
336 }
337 .edit-post-meta-boxes-area .postbox-header {
338 border-top: 1px solid #ddd;
339 border-bottom: 0;
340 }
341 .edit-post-meta-boxes-area {
342 /* Match width and positioning of the meta boxes. Override default styles. */
343 }
344 .edit-post-meta-boxes-area #poststuff {
345 margin: 0 auto;
346 padding-top: 0;
347 min-width: auto;
348 }
349 .edit-post-meta-boxes-area {
350 /* Override Default meta box stylings */
351 }
352 .edit-post-meta-boxes-area #poststuff h3.hndle,
353 .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
354 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
355 box-sizing: border-box;
356 color: inherit;
357 font-weight: 600;
358 outline: none;
359 padding: 0 24px;
360 position: relative;
361 width: 100%;
362 }
363 .edit-post-meta-boxes-area .postbox {
364 border: 0;
365 color: inherit;
366 margin-bottom: 0;
367 }
368 .edit-post-meta-boxes-area .postbox > .inside {
369 color: inherit;
370 padding: 0 24px 24px;
371 margin: 0;
372 }
373 .edit-post-meta-boxes-area .postbox .handlediv {
374 height: 44px;
375 width: 44px;
376 }
377 .edit-post-meta-boxes-area.is-loading::before {
378 position: absolute;
379 top: 0;
380 right: 0;
381 left: 0;
382 bottom: 0;
383 content: "";
384 background: transparent;
385 z-index: 1;
386 }
387 .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner {
388 position: absolute;
389 top: 10px;
390 left: 20px;
391 z-index: 2;
392 }
393 .edit-post-meta-boxes-area .is-hidden {
394 display: none;
395 }
396
397 .edit-post-meta-boxes-area__clear {
398 clear: both;
399 }
400
401 .edit-post-welcome-guide,
402 .edit-template-welcome-guide {
403 width: 312px;
404 }
405 .edit-post-welcome-guide__image,
406 .edit-template-welcome-guide__image {
407 background: #00a0d2;
408 margin: 0 0 16px;
409 }
410 .edit-post-welcome-guide__image > img,
411 .edit-template-welcome-guide__image > img {
412 display: block;
413 max-width: 100%;
414 object-fit: cover;
415 }
416 .edit-post-welcome-guide__heading,
417 .edit-template-welcome-guide__heading {
418 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
419 font-size: 24px;
420 line-height: 1.4;
421 margin: 16px 0 16px 0;
422 padding: 0 24px;
423 }
424 .edit-post-welcome-guide__text,
425 .edit-template-welcome-guide__text {
426 font-size: 13px;
427 line-height: 1.4;
428 margin: 0 0 24px 0;
429 padding: 0 24px;
430 }
431 .edit-post-welcome-guide__inserter-icon,
432 .edit-template-welcome-guide__inserter-icon {
433 margin: 0 4px;
434 vertical-align: text-top;
435 }
436 .edit-post-welcome-guide .components-button:hover svg,
437 .edit-template-welcome-guide .components-button:hover svg {
438 fill: #fff;
439 }
440
441 .edit-template-welcome-guide .components-button svg {
442 fill: #fff;
443 }
444
445 body.js.block-editor-page {
446 background: #fff;
447 }
448 body.js.block-editor-page #wpcontent {
449 padding-right: 0;
450 }
451 body.js.block-editor-page #wpbody-content {
452 padding-bottom: 0;
453 }
454 body.js.block-editor-page {
455 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
456 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
457 }
458 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
459 display: none;
460 }
461 body.js.block-editor-page #wpfooter {
462 display: none;
463 }
464 body.js.block-editor-page .a11y-speak-region {
465 right: -1px;
466 top: -1px;
467 }
468 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
469 body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
470 border-left-color: #fff;
471 }
472 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
473 width: auto;
474 max-width: 100%;
475 }
476
477 .block-editor-page #wpwrap {
478 overflow-y: auto;
479 }
480 @media (min-width: 782px) {
481 .block-editor-page #wpwrap {
482 overflow-y: initial;
483 }
484 }
485
486 .edit-post-visual-editor.is-iframed {
487 box-sizing: border-box;
488 }
489 .edit-post-visual-editor.is-iframed *,
490 .edit-post-visual-editor.is-iframed *::before,
491 .edit-post-visual-editor.is-iframed *::after {
492 box-sizing: inherit;
493 }
494
495 @media (min-width: 600px) {
496 .block-editor__container {
497 position: absolute;
498 top: 0;
499 left: 0;
500 bottom: 0;
501 right: 0;
502 min-height: calc(100vh - 46px);
503 }
504 }
505 @media (min-width: 782px) {
506 .block-editor__container {
507 min-height: calc(100vh - 32px);
508 }
509 body.is-fullscreen-mode .block-editor__container {
510 min-height: 100vh;
511 }
512 }
513 .block-editor__container img {
514 max-width: 100%;
515 height: auto;
516 }