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 / gallery / editor.css

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

199 lines 4.3 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 /**
5 * Colors
6 */
7 /**
8 * Typography
9 */
10 /**
11 * SCSS Variables.
12 *
13 * Please use variables from this sheet to ensure consistency across the UI.
14 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
15 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
16 */
17 /**
18 * Fonts & basic variables.
19 */
20 /**
21 * Typography
22 */
23 /**
24 * Grid System.
25 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26 */
27 /**
28 * Radius scale.
29 */
30 /**
31 * Elevation scale.
32 */
33 /**
34 * Dimensions.
35 */
36 /**
37 * Mobile specific styles
38 */
39 /**
40 * Editor styles.
41 */
42 /**
43 * Block & Editor UI.
44 */
45 /**
46 * Block paddings.
47 */
48 /**
49 * React Native specific.
50 * These variables do not appear to be used anywhere else.
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 :where(figure.wp-block-gallery) {
97 display: block;
98 }
99 :root :where(figure.wp-block-gallery) > .blocks-gallery-caption {
100 flex: 0 0 100%;
101 }
102 :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label {
103 display: none;
104 }
105 :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button {
106 margin-bottom: 0;
107 }
108 :root :where(figure.wp-block-gallery) .block-editor-media-placeholder {
109 margin: 0;
110 }
111 :root :where(figure.wp-block-gallery) .block-editor-media-placeholder .components-placeholder__label {
112 display: flex;
113 }
114 :root :where(figure.wp-block-gallery) .block-editor-media-placeholder figcaption {
115 z-index: 2;
116 }
117 :root :where(figure.wp-block-gallery) .components-spinner {
118 position: absolute;
119 top: 50%;
120 left: 50%;
121 margin-top: -9px;
122 margin-left: -9px;
123 }
124
125 /**
126 * Gallery inspector controls settings.
127 */
128 .gallery-settings-buttons .components-button:first-child {
129 margin-right: 8px;
130 }
131
132 /**
133 * Deprecated css past this point. This can be removed once all galleries are migrated
134 * to V2.
135 */
136 .blocks-gallery-item figure:not(.is-selected):focus,
137 .blocks-gallery-item img:focus {
138 outline: none;
139 }
140 .blocks-gallery-item figure.is-selected::before {
141 box-shadow: 0 0 0 1px #fff inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
142 content: "";
143 outline: 2px solid transparent;
144 position: absolute;
145 top: 0;
146 right: 0;
147 bottom: 0;
148 left: 0;
149 z-index: 1;
150 pointer-events: none;
151 }
152 .blocks-gallery-item figure.is-transient img {
153 opacity: 0.3;
154 }
155 .blocks-gallery-item .block-editor-media-placeholder {
156 margin: 0;
157 height: 100%;
158 }
159 .blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label {
160 display: flex;
161 }
162
163 .wp-block-gallery ul.blocks-gallery-grid {
164 padding: 0;
165 margin: 0;
166 }
167
168 @media (min-width: 600px) {
169 .wp-block-update-gallery-modal {
170 max-width: 480px;
171 }
172 }
173
174 .wp-block-update-gallery-modal-buttons {
175 display: flex;
176 justify-content: flex-end;
177 gap: 12px;
178 }
179
180 .wp-block-gallery__source-settings {
181 grid-column: 1/-1;
182 display: flex;
183 flex-direction: column;
184 gap: 8px;
185 }
186 .wp-block-gallery__source-settings .wp-block-gallery__source-description {
187 margin: 0;
188 color: #757575;
189 font-size: 12px;
190 }
191 .wp-block-gallery__source-settings .components-button {
192 justify-content: center;
193 width: 100%;
194 }
195
196 .wp-block-gallery__source-notice {
197 grid-column: 1/-1;
198 margin: 0;
199 }