1 /** |
1 .wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{ |
2 * Colors |
2 max-width:360px; |
3 */ |
3 width:100%; |
4 /** |
|
5 * Breakpoints & Media Queries |
|
6 */ |
|
7 /** |
|
8 * SCSS Variables. |
|
9 * |
|
10 * Please use variables from this sheet to ensure consistency across the UI. |
|
11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
|
13 */ |
|
14 /** |
|
15 * Colors |
|
16 */ |
|
17 /** |
|
18 * Fonts & basic variables. |
|
19 */ |
|
20 /** |
|
21 * Grid System. |
|
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 */ |
|
24 /** |
|
25 * Dimensions. |
|
26 */ |
|
27 /** |
|
28 * Shadows. |
|
29 */ |
|
30 /** |
|
31 * Editor widths. |
|
32 */ |
|
33 /** |
|
34 * Block & Editor UI. |
|
35 */ |
|
36 /** |
|
37 * Block paddings. |
|
38 */ |
|
39 /** |
|
40 * React Native specific. |
|
41 * These variables do not appear to be used anywhere else. |
|
42 */ |
|
43 /** |
|
44 * Converts a hex value into the rgb equivalent. |
|
45 * |
|
46 * @param {string} hex - the hexadecimal value to convert |
|
47 * @return {string} comma separated rgb values |
|
48 */ |
|
49 /** |
|
50 * Breakpoint mixins |
|
51 */ |
|
52 /** |
|
53 * Long content fade mixin |
|
54 * |
|
55 * Creates a fading overlay to signify that the content is longer |
|
56 * than the space allows. |
|
57 */ |
|
58 /** |
|
59 * Focus styles. |
|
60 */ |
|
61 /** |
|
62 * Applies editor left position to the selector passed as argument |
|
63 */ |
|
64 /** |
|
65 * Styles that are reused verbatim in a few places |
|
66 */ |
|
67 /** |
|
68 * Allows users to opt-out of animations via OS-level preferences. |
|
69 */ |
|
70 /** |
|
71 * Reset default styles for JavaScript UI based pages. |
|
72 * This is a WP-admin agnostic reset |
|
73 */ |
|
74 /** |
|
75 * Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 */ |
|
77 .wp-block[data-align=left] > [data-type="core/embed"], |
|
78 .wp-block[data-align=right] > [data-type="core/embed"], |
|
79 .wp-block-embed.alignleft, |
|
80 .wp-block-embed.alignright { |
|
81 max-width: 360px; |
|
82 width: 100%; |
|
83 } |
4 } |
84 .wp-block[data-align=left] > [data-type="core/embed"] .wp-block-embed__wrapper, |
5 .wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{ |
85 .wp-block[data-align=right] > [data-type="core/embed"] .wp-block-embed__wrapper, |
6 min-width:280px; |
86 .wp-block-embed.alignleft .wp-block-embed__wrapper, |
|
87 .wp-block-embed.alignright .wp-block-embed__wrapper { |
|
88 min-width: 280px; |
|
89 } |
7 } |
90 |
8 |
91 .wp-block-cover .wp-block-embed { |
9 .wp-block-cover .wp-block-embed{ |
92 min-width: 320px; |
10 min-height:240px; |
93 min-height: 240px; |
11 min-width:320px; |
94 } |
12 } |
95 |
13 |
96 .wp-block-embed { |
14 .wp-block-embed{ |
97 margin: 0 0 1em 0; |
15 overflow-wrap:break-word; |
98 overflow-wrap: break-word; |
|
99 } |
16 } |
100 .wp-block-embed figcaption { |
17 .wp-block-embed :where(figcaption){ |
101 margin-top: 0.5em; |
18 margin-bottom:1em; |
102 margin-bottom: 1em; |
19 margin-top:.5em; |
103 } |
20 } |
104 .wp-block-embed iframe { |
21 .wp-block-embed iframe{ |
105 max-width: 100%; |
22 max-width:100%; |
106 } |
23 } |
107 |
24 |
108 .wp-block-embed__wrapper { |
25 .wp-block-embed__wrapper{ |
109 position: relative; |
26 position:relative; |
110 } |
27 } |
111 |
28 |
112 .wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper::before { |
29 .wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{ |
113 content: ""; |
30 content:""; |
114 display: block; |
31 display:block; |
115 padding-top: 50%; |
32 padding-top:50%; |
116 } |
33 } |
117 .wp-embed-responsive .wp-has-aspect-ratio iframe { |
34 .wp-embed-responsive .wp-has-aspect-ratio iframe{ |
118 position: absolute; |
35 bottom:0; |
119 top: 0; |
36 height:100%; |
120 left: 0; |
37 left:0; |
121 bottom: 0; |
38 position:absolute; |
122 right: 0; |
39 right:0; |
123 height: 100%; |
40 top:0; |
124 width: 100%; |
41 width:100%; |
125 } |
42 } |
126 |
43 |
127 .wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before { |
44 .wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{ |
128 padding-top: 42.85%; |
45 padding-top:42.85%; |
129 } |
46 } |
130 .wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before { |
47 .wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{ |
131 padding-top: 50%; |
48 padding-top:50%; |
132 } |
49 } |
133 .wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { |
50 .wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{ |
134 padding-top: 56.25%; |
51 padding-top:56.25%; |
135 } |
52 } |
136 .wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { |
53 .wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{ |
137 padding-top: 75%; |
54 padding-top:75%; |
138 } |
55 } |
139 .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { |
56 .wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{ |
140 padding-top: 100%; |
57 padding-top:100%; |
141 } |
58 } |
142 .wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { |
59 .wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{ |
143 padding-top: 177.77%; |
60 padding-top:177.77%; |
144 } |
61 } |
145 .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper::before { |
62 .wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{ |
146 padding-top: 200%; |
63 padding-top:200%; |
147 } |
64 } |