PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.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 / commands / style.css

style.css in Gutenberg 22.7.0, at build/styles/commands/style.css

267 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
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 :root {
91 --wp-block-synced-color: #7a00df;
92 --wp-block-synced-color--rgb: 122, 0, 223;
93 --wp-bound-block-color: var(--wp-block-synced-color);
94 --wp-editor-canvas-background: #ddd;
95 --wp-admin-theme-color: #007cba;
96 --wp-admin-theme-color--rgb: 0, 124, 186;
97 --wp-admin-theme-color-darker-10: rgb(0, 107, 160.5);
98 --wp-admin-theme-color-darker-10--rgb: 0, 107, 160.5;
99 --wp-admin-theme-color-darker-20: #005a87;
100 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
101 --wp-admin-border-width-focus: 2px;
102 }
103 @media (min-resolution: 192dpi) {
104 :root {
105 --wp-admin-border-width-focus: 1.5px;
106 }
107 }
108
109 .commands-command-menu {
110 border-radius: 4px;
111 width: calc(100% - 32px);
112 margin: auto;
113 max-width: 400px;
114 position: relative;
115 top: calc(5% + 64px);
116 }
117 @media (min-width: 600px) {
118 .commands-command-menu {
119 top: calc(10% + 64px);
120 }
121 }
122 .commands-command-menu .components-modal__content {
123 margin: 0;
124 padding: 0;
125 overflow: hidden;
126 }
127
128 .commands-command-menu__overlay {
129 display: block;
130 align-items: start;
131 }
132
133 .commands-command-menu__header {
134 display: flex;
135 align-items: center;
136 gap: 8px;
137 padding: 0 16px;
138 }
139 .commands-command-menu__header .components-button {
140 height: 56px;
141 width: 56px;
142 border: 1px solid #949494;
143 border-right: 0;
144 justify-content: center;
145 border-radius: 2px 0 0 2px;
146 }
147 .commands-command-menu__header .components-button + [cmdk-input] {
148 border-top-left-radius: 0;
149 border-bottom-left-radius: 0;
150 }
151
152 .commands-command-menu__header-search-icon:dir(ltr) {
153 transform: scaleX(-1);
154 }
155
156 .commands-command-menu__container {
157 will-change: transform;
158 }
159 .commands-command-menu__container [cmdk-input] {
160 border: none;
161 width: 100%;
162 padding: 16px 4px;
163 outline: none;
164 color: #1e1e1e;
165 margin: 0;
166 font-size: 15px;
167 line-height: 24px;
168 border-radius: 0;
169 }
170 .commands-command-menu__container [cmdk-input]::placeholder {
171 color: #757575;
172 }
173 .commands-command-menu__container [cmdk-input]:focus {
174 box-shadow: none;
175 outline: none;
176 }
177 .commands-command-menu__container [cmdk-item] {
178 border-radius: 2px;
179 cursor: pointer;
180 display: flex;
181 align-items: center;
182 color: #1e1e1e;
183 font-size: 13px;
184 }
185 .commands-command-menu__container [cmdk-item][aria-selected=true], .commands-command-menu__container [cmdk-item]:active {
186 background: var(--wp-admin-theme-color);
187 color: #fff;
188 }
189 .commands-command-menu__container [cmdk-item][aria-selected=true] svg, .commands-command-menu__container [cmdk-item]:active svg {
190 fill: #fff;
191 }
192 .commands-command-menu__container [cmdk-item][aria-disabled=true] {
193 color: #949494;
194 cursor: not-allowed;
195 }
196 .commands-command-menu__container [cmdk-item] svg {
197 fill: #1e1e1e;
198 }
199 .commands-command-menu__container [cmdk-item] > div {
200 min-height: 40px;
201 padding: 4px;
202 padding-left: 40px;
203 padding-right: 16px;
204 }
205 .commands-command-menu__container [cmdk-item] > .has-icon {
206 padding-left: 8px;
207 }
208 .commands-command-menu__container [cmdk-root] > [cmdk-list] {
209 max-height: 368px;
210 overflow: auto;
211 scroll-padding-top: 8px;
212 scroll-padding-bottom: 8px;
213 }
214 .commands-command-menu__container [cmdk-root] > [cmdk-list]:has([cmdk-group-items]:not(:empty)), .commands-command-menu__container [cmdk-root] > [cmdk-list]:has([cmdk-empty]) {
215 border-top: 1px solid #ddd;
216 }
217 .commands-command-menu__container [cmdk-root] > [cmdk-list]:has([cmdk-group-items]:not(:empty)) {
218 padding-top: 8px;
219 }
220 .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-list-sizer] > [cmdk-group]:last-child [cmdk-group-items]:not(:empty) {
221 padding-bottom: 8px;
222 }
223 .commands-command-menu__container [cmdk-root] > [cmdk-list] [cmdk-list-sizer] > [cmdk-group] > [cmdk-group-items]:not(:empty) {
224 padding: 0 8px;
225 }
226 .commands-command-menu__container [cmdk-empty] {
227 display: flex;
228 align-items: center;
229 justify-content: center;
230 white-space: pre-wrap;
231 color: #1e1e1e;
232 padding: 8px 0 32px;
233 }
234 .commands-command-menu__container [cmdk-loading] {
235 padding: 16px;
236 }
237 .commands-command-menu__container [cmdk-list-sizer] {
238 position: relative;
239 }
240
241 .commands-command-menu__item-label {
242 display: inline-block;
243 overflow: hidden;
244 text-overflow: ellipsis;
245 white-space: nowrap;
246 flex: 1;
247 min-width: 0;
248 }
249
250 .commands-command-menu__item-category {
251 flex: 0 0 auto;
252 margin-left: auto;
253 padding-left: 24px;
254 color: #757575;
255 font-size: 13px;
256 line-height: 1.4;
257 text-align: right;
258 }
259 [aria-selected=true] .commands-command-menu__item-category, [cmdk-item]:active .commands-command-menu__item-category {
260 color: rgba(255, 255, 255, 0.8);
261 }
262
263 .commands-command-menu__item mark {
264 color: inherit;
265 background: unset;
266 font-weight: 600;
267 }