16
|
1 |
/** |
|
2 |
* Colors |
|
3 |
*/ |
|
4 |
/** |
|
5 |
* Breakpoints & Media Queries |
|
6 |
*/ |
|
7 |
/** |
18
|
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. |
16
|
13 |
*/ |
|
14 |
/** |
18
|
15 |
* Colors |
16
|
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 |
/** |
18
|
34 |
* Block & Editor UI. |
16
|
35 |
*/ |
|
36 |
/** |
18
|
37 |
* Block paddings. |
|
38 |
*/ |
|
39 |
/** |
|
40 |
* React Native specific. |
|
41 |
* These variables do not appear to be used anywhere else. |
16
|
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 |
/** |
16
|
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; |
16
|
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 |
} |
16
|
91 |
|
18
|
92 |
.block-directory-block-ratings > span { |
|
93 |
display: flex; |
|
94 |
} |
|
95 |
.block-directory-block-ratings svg { |
|
96 |
fill: #1e1e1e; |
|
97 |
margin-right: -4px; |
|
98 |
} |
|
99 |
.block-directory-block-ratings .block-directory-block-ratings__star-empty { |
|
100 |
fill: #ccc; |
|
101 |
} |
16
|
102 |
|
|
103 |
.block-directory-compact-list { |
|
104 |
margin: 0; |
18
|
105 |
list-style: none; |
|
106 |
} |
16
|
107 |
|
|
108 |
.block-directory-compact-list__item { |
|
109 |
display: flex; |
|
110 |
flex-direction: row; |
|
111 |
align-items: center; |
18
|
112 |
margin-bottom: 16px; |
|
113 |
} |
|
114 |
.block-directory-compact-list__item:last-child { |
|
115 |
margin-bottom: 0; |
|
116 |
} |
16
|
117 |
|
|
118 |
.block-directory-compact-list__item-details { |
18
|
119 |
margin-right: 8px; |
|
120 |
} |
16
|
121 |
|
|
122 |
.block-directory-compact-list__item-title { |
18
|
123 |
font-weight: 500; |
|
124 |
} |
16
|
125 |
|
|
126 |
.block-directory-compact-list__item-author { |
18
|
127 |
color: #757575; |
|
128 |
font-size: 11px; |
|
129 |
} |
16
|
130 |
|
|
131 |
.block-directory-downloadable-block-icon { |
18
|
132 |
min-width: 54px; |
|
133 |
width: 54px; |
|
134 |
height: 54px; |
|
135 |
vertical-align: middle; |
|
136 |
border: 1px solid #ddd; |
|
137 |
} |
16
|
138 |
|
18
|
139 |
.block-directory-downloadable-block-list-item { |
|
140 |
padding: 12px; |
|
141 |
width: 100%; |
|
142 |
height: auto; |
|
143 |
text-align: right; |
|
144 |
display: grid; |
|
145 |
grid-template-columns: auto 1fr; |
|
146 |
} |
|
147 |
.block-directory-downloadable-block-list-item:hover { |
|
148 |
box-shadow: 0 0 0 2px var(--wp-admin-theme-color); |
|
149 |
} |
|
150 |
.block-directory-downloadable-block-list-item.is-busy { |
|
151 |
background: transparent; |
|
152 |
} |
|
153 |
.block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author { |
|
154 |
border: 0; |
|
155 |
clip: rect(1px, 1px, 1px, 1px); |
|
156 |
-webkit-clip-path: inset(50%); |
|
157 |
clip-path: inset(50%); |
|
158 |
height: 1px; |
|
159 |
margin: -1px; |
|
160 |
overflow: hidden; |
|
161 |
padding: 0; |
|
162 |
position: absolute; |
|
163 |
width: 1px; |
|
164 |
word-wrap: normal !important; |
|
165 |
} |
|
166 |
.block-directory-downloadable-block-list-item:disabled, .block-directory-downloadable-block-list-item[aria-disabled] { |
|
167 |
opacity: 1; |
|
168 |
} |
16
|
169 |
|
18
|
170 |
.block-directory-downloadable-block-list-item__icon { |
|
171 |
position: relative; |
|
172 |
margin-left: 16px; |
|
173 |
align-self: flex-start; |
|
174 |
} |
|
175 |
.block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner { |
|
176 |
position: absolute; |
|
177 |
top: 0; |
|
178 |
left: 0; |
|
179 |
bottom: 0; |
|
180 |
right: 0; |
|
181 |
background: rgba(255, 255, 255, 0.75); |
16
|
182 |
display: flex; |
|
183 |
align-items: center; |
18
|
184 |
justify-content: center; |
|
185 |
} |
16
|
186 |
|
18
|
187 |
.block-directory-block-ratings { |
|
188 |
display: block; |
|
189 |
margin-top: 4px; |
|
190 |
} |
16
|
191 |
|
18
|
192 |
.block-directory-downloadable-block-list-item__details { |
|
193 |
color: #1e1e1e; |
|
194 |
} |
16
|
195 |
|
18
|
196 |
.block-directory-downloadable-block-list-item__title { |
|
197 |
display: block; |
|
198 |
font-weight: 600; |
|
199 |
} |
16
|
200 |
|
18
|
201 |
.block-directory-downloadable-block-list-item__author { |
|
202 |
display: block; |
|
203 |
margin-top: 4px; |
|
204 |
font-weight: normal; |
|
205 |
} |
16
|
206 |
|
18
|
207 |
.block-directory-downloadable-block-list-item__desc { |
|
208 |
display: block; |
|
209 |
margin-top: 8px; |
|
210 |
} |
16
|
211 |
|
|
212 |
.block-directory-downloadable-block-notice { |
18
|
213 |
margin: 8px 0 0; |
|
214 |
color: #cc1818; |
|
215 |
} |
16
|
216 |
|
|
217 |
.block-directory-downloadable-block-notice__content { |
|
218 |
padding-left: 12px; |
18
|
219 |
margin-bottom: 8px; |
|
220 |
} |
16
|
221 |
|
18
|
222 |
.block-directory-downloadable-blocks-panel { |
16
|
223 |
padding: 16px; |
18
|
224 |
} |
|
225 |
.block-directory-downloadable-blocks-panel.has-blocks-loading { |
16
|
226 |
font-style: normal; |
|
227 |
padding: 0; |
|
228 |
margin: 112px 0; |
|
229 |
text-align: center; |
18
|
230 |
color: #757575; |
|
231 |
} |
|
232 |
.block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner { |
|
233 |
float: inherit; |
|
234 |
} |
|
235 |
|
|
236 |
.block-directory-downloadable-blocks-panel__no-local { |
|
237 |
margin: 48px 0; |
|
238 |
padding: 0 64px; |
|
239 |
color: #757575; |
|
240 |
text-align: center; |
|
241 |
} |
|
242 |
|
|
243 |
.block-directory-downloadable-blocks-panel__title { |
|
244 |
margin: 0 0 4px; |
|
245 |
font-size: 14px; |
|
246 |
} |
|
247 |
|
|
248 |
.block-directory-downloadable-blocks-panel__description { |
|
249 |
margin-top: 0; |
|
250 |
} |
|
251 |
|
|
252 |
.block-directory-downloadable-blocks-panel button { |
|
253 |
margin-top: 4px; |
|
254 |
} |
16
|
255 |
|
|
256 |
.installed-blocks-pre-publish-panel__copy { |
18
|
257 |
margin-top: 0; |
|
258 |
} |