PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.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 / block-library / image / editor.css

editor.css in Gutenberg 23.7.2, at build/styles/block-library/image/editor.css

201 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Colors
3 */
4 /**
5 * Typography
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 * 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 .wp-block-image.wp-block-image .block-editor-media-placeholder.is-small {
97 min-height: 60px;
98 }
99
100 figure.wp-block-image:not(.wp-block) {
101 margin: 0;
102 }
103
104 .wp-block-image {
105 position: relative;
106 }
107 .wp-block-image.is-transient:not(.alignwide):not(.alignfull), .wp-block-image:has(img.is-swapping-media):not(.alignwide):not(.alignfull) {
108 width: -moz-fit-content;
109 width: fit-content;
110 }
111 .wp-block-image .is-applying img, .wp-block-image.is-transient img,
112 .wp-block-image img.is-swapping-media {
113 opacity: 0.3;
114 }
115 .wp-block-image figcaption img {
116 display: inline;
117 }
118 .wp-block-image .components-spinner {
119 position: absolute;
120 top: 50%;
121 left: 50%;
122 transform: translate(-50%, -50%);
123 margin: 0;
124 }
125
126 .wp-block-image__placeholder {
127 aspect-ratio: 4/3;
128 }
129 .wp-block-image__placeholder.has-illustration::before {
130 background: #fff;
131 opacity: 0.8;
132 }
133 .wp-block-image__placeholder .components-placeholder__illustration {
134 opacity: 0.1;
135 }
136
137 .wp-block-image.is-selected .block-editor-media-placeholder {
138 filter: none !important;
139 }
140
141 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
142 position: absolute;
143 left: 0;
144 right: 0;
145 margin: -1px 0;
146 }
147 @media (min-width: 600px) {
148 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal {
149 margin: -1px;
150 }
151 }
152
153 [data-align=wide] > .wp-block-image img,
154 [data-align=full] > .wp-block-image img {
155 height: auto;
156 width: 100%;
157 }
158
159 .wp-block[data-align=left] > .wp-block-image,
160 .wp-block[data-align=center] > .wp-block-image,
161 .wp-block[data-align=right] > .wp-block-image {
162 display: table;
163 }
164 .wp-block[data-align=left] > .wp-block-image > figcaption,
165 .wp-block[data-align=center] > .wp-block-image > figcaption,
166 .wp-block[data-align=right] > .wp-block-image > figcaption {
167 display: table-caption;
168 caption-side: bottom;
169 }
170
171 .wp-block[data-align=left] > .wp-block-image {
172 margin-right: 1em;
173 margin-left: 0;
174 margin-top: 0.5em;
175 margin-bottom: 0.5em;
176 }
177
178 .wp-block[data-align=right] > .wp-block-image {
179 margin-left: 1em;
180 margin-right: 0;
181 margin-top: 0.5em;
182 margin-bottom: 0.5em;
183 }
184
185 .wp-block[data-align=center] > .wp-block-image {
186 margin-left: auto;
187 margin-right: auto;
188 text-align: center;
189 }
190
191 .wp-block[data-align]:has(> .wp-block-image) {
192 position: relative;
193 }
194
195 .wp-block-image__toolbar_content_textarea__container {
196 padding: 8px;
197 }
198
199 .wp-block-image__toolbar_content_textarea {
200 width: 250px;
201 }