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
gutenberg / build / styles / block-library / media-text / style-rtl.css

style-rtl.css in Gutenberg trunk, at build/styles/block-library/media-text/style-rtl.css

129 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Breakpoints & Media Queries
3 */
4 .wp-block-media-text {
5 direction: ltr;
6 display: grid;
7 grid-template-columns: 50% 1fr;
8 grid-template-rows: auto;
9 box-sizing: border-box;
10 }
11 .wp-block-media-text.has-media-on-the-right {
12 grid-template-columns: 1fr 50%;
13 }
14
15 .wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__content,
16 .wp-block-media-text.is-vertically-aligned-top > .wp-block-media-text__media {
17 align-self: start;
18 }
19
20 .wp-block-media-text > .wp-block-media-text__content,
21 .wp-block-media-text > .wp-block-media-text__media,
22 .wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__content,
23 .wp-block-media-text.is-vertically-aligned-center > .wp-block-media-text__media {
24 align-self: center;
25 }
26
27 .wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__content,
28 .wp-block-media-text.is-vertically-aligned-bottom > .wp-block-media-text__media {
29 align-self: end;
30 }
31
32 .wp-block-media-text > .wp-block-media-text__media {
33 grid-column: 1;
34 grid-row: 1;
35 margin: 0;
36 }
37
38 .wp-block-media-text > .wp-block-media-text__content {
39 direction: rtl;
40 grid-column: 2;
41 grid-row: 1;
42 padding: 0 8% 0 8%;
43 word-break: break-word;
44 }
45
46 .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
47 grid-column: 2;
48 grid-row: 1;
49 }
50
51 .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content {
52 grid-column: 1;
53 grid-row: 1;
54 }
55
56 .wp-block-media-text__media a {
57 display: block;
58 }
59
60 .wp-block-media-text__media img,
61 .wp-block-media-text__media video {
62 height: auto;
63 max-width: unset;
64 width: 100%;
65 vertical-align: middle;
66 }
67
68 /* `is-image-fill` is deprecated and the styles are kept for backwards compatibility. */
69 .wp-block-media-text.is-image-fill > .wp-block-media-text__media {
70 height: 100%;
71 min-height: 250px;
72 background-size: cover;
73 }
74
75 .wp-block-media-text.is-image-fill > .wp-block-media-text__media > a {
76 display: block;
77 height: 100%;
78 }
79
80 .wp-block-media-text.is-image-fill > .wp-block-media-text__media img {
81 position: absolute;
82 width: 1px;
83 height: 1px;
84 padding: 0;
85 margin: -1px;
86 overflow: hidden;
87 clip-path: inset(50%);
88 border: 0;
89 }
90
91 /* Image fill for versions 8 and onwards */
92 .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
93 position: relative;
94 height: 100%;
95 min-height: 250px;
96 }
97
98 .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media > a {
99 display: block;
100 height: 100%;
101 }
102
103 .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
104 position: absolute;
105 width: 100%;
106 height: 100%;
107 object-fit: cover;
108 }
109
110 /*
111 * Here we here not able to use a mobile first CSS approach.
112 * Custom widths are set using inline styles, and on mobile,
113 * we need 100% width, so we use important to overwrite the inline style.
114 * If the style were set on mobile first, on desktop styles,
115 * we would have no way of setting the style again to the inline style.
116 */
117 @media (max-width: 600px) {
118 .wp-block-media-text.is-stacked-on-mobile {
119 grid-template-columns: 100% !important;
120 }
121 .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
122 grid-column: 1;
123 grid-row: 1;
124 }
125 .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
126 grid-column: 1;
127 grid-row: 2;
128 }
129 }