PluginProbe
Gutenberg / 23.2.0
Gutenberg v23.2.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 12.6.0 All 403 releases
gutenberg / build / styles / block-library / image / style-rtl.css
build/styles/block-library/image
editor-rtl.css 4.5 KB 5 months ago editor-rtl.min.css 2.3 KB 5 months ago editor.css 4.5 KB 5 months ago editor.min.css 2.3 KB 5 months ago style-rtl.css 12.1 KB 6 months ago style-rtl.min.css 8.6 KB 6 months ago style.css 12.2 KB 6 months ago style.min.css 8.6 KB 6 months ago theme-rtl.css 1.9 KB 8 months ago theme-rtl.min.css 188 B 8 months ago theme.css 1.9 KB 8 months ago theme.min.css 188 B 8 months ago

style-rtl.css in Gutenberg 23.2.0, at build/styles/block-library/image/style-rtl.css

477 lines 12.1 KB 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 .wp-block-image > a,
91 .wp-block-image > figure > a {
92 display: inline-block;
93 }
94 .wp-block-image img {
95 height: auto;
96 max-width: 100%;
97 vertical-align: bottom;
98 box-sizing: border-box;
99 }
100 @media not (prefers-reduced-motion) {
101 .wp-block-image img.hide {
102 visibility: hidden;
103 }
104 .wp-block-image img.show {
105 animation: show-content-image 0.4s;
106 }
107 }
108 .wp-block-image[style*=border-radius] > a,
109 .wp-block-image[style*=border-radius] img {
110 border-radius: inherit;
111 }
112 .wp-block-image.has-custom-border img {
113 box-sizing: border-box;
114 }
115 .wp-block-image.aligncenter {
116 text-align: center;
117 }
118 .wp-block-image.alignfull > a, .wp-block-image.alignwide > a {
119 width: 100%;
120 }
121 .wp-block-image.alignfull img, .wp-block-image.alignwide img {
122 height: auto;
123 width: 100%;
124 }
125 .wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
126 .wp-block-image .alignleft,
127 .wp-block-image .alignright,
128 .wp-block-image .aligncenter {
129 display: table;
130 }
131 .wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
132 .wp-block-image .alignleft > figcaption,
133 .wp-block-image .alignright > figcaption,
134 .wp-block-image .aligncenter > figcaption {
135 display: table-caption;
136 caption-side: bottom;
137 }
138 .wp-block-image .alignleft {
139 float: left;
140 margin-left: 0;
141 margin-right: 1em;
142 margin-top: 0.5em;
143 margin-bottom: 0.5em;
144 }
145 .wp-block-image .alignright {
146 float: right;
147 margin-right: 0;
148 margin-left: 1em;
149 margin-top: 0.5em;
150 margin-bottom: 0.5em;
151 }
152 .wp-block-image .aligncenter {
153 margin-right: auto;
154 margin-left: auto;
155 }
156 .wp-block-image :where(figcaption) {
157 margin-top: 0.5em;
158 margin-bottom: 1em;
159 }
160 .wp-block-image.is-style-circle-mask img {
161 border-radius: 9999px;
162 }
163 @supports ((-webkit-mask-image: none) or (mask-image: none)) or (-webkit-mask-image: none) {
164 .wp-block-image.is-style-circle-mask img {
165 /* stylelint-disable-next-line function-url-quotes -- We need quotes for the data URL to use the SVG inline. */
166 -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
167 mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
168 mask-mode: alpha;
169 -webkit-mask-repeat: no-repeat;
170 mask-repeat: no-repeat;
171 -webkit-mask-size: contain;
172 mask-size: contain;
173 -webkit-mask-position: center;
174 mask-position: center;
175 border-radius: 0;
176 }
177 }
178
179 :root :where(.wp-block-image.is-style-rounded img, .wp-block-image .is-style-rounded img) {
180 border-radius: 9999px;
181 }
182
183 .wp-block-image figure {
184 margin: 0;
185 }
186
187 .wp-lightbox-container {
188 position: relative;
189 display: flex;
190 flex-direction: column;
191 }
192 .wp-lightbox-container img {
193 cursor: zoom-in;
194 }
195 .wp-lightbox-container img:hover + button {
196 opacity: 1;
197 }
198 .wp-lightbox-container button {
199 opacity: 0;
200 border: none;
201 background-color: rgba(90, 90, 90, 0.25);
202 backdrop-filter: blur(16px) saturate(180%);
203 cursor: zoom-in;
204 display: flex;
205 justify-content: center;
206 align-items: center;
207 width: 20px;
208 height: 20px;
209 position: absolute;
210 z-index: 100;
211 top: 16px;
212 left: 16px;
213 text-align: center;
214 padding: 0;
215 border-radius: 4px;
216 }
217 @media not (prefers-reduced-motion) {
218 .wp-lightbox-container button {
219 transition: opacity 0.2s ease;
220 }
221 }
222 .wp-lightbox-container button:focus-visible {
223 outline: 3px auto rgba(90, 90, 90, 0.25);
224 outline: 3px auto -webkit-focus-ring-color;
225 outline-offset: 3px;
226 }
227 .wp-lightbox-container button:hover {
228 cursor: pointer;
229 opacity: 1;
230 }
231 .wp-lightbox-container button:focus {
232 opacity: 1;
233 }
234 .wp-lightbox-container button:hover, .wp-lightbox-container button:focus, .wp-lightbox-container button:not(:hover):not(:active):not(.has-background) {
235 background-color: rgba(90, 90, 90, 0.25);
236 border: none;
237 }
238
239 .wp-lightbox-overlay {
240 position: fixed;
241 top: 0;
242 right: 0;
243 z-index: 100000;
244 overflow: hidden;
245 width: 100%;
246 height: 100vh;
247 box-sizing: border-box;
248 visibility: hidden;
249 cursor: zoom-out;
250 }
251 .wp-lightbox-overlay .wp-lightbox-close-button {
252 font-family: inherit;
253 position: absolute;
254 top: calc(env(safe-area-inset-top) + 16px);
255 left: calc(env(safe-area-inset-left) + 16px);
256 padding: 0 4px;
257 cursor: pointer;
258 z-index: 5000000;
259 min-width: 40px;
260 min-height: 40px;
261 display: flex;
262 gap: 8px;
263 align-items: center;
264 justify-content: center;
265 line-height: 1;
266 }
267 .wp-lightbox-overlay .wp-lightbox-close-button:hover, .wp-lightbox-overlay .wp-lightbox-close-button:focus, .wp-lightbox-overlay .wp-lightbox-close-button:not(:hover):not(:active):not(.has-background) {
268 background: none;
269 border: none;
270 }
271 .wp-lightbox-overlay .wp-lightbox-close-button:has(.wp-lightbox-close-text:not([hidden])) .wp-lightbox-close-icon svg {
272 height: 1em;
273 width: 1em;
274 }
275 .wp-lightbox-overlay .wp-lightbox-close-icon svg {
276 display: block;
277 }
278 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev,
279 .wp-lightbox-overlay .wp-lightbox-navigation-button-next {
280 position: absolute;
281 padding: 0 8px;
282 z-index: 2000002;
283 font-family: inherit;
284 min-width: 40px;
285 min-height: 40px;
286 gap: 4px;
287 display: flex;
288 cursor: pointer;
289 align-items: center;
290 justify-content: center;
291 bottom: 16px;
292 line-height: 1;
293 }
294 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev[hidden],
295 .wp-lightbox-overlay .wp-lightbox-navigation-button-next[hidden] {
296 display: none;
297 }
298 @media (min-width: 960px) {
299 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev,
300 .wp-lightbox-overlay .wp-lightbox-navigation-button-next {
301 bottom: 50%;
302 transform: translateY(-50%);
303 }
304 }
305 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev:hover, .wp-lightbox-overlay .wp-lightbox-navigation-button-prev:focus, .wp-lightbox-overlay .wp-lightbox-navigation-button-prev:not(:hover):not(:active):not(.has-background),
306 .wp-lightbox-overlay .wp-lightbox-navigation-button-next:hover,
307 .wp-lightbox-overlay .wp-lightbox-navigation-button-next:focus,
308 .wp-lightbox-overlay .wp-lightbox-navigation-button-next:not(:hover):not(:active):not(.has-background) {
309 background: none;
310 border: none;
311 padding: 0 8px;
312 }
313 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg,
314 .wp-lightbox-overlay .wp-lightbox-navigation-button-next:has(.wp-lightbox-navigation-text:not([hidden])) .wp-lightbox-navigation-icon svg {
315 width: 1.5em;
316 height: 1.5em;
317 display: block;
318 }
319 .wp-lightbox-overlay .wp-lightbox-navigation-button-prev {
320 right: calc(env(safe-area-inset-right) + 16px);
321 }
322 .wp-lightbox-overlay .wp-lightbox-navigation-button-next {
323 left: calc(env(safe-area-inset-left) + 16px);
324 }
325 .wp-lightbox-overlay .wp-lightbox-navigation-icon svg {
326 vertical-align: middle;
327 }
328 .wp-lightbox-overlay .lightbox-image-container {
329 position: absolute;
330 overflow: hidden;
331 top: 50%;
332 right: 50%;
333 transform-origin: top right;
334 transform: translate(50%, -50%);
335 width: var(--wp--lightbox-container-width);
336 height: var(--wp--lightbox-container-height);
337 z-index: 2000001;
338 }
339 .wp-lightbox-overlay .wp-block-image {
340 position: relative;
341 transform-origin: 100% 0;
342 display: flex;
343 width: 100%;
344 height: 100%;
345 justify-content: center;
346 align-items: center;
347 box-sizing: border-box;
348 z-index: 3000000;
349 margin: 0;
350 }
351 .wp-lightbox-overlay .wp-block-image img {
352 min-width: var(--wp--lightbox-image-width);
353 min-height: var(--wp--lightbox-image-height);
354 width: var(--wp--lightbox-image-width);
355 height: var(--wp--lightbox-image-height);
356 }
357 .wp-lightbox-overlay .wp-block-image figcaption {
358 display: none;
359 }
360 .wp-lightbox-overlay button {
361 border: none;
362 background: none;
363 }
364 .wp-lightbox-overlay .scrim {
365 width: 100%;
366 height: 100%;
367 position: absolute;
368 z-index: 2000000;
369 background-color: rgb(255, 255, 255);
370 opacity: 0.9;
371 }
372 .wp-lightbox-overlay.active {
373 visibility: visible;
374 }
375 @media not (prefers-reduced-motion) {
376 .wp-lightbox-overlay.active {
377 animation: both turn-on-visibility 0.25s;
378 }
379 }
380 @media not (prefers-reduced-motion) {
381 .wp-lightbox-overlay.active img {
382 animation: both turn-on-visibility 0.35s;
383 }
384 }
385 @media not (prefers-reduced-motion) {
386 .wp-lightbox-overlay.show-closing-animation:not(.active) {
387 animation: both turn-off-visibility 0.35s;
388 }
389 }
390 @media not (prefers-reduced-motion) {
391 .wp-lightbox-overlay.show-closing-animation:not(.active) img {
392 animation: both turn-off-visibility 0.25s;
393 }
394 }
395 @media not (prefers-reduced-motion) {
396 .wp-lightbox-overlay.zoom.active {
397 opacity: 1;
398 visibility: visible;
399 animation: none;
400 }
401 .wp-lightbox-overlay.zoom.active .lightbox-image-container {
402 animation: lightbox-zoom-in 0.4s;
403 }
404 .wp-lightbox-overlay.zoom.active .lightbox-image-container img {
405 animation: none;
406 }
407 .wp-lightbox-overlay.zoom.active .scrim {
408 animation: turn-on-visibility 0.4s forwards;
409 }
410 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) {
411 animation: none;
412 }
413 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container {
414 animation: lightbox-zoom-out 0.4s;
415 }
416 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .lightbox-image-container img {
417 animation: none;
418 }
419 .wp-lightbox-overlay.zoom.show-closing-animation:not(.active) .scrim {
420 animation: turn-off-visibility 0.4s forwards;
421 }
422 }
423
424 @keyframes show-content-image {
425 0% {
426 visibility: hidden;
427 }
428 99% {
429 visibility: hidden;
430 }
431 100% {
432 visibility: visible;
433 }
434 }
435 @keyframes turn-on-visibility {
436 0% {
437 opacity: 0;
438 }
439 100% {
440 opacity: 1;
441 }
442 }
443 @keyframes turn-off-visibility {
444 0% {
445 opacity: 1;
446 visibility: visible;
447 }
448 99% {
449 opacity: 0;
450 visibility: visible;
451 }
452 100% {
453 opacity: 0;
454 visibility: hidden;
455 }
456 }
457 @keyframes lightbox-zoom-in {
458 0% {
459 transform: translate(calc(-1*((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position))), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
460 }
461 100% {
462 transform: translate(50%, -50%) scale(1, 1);
463 }
464 }
465 @keyframes lightbox-zoom-out {
466 0% {
467 visibility: visible;
468 transform: translate(50%, -50%) scale(1, 1);
469 }
470 99% {
471 visibility: visible;
472 }
473 100% {
474 visibility: hidden;
475 transform: translate(calc(-1*((-100vw + var(--wp--lightbox-scrollbar-width)) / 2 + var(--wp--lightbox-initial-left-position))), calc(-50vh + var(--wp--lightbox-initial-top-position))) scale(var(--wp--lightbox-scale));
476 }
477 }