PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
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
gutenberg / build / styles / edit-post / style-rtl.css

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

442 lines 10.8 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 appearance: none;
141 padding: 0;
142 border: none;
143 outline: none;
144 background-color: transparent;
145 touch-action: none;
146 }
147 .edit-post-meta-boxes-main__presenter > button[aria-expanded] {
148 cursor: var(--wpds-cursor-control, pointer);
149 width: 100%;
150 display: flex;
151 justify-content: space-between;
152 align-items: center;
153 padding-inline: 24px 12px;
154 }
155 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:is(:hover, :focus-visible) {
156 color: var(--wp-admin-theme-color);
157 }
158 .edit-post-meta-boxes-main__presenter > button[aria-expanded]:focus-visible::after {
159 content: "";
160 position: absolute;
161 inset: var(--wp-admin-border-width-focus);
162 box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
163 outline: 2px solid transparent;
164 }
165 .edit-post-meta-boxes-main__presenter > button[aria-expanded] > svg {
166 fill: currentColor;
167 }
168 .edit-post-meta-boxes-main__presenter > button[role=separator] {
169 cursor: row-resize;
170 position: absolute;
171 width: 64px;
172 height: inherit;
173 }
174 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
175 content: "";
176 background-color: #ddd;
177 outline: 2px solid transparent;
178 outline-offset: -2px;
179 position: absolute;
180 inset-block: calc(50% - 4px / 2) auto;
181 transform: translateX(50%);
182 width: inherit;
183 height: 4px;
184 border-radius: 2px;
185 }
186 @media not (prefers-reduced-motion) {
187 .edit-post-meta-boxes-main__presenter > button[role=separator]::before {
188 transition: width 0.3s ease-out;
189 }
190 }
191 .edit-post-meta-boxes-main__presenter > button[role=separator]:is(:hover, :focus)::before {
192 background-color: var(--wp-admin-theme-color);
193 width: 80px;
194 }
195
196 .edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
197 overflow: auto;
198 }
199 .edit-post-meta-boxes-main__liner {
200 isolation: isolate;
201 }
202 .is-resizing.edit-post-meta-boxes-main .edit-post-meta-boxes-main__liner {
203 display: unset;
204 }
205
206 .edit-post-layout__metaboxes {
207 clear: both;
208 }
209
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 {
212 flex-shrink: 1;
213 flex-basis: 0%;
214 isolation: isolate;
215 }
216 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-visual-editor {
217 overflow: hidden;
218 }
219 .has-metaboxes .interface-interface-skeleton__content:has(.edit-post-meta-boxes-main) .editor-text-editor {
220 overflow: auto;
221 }
222
223 .edit-post-layout__snackbar {
224 position: fixed;
225 bottom: var(--wpds-dimension-size-md, 32px);
226 right: 0;
227 left: 0;
228 padding-inline: 16px;
229 box-sizing: border-box;
230 display: flex;
231 flex-direction: column;
232 pointer-events: none;
233 }
234 .edit-post-layout__snackbar .components-snackbar {
235 margin-inline: auto;
236 }
237
238 .edit-post-meta-boxes-area {
239 position: relative;
240 /**
241 * The wordpress default for most meta-box elements is content-box. Some
242 * elements such as textarea and input are set to border-box in forms.css.
243 * These elements therefore specifically set back to border-box here, while
244 * other elements (such as .button) are unaffected by Gutenberg's style
245 * because of their higher specificity.
246 */
247 }
248 .edit-post-meta-boxes-area__container,
249 .edit-post-meta-boxes-area .inside {
250 box-sizing: content-box;
251 }
252 .edit-post-meta-boxes-area textarea,
253 .edit-post-meta-boxes-area input {
254 box-sizing: border-box;
255 }
256 .edit-post-meta-boxes-area .postbox-header {
257 border-top: 1px solid #e0e0e0;
258 border-bottom: 0;
259 }
260 .edit-post-meta-boxes-area {
261 /* Match width and positioning of the meta boxes. Override default styles. */
262 }
263 .edit-post-meta-boxes-area #poststuff {
264 margin: 0 auto;
265 padding-top: 0;
266 min-width: auto;
267 }
268 .edit-post-meta-boxes-area {
269 /* Override Default meta box stylings */
270 }
271 .edit-post-meta-boxes-area #poststuff h3.hndle,
272 .edit-post-meta-boxes-area #poststuff .stuffbox > h3,
273 .edit-post-meta-boxes-area #poststuff h2.hndle { /* WordPress selectors yolo */
274 box-sizing: border-box;
275 color: #1e1e1e;
276 font-size: 13px;
277 font-weight: var(--wpds-typography-font-weight-emphasis, 600);
278 outline: none;
279 padding: 0 24px;
280 position: relative;
281 width: 100%;
282 }
283 .edit-post-meta-boxes-area .postbox {
284 border: 0;
285 color: inherit;
286 margin-bottom: 0;
287 }
288 .edit-post-meta-boxes-area .postbox > .inside {
289 color: inherit;
290 padding: 0 24px 24px;
291 margin: 0;
292 }
293 .edit-post-meta-boxes-area .postbox .handlediv {
294 height: 44px;
295 width: 44px;
296 }
297 .edit-post-meta-boxes-area.is-loading::before {
298 position: absolute;
299 top: 0;
300 right: 0;
301 left: 0;
302 bottom: 0;
303 content: "";
304 background: transparent;
305 z-index: 1;
306 }
307 .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner {
308 position: absolute;
309 top: 10px;
310 left: 20px;
311 z-index: 2;
312 }
313 .edit-post-meta-boxes-area .is-hidden {
314 display: none;
315 }
316
317 .edit-post-meta-boxes-area__clear {
318 clear: both;
319 }
320
321 .edit-post-welcome-guide,
322 .edit-template-welcome-guide {
323 width: 312px;
324 }
325 .edit-post-welcome-guide__image,
326 .edit-template-welcome-guide__image {
327 background: #00a0d2;
328 margin: 0 0 16px;
329 }
330 .edit-post-welcome-guide__image > img,
331 .edit-template-welcome-guide__image > img {
332 display: block;
333 max-width: 100%;
334 object-fit: cover;
335 }
336 .edit-post-welcome-guide__heading,
337 .edit-template-welcome-guide__heading {
338 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
339 font-size: 24px;
340 line-height: 1.4;
341 margin: 16px 0 16px 0;
342 padding: 0 24px;
343 }
344 .edit-post-welcome-guide__text,
345 .edit-template-welcome-guide__text {
346 font-size: 13px;
347 line-height: 1.4;
348 margin: 0 0 24px 0;
349 padding: 0 24px;
350 }
351 .edit-post-welcome-guide__inserter-icon,
352 .edit-template-welcome-guide__inserter-icon {
353 margin: 0 4px;
354 vertical-align: text-top;
355 }
356 .edit-post-welcome-guide .components-button:hover svg,
357 .edit-template-welcome-guide .components-button:hover svg {
358 color: #fff;
359 }
360
361 .edit-template-welcome-guide .components-button svg {
362 color: #fff;
363 }
364
365 body.js.block-editor-page {
366 background: #fff;
367 }
368 body.js.block-editor-page #wpcontent {
369 padding-right: 0;
370 }
371 body.js.block-editor-page #wpbody-content {
372 padding-bottom: 0;
373 }
374 body.js.block-editor-page {
375 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
376 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
377 }
378 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
379 display: none;
380 }
381 body.js.block-editor-page #wpfooter {
382 display: none;
383 }
384 body.js.block-editor-page .a11y-speak-region {
385 right: -1px;
386 top: -1px;
387 }
388 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
389 body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
390 border-left-color: #fff;
391 }
392 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
393 width: auto;
394 max-width: 100%;
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 }
405
406 .block-editor-page #wpwrap {
407 overflow-y: auto;
408 }
409 @media (min-width: 782px) {
410 .block-editor-page #wpwrap {
411 overflow-y: initial;
412 }
413 }
414
415 .edit-post-visual-editor {
416 box-sizing: border-box;
417 }
418 .edit-post-visual-editor *,
419 .edit-post-visual-editor *::before,
420 .edit-post-visual-editor *::after {
421 box-sizing: inherit;
422 }
423
424 @media (min-width: 600px) {
425 .block-editor__container {
426 position: absolute;
427 top: 0;
428 left: 0;
429 bottom: 0;
430 right: 0;
431 min-height: calc(100vh - 46px);
432 }
433 }
434 @media (min-width: 782px) {
435 .block-editor__container {
436 min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
437 }
438 }
439 .block-editor__container img {
440 max-width: 100%;
441 height: auto;
442 }