PluginProbe
Gutenberg / 23.6.2
Gutenberg v23.6.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-rtl.css

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

437 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 right: 0;
223 left: 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 #ddd;
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: inherit;
272 font-weight: var(--wpds-typography-font-weight-emphasis, 600);
273 outline: none;
274 padding: 0 24px;
275 position: relative;
276 width: 100%;
277 }
278 .edit-post-meta-boxes-area .postbox {
279 border: 0;
280 color: inherit;
281 margin-bottom: 0;
282 }
283 .edit-post-meta-boxes-area .postbox > .inside {
284 color: inherit;
285 padding: 0 24px 24px;
286 margin: 0;
287 }
288 .edit-post-meta-boxes-area .postbox .handlediv {
289 height: 44px;
290 width: 44px;
291 }
292 .edit-post-meta-boxes-area.is-loading::before {
293 position: absolute;
294 top: 0;
295 right: 0;
296 left: 0;
297 bottom: 0;
298 content: "";
299 background: transparent;
300 z-index: 1;
301 }
302 .edit-post-meta-boxes-area .edit-post-meta-boxes-area__spinner {
303 position: absolute;
304 top: 10px;
305 left: 20px;
306 z-index: 2;
307 }
308 .edit-post-meta-boxes-area .is-hidden {
309 display: none;
310 }
311
312 .edit-post-meta-boxes-area__clear {
313 clear: both;
314 }
315
316 .edit-post-welcome-guide,
317 .edit-template-welcome-guide {
318 width: 312px;
319 }
320 .edit-post-welcome-guide__image,
321 .edit-template-welcome-guide__image {
322 background: #00a0d2;
323 margin: 0 0 16px;
324 }
325 .edit-post-welcome-guide__image > img,
326 .edit-template-welcome-guide__image > img {
327 display: block;
328 max-width: 100%;
329 -o-object-fit: cover;
330 object-fit: cover;
331 }
332 .edit-post-welcome-guide__heading,
333 .edit-template-welcome-guide__heading {
334 font-family: -apple-system, system-ui, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
335 font-size: 24px;
336 line-height: 1.4;
337 margin: 16px 0 16px 0;
338 padding: 0 24px;
339 }
340 .edit-post-welcome-guide__text,
341 .edit-template-welcome-guide__text {
342 font-size: 13px;
343 line-height: 1.4;
344 margin: 0 0 24px 0;
345 padding: 0 24px;
346 }
347 .edit-post-welcome-guide__inserter-icon,
348 .edit-template-welcome-guide__inserter-icon {
349 margin: 0 4px;
350 vertical-align: text-top;
351 }
352 .edit-post-welcome-guide .components-button:hover svg,
353 .edit-template-welcome-guide .components-button:hover svg {
354 fill: #fff;
355 }
356
357 .edit-template-welcome-guide .components-button svg {
358 fill: #fff;
359 }
360
361 body.js.block-editor-page {
362 background: #fff;
363 }
364 body.js.block-editor-page #wpcontent {
365 padding-right: 0;
366 }
367 body.js.block-editor-page #wpbody-content {
368 padding-bottom: 0;
369 }
370 body.js.block-editor-page {
371 /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
372 Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
373 }
374 body.js.block-editor-page #wpbody-content > div:not(.block-editor):not(#screen-meta) {
375 display: none;
376 }
377 body.js.block-editor-page #wpfooter {
378 display: none;
379 }
380 body.js.block-editor-page .a11y-speak-region {
381 right: -1px;
382 top: -1px;
383 }
384 body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu::after,
385 body.js.block-editor-page ul#adminmenu > li.current > a.current::after {
386 border-left-color: #fff;
387 }
388 body.js.block-editor-page .media-frame select.attachment-filters:last-of-type {
389 width: auto;
390 max-width: 100%;
391 }
392 @media (min-width: 782px) {
393 body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) {
394 --wp-admin--admin-bar--height: 0px;
395 }
396 body.js.block-editor-page.is-fullscreen-mode:has(.editor-editor-interface.is-distraction-free) #wpadminbar {
397 display: none;
398 }
399 }
400
401 .block-editor-page #wpwrap {
402 overflow-y: auto;
403 }
404 @media (min-width: 782px) {
405 .block-editor-page #wpwrap {
406 overflow-y: initial;
407 }
408 }
409
410 .edit-post-visual-editor {
411 box-sizing: border-box;
412 }
413 .edit-post-visual-editor *,
414 .edit-post-visual-editor *::before,
415 .edit-post-visual-editor *::after {
416 box-sizing: inherit;
417 }
418
419 @media (min-width: 600px) {
420 .block-editor__container {
421 position: absolute;
422 top: 0;
423 left: 0;
424 bottom: 0;
425 right: 0;
426 min-height: calc(100vh - 46px);
427 }
428 }
429 @media (min-width: 782px) {
430 .block-editor__container {
431 min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
432 }
433 }
434 .block-editor__container img {
435 max-width: 100%;
436 height: auto;
437 }