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 / commands / style-rtl.css

style-rtl.css in Gutenberg trunk, at build/styles/commands/style-rtl.css

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