18
|
1 |
/** |
|
2 |
* Colors |
|
3 |
*/ |
|
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 |
/** |
19
|
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 |
/** |
18
|
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 |
:root { |
|
78 |
--wp-admin-theme-color: #007cba; |
19
|
79 |
--wp-admin-theme-color--rgb: 0, 124, 186; |
18
|
80 |
--wp-admin-theme-color-darker-10: #006ba1; |
19
|
81 |
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161; |
18
|
82 |
--wp-admin-theme-color-darker-20: #005a87; |
19
|
83 |
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
18
|
84 |
--wp-admin-border-width-focus: 2px; |
|
85 |
} |
|
86 |
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
|
87 |
:root { |
|
88 |
--wp-admin-border-width-focus: 1.5px; |
|
89 |
} |
|
90 |
} |
|
91 |
|
|
92 |
#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector { |
|
93 |
background: #fff; |
|
94 |
box-sizing: border-box; |
|
95 |
} |
|
96 |
#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector * { |
|
97 |
box-sizing: inherit; |
|
98 |
} |
|
99 |
#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector { |
|
100 |
margin: -12px; |
|
101 |
} |
|
102 |
#customize-theme-controls .customize-pane-child.accordion-section-content.customize-widgets-layout__inspector .block-editor-block-inspector h3 { |
|
103 |
margin-bottom: 0; |
|
104 |
} |
|
105 |
|
|
106 |
#customize-theme-controls .customize-pane-child.control-section-sidebar.is-sub-section-open { |
|
107 |
transform: translateX(100%); |
|
108 |
} |
|
109 |
|
|
110 |
.customize-widgets-header { |
|
111 |
display: flex; |
|
112 |
justify-content: flex-end; |
|
113 |
margin: -15px -12px 0 -12px; |
|
114 |
background: #f0f0f1; |
|
115 |
border-bottom: 1px solid #e0e0e0; |
|
116 |
z-index: 8; |
|
117 |
} |
|
118 |
@media (min-width: 782px) { |
|
119 |
.customize-widgets-header { |
19
|
120 |
margin-bottom: 44px; |
18
|
121 |
} |
|
122 |
} |
|
123 |
.customize-widgets-header.is-fixed-toolbar-active { |
|
124 |
margin-bottom: 0; |
|
125 |
} |
|
126 |
|
|
127 |
.customize-widgets-header-toolbar { |
|
128 |
display: flex; |
|
129 |
border: none; |
|
130 |
width: 100%; |
|
131 |
align-items: center; |
|
132 |
} |
|
133 |
.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon { |
|
134 |
border-radius: 2px; |
|
135 |
color: #fff; |
|
136 |
padding: 0; |
|
137 |
min-width: 24px; |
|
138 |
height: 24px; |
|
139 |
margin: 12px auto 12px 0; |
|
140 |
} |
|
141 |
.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon::before { |
|
142 |
content: none; |
|
143 |
} |
|
144 |
.customize-widgets-header-toolbar .customize-widgets-header-toolbar__inserter-toggle.components-button.has-icon.is-pressed { |
|
145 |
background: #1e1e1e; |
|
146 |
} |
|
147 |
.customize-widgets-header-toolbar .components-button.has-icon.customize-widgets-editor-history-button.redo-button { |
|
148 |
margin-right: -12px; |
|
149 |
} |
|
150 |
|
|
151 |
#customize-sidebar-outer-content { |
|
152 |
width: auto; |
|
153 |
min-width: 100%; |
|
154 |
} |
|
155 |
|
|
156 |
#customize-outer-theme-controls .widgets-inserter { |
|
157 |
padding: 0; |
|
158 |
} |
|
159 |
#customize-outer-theme-controls .widgets-inserter .customize-section-description-container { |
|
160 |
display: none; |
|
161 |
} |
|
162 |
|
|
163 |
.customize-widgets-layout__inserter-panel { |
|
164 |
background: #fff; |
|
165 |
} |
|
166 |
|
|
167 |
.customize-widgets-layout__inserter-panel-header { |
|
168 |
display: flex; |
|
169 |
justify-content: space-between; |
|
170 |
align-items: center; |
|
171 |
padding: 16px; |
|
172 |
height: 46px; |
|
173 |
box-sizing: border-box; |
|
174 |
border-bottom: 1px solid #ddd; |
|
175 |
} |
|
176 |
.customize-widgets-layout__inserter-panel-header .customize-widgets-layout__inserter-panel-header-title { |
|
177 |
margin: 0; |
|
178 |
} |
|
179 |
|
|
180 |
.block-editor-inserter__quick-inserter .block-editor-inserter__panel-content { |
|
181 |
background: #fff; |
|
182 |
} |
|
183 |
|
|
184 |
.customize-widgets-keyboard-shortcut-help-modal__section { |
|
185 |
margin: 0 0 2rem 0; |
|
186 |
} |
|
187 |
.customize-widgets-keyboard-shortcut-help-modal__main-shortcuts .customize-widgets-keyboard-shortcut-help-modal__shortcut-list { |
|
188 |
margin-top: -25px; |
|
189 |
} |
|
190 |
.customize-widgets-keyboard-shortcut-help-modal__section-title { |
|
191 |
font-size: 0.9rem; |
|
192 |
font-weight: 600; |
|
193 |
} |
|
194 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut { |
|
195 |
display: flex; |
|
196 |
align-items: baseline; |
|
197 |
padding: 0.6rem 0; |
|
198 |
border-top: 1px solid #ddd; |
|
199 |
margin-bottom: 0; |
|
200 |
} |
|
201 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut:last-child { |
|
202 |
border-bottom: 1px solid #ddd; |
|
203 |
} |
|
204 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut:empty { |
|
205 |
display: none; |
|
206 |
} |
|
207 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-term { |
|
208 |
font-weight: 600; |
|
209 |
margin: 0 1rem 0 0; |
|
210 |
text-align: left; |
|
211 |
} |
|
212 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-description { |
|
213 |
flex: 1; |
|
214 |
margin: 0; |
|
215 |
flex-basis: auto; |
|
216 |
} |
|
217 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination { |
|
218 |
display: block; |
|
219 |
background: none; |
|
220 |
margin: 0; |
|
221 |
padding: 0; |
|
222 |
} |
|
223 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination + .customize-widgets-keyboard-shortcut-help-modal__shortcut-key-combination { |
|
224 |
margin-top: 10px; |
|
225 |
} |
|
226 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-key { |
|
227 |
padding: 0.25rem 0.5rem; |
|
228 |
border-radius: 8%; |
|
229 |
margin: 0 0.2rem 0 0.2rem; |
|
230 |
} |
|
231 |
.customize-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child { |
|
232 |
margin: 0 0.2rem 0 0; |
|
233 |
} |
|
234 |
|
|
235 |
.block-editor-block-contextual-toolbar.is-fixed { |
|
236 |
top: 0; |
|
237 |
margin-right: -12px; |
|
238 |
margin-left: -12px; |
|
239 |
width: calc(100% + 24px); |
|
240 |
overflow-y: auto; |
|
241 |
z-index: 7; |
|
242 |
} |
|
243 |
|
|
244 |
.customize-control-sidebar_block_editor .block-editor-block-list__block-popover { |
|
245 |
position: fixed; |
|
246 |
z-index: 7; |
|
247 |
} |
|
248 |
|
|
249 |
.customize-widgets-welcome-guide__image__wrapper { |
|
250 |
background: #00a0d2; |
|
251 |
text-align: center; |
|
252 |
margin-bottom: 8px; |
|
253 |
} |
|
254 |
.customize-widgets-welcome-guide__image { |
|
255 |
height: auto; |
|
256 |
} |
|
257 |
.wrap .customize-widgets-welcome-guide__heading { |
|
258 |
font-size: 18px; |
|
259 |
font-weight: 600; |
|
260 |
} |
|
261 |
.customize-widgets-welcome-guide__text { |
|
262 |
line-height: 1.7; |
|
263 |
} |
|
264 |
.customize-widgets-welcome-guide__button { |
|
265 |
justify-content: center; |
|
266 |
margin: 1em 0; |
|
267 |
width: 100%; |
|
268 |
} |
|
269 |
.customize-widgets-welcome-guide__separator { |
|
270 |
margin: 1em 0; |
|
271 |
} |
|
272 |
.customize-widgets-welcome-guide__more-info { |
|
273 |
line-height: 1.4; |
|
274 |
} |
|
275 |
|
|
276 |
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section { |
|
277 |
min-height: 100%; |
|
278 |
background-color: #fff; |
|
279 |
padding-top: 12px !important; |
|
280 |
} |
|
281 |
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section.open { |
|
282 |
overflow: unset; |
|
283 |
} |
|
284 |
#customize-theme-controls .customize-pane-child.customize-widgets__sidebar-section .customize-section-title { |
|
285 |
position: static !important; |
|
286 |
margin-top: -12px !important; |
|
287 |
width: unset !important; |
|
288 |
} |
|
289 |
|
|
290 |
.components-modal__screen-overlay { |
|
291 |
z-index: 999999; |
|
292 |
} |
|
293 |
|
|
294 |
.customize-control-sidebar_block_editor, |
|
295 |
.customize-widgets-layout__inspector, |
|
296 |
.customize-widgets-popover { |
|
297 |
box-sizing: border-box; |
|
298 |
} |
|
299 |
.customize-control-sidebar_block_editor *, |
|
300 |
.customize-control-sidebar_block_editor *::before, |
|
301 |
.customize-control-sidebar_block_editor *::after, |
|
302 |
.customize-widgets-layout__inspector *, |
|
303 |
.customize-widgets-layout__inspector *::before, |
|
304 |
.customize-widgets-layout__inspector *::after, |
|
305 |
.customize-widgets-popover *, |
|
306 |
.customize-widgets-popover *::before, |
|
307 |
.customize-widgets-popover *::after { |
|
308 |
box-sizing: inherit; |
|
309 |
} |