1 /** |
1 :root{ |
2 * Colors |
2 --wp-admin-theme-color:#007cba; |
3 */ |
3 --wp-admin-theme-color--rgb:0, 124, 186; |
4 /** |
4 --wp-admin-theme-color-darker-10:#006ba1; |
5 * Breakpoints & Media Queries |
5 --wp-admin-theme-color-darker-10--rgb:0, 107, 161; |
6 */ |
6 --wp-admin-theme-color-darker-20:#005a87; |
7 /** |
7 --wp-admin-theme-color-darker-20--rgb:0, 90, 135; |
8 * SCSS Variables. |
8 --wp-admin-border-width-focus:2px; |
9 * |
9 --wp-block-synced-color:#7a00df; |
10 * Please use variables from this sheet to ensure consistency across the UI. |
10 --wp-block-synced-color--rgb:122, 0, 223; |
11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
11 --wp-bound-block-color:var(--wp-block-synced-color); |
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 /** |
|
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 /** |
|
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; |
|
79 --wp-admin-theme-color--rgb: 0, 124, 186; |
|
80 --wp-admin-theme-color-darker-10: #006ba1; |
|
81 --wp-admin-theme-color-darker-10--rgb: 0, 107, 161; |
|
82 --wp-admin-theme-color-darker-20: #005a87; |
|
83 --wp-admin-theme-color-darker-20--rgb: 0, 90, 135; |
|
84 --wp-admin-border-width-focus: 2px; |
|
85 } |
12 } |
86 @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { |
13 @media (min-resolution:192dpi){ |
87 :root { |
14 :root{ |
88 --wp-admin-border-width-focus: 1.5px; |
15 --wp-admin-border-width-focus:1.5px; |
89 } |
16 } |
90 } |
17 } |
91 |
18 |
92 .block-directory-block-ratings > span { |
19 .block-directory-block-ratings>span{ |
93 display: flex; |
20 display:flex; |
94 } |
21 } |
95 .block-directory-block-ratings svg { |
22 .block-directory-block-ratings svg{ |
96 fill: #1e1e1e; |
23 fill:#1e1e1e; |
97 margin-right: -4px; |
24 margin-right:-4px; |
98 } |
25 } |
99 .block-directory-block-ratings .block-directory-block-ratings__star-empty { |
26 .block-directory-block-ratings .block-directory-block-ratings__star-empty{ |
100 fill: #ccc; |
27 fill:#ccc; |
101 } |
28 } |
102 |
29 |
103 .block-directory-compact-list { |
30 .block-directory-compact-list{ |
104 margin: 0; |
31 list-style:none; |
105 list-style: none; |
32 margin:0; |
106 } |
33 } |
107 |
34 |
108 .block-directory-compact-list__item { |
35 .block-directory-compact-list__item{ |
109 display: flex; |
36 align-items:center; |
110 flex-direction: row; |
37 display:flex; |
111 align-items: center; |
38 flex-direction:row; |
112 margin-bottom: 16px; |
39 margin-bottom:16px; |
113 } |
40 } |
114 .block-directory-compact-list__item:last-child { |
41 .block-directory-compact-list__item:last-child{ |
115 margin-bottom: 0; |
42 margin-bottom:0; |
116 } |
43 } |
117 |
44 |
118 .block-directory-compact-list__item-details { |
45 .block-directory-compact-list__item-details{ |
119 margin-right: 8px; |
46 margin-right:8px; |
120 } |
47 } |
121 |
48 |
122 .block-directory-compact-list__item-title { |
49 .block-directory-compact-list__item-title{ |
123 font-weight: 500; |
50 font-weight:500; |
124 } |
51 } |
125 |
52 |
126 .block-directory-compact-list__item-author { |
53 .block-directory-compact-list__item-author{ |
127 color: #757575; |
54 color:#757575; |
128 font-size: 11px; |
55 font-size:11px; |
129 } |
56 } |
130 |
57 |
131 .block-directory-downloadable-block-icon { |
58 .block-directory-downloadable-block-icon{ |
132 min-width: 54px; |
59 border:1px solid #ddd; |
133 width: 54px; |
60 height:54px; |
134 height: 54px; |
61 min-width:54px; |
135 vertical-align: middle; |
62 vertical-align:middle; |
136 border: 1px solid #ddd; |
63 width:54px; |
137 } |
64 } |
138 |
65 |
139 .block-directory-downloadable-block-list-item { |
66 .block-directory-downloadable-block-list-item{ |
140 padding: 12px; |
67 display:grid; |
141 width: 100%; |
68 grid-template-columns:auto 1fr; |
142 height: auto; |
69 height:auto; |
143 text-align: right; |
70 padding:12px; |
144 display: grid; |
71 position:relative; |
145 grid-template-columns: auto 1fr; |
72 text-align:right; |
|
73 width:100%; |
146 } |
74 } |
147 .block-directory-downloadable-block-list-item:hover { |
75 .block-directory-downloadable-block-list-item:hover{ |
148 box-shadow: 0 0 0 2px var(--wp-admin-theme-color); |
76 box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); |
|
77 outline:2px solid #0000; |
149 } |
78 } |
150 .block-directory-downloadable-block-list-item.is-busy { |
79 .block-directory-downloadable-block-list-item.is-busy{ |
151 background: transparent; |
80 background:#0000; |
152 } |
81 } |
153 .block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author { |
82 .block-directory-downloadable-block-list-item.is-busy .block-directory-downloadable-block-list-item__author{ |
154 border: 0; |
83 border:0; |
155 clip: rect(1px, 1px, 1px, 1px); |
84 clip:rect(1px, 1px, 1px, 1px); |
156 -webkit-clip-path: inset(50%); |
85 clip-path:inset(50%); |
157 clip-path: inset(50%); |
86 height:1px; |
158 height: 1px; |
87 margin:-1px; |
159 margin: -1px; |
88 overflow:hidden; |
160 overflow: hidden; |
89 padding:0; |
161 padding: 0; |
90 position:absolute; |
162 position: absolute; |
91 width:1px; |
163 width: 1px; |
92 word-wrap:normal !important; |
164 word-wrap: normal !important; |
|
165 } |
93 } |
166 .block-directory-downloadable-block-list-item:disabled, .block-directory-downloadable-block-list-item[aria-disabled] { |
94 .block-directory-downloadable-block-list-item:disabled,.block-directory-downloadable-block-list-item[aria-disabled]{ |
167 opacity: 1; |
95 opacity:1; |
168 } |
96 } |
169 |
97 |
170 .block-directory-downloadable-block-list-item__icon { |
98 .block-directory-downloadable-block-list-item__icon{ |
171 position: relative; |
99 align-self:flex-start; |
172 margin-left: 16px; |
100 margin-left:16px; |
173 align-self: flex-start; |
101 position:relative; |
174 } |
102 } |
175 .block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner { |
103 .block-directory-downloadable-block-list-item__icon .block-directory-downloadable-block-list-item__spinner{ |
176 position: absolute; |
104 align-items:center; |
177 top: 0; |
105 background:#ffffffbf; |
178 left: 0; |
106 bottom:0; |
179 bottom: 0; |
107 display:flex; |
180 right: 0; |
108 justify-content:center; |
181 background: rgba(255, 255, 255, 0.75); |
109 left:0; |
182 display: flex; |
110 position:absolute; |
183 align-items: center; |
111 right:0; |
184 justify-content: center; |
112 top:0; |
185 } |
113 } |
186 |
114 |
187 .block-directory-block-ratings { |
115 .block-directory-block-ratings{ |
188 display: block; |
116 display:block; |
189 margin-top: 4px; |
117 margin-top:4px; |
190 } |
118 } |
191 |
119 |
192 .block-directory-downloadable-block-list-item__details { |
120 .block-directory-downloadable-block-list-item__details{ |
193 color: #1e1e1e; |
121 color:#1e1e1e; |
194 } |
122 } |
195 |
123 |
196 .block-directory-downloadable-block-list-item__title { |
124 .block-directory-downloadable-block-list-item__title{ |
197 display: block; |
125 display:block; |
198 font-weight: 600; |
126 font-weight:600; |
199 } |
127 } |
200 |
128 |
201 .block-directory-downloadable-block-list-item__author { |
129 .block-directory-downloadable-block-list-item__author{ |
202 display: block; |
130 display:block; |
203 margin-top: 4px; |
131 font-weight:400; |
204 font-weight: normal; |
132 margin-top:4px; |
205 } |
133 } |
206 |
134 |
207 .block-directory-downloadable-block-list-item__desc { |
135 .block-directory-downloadable-block-list-item__desc{ |
208 display: block; |
136 display:block; |
209 margin-top: 8px; |
137 margin-top:8px; |
210 } |
138 } |
211 |
139 |
212 .block-directory-downloadable-block-notice { |
140 .block-directory-downloadable-block-notice{ |
213 margin: 8px 0 0; |
141 color:#cc1818; |
214 color: #cc1818; |
142 margin:8px 0 0; |
215 } |
143 } |
216 |
144 |
217 .block-directory-downloadable-block-notice__content { |
145 .block-directory-downloadable-block-notice__content{ |
218 padding-left: 12px; |
146 margin-bottom:8px; |
219 margin-bottom: 8px; |
147 padding-left:12px; |
220 } |
148 } |
221 |
149 |
222 .block-directory-downloadable-blocks-panel { |
150 .block-directory-downloadable-blocks-panel{ |
223 padding: 16px; |
151 padding:16px; |
224 } |
152 } |
225 .block-directory-downloadable-blocks-panel.has-blocks-loading { |
153 .block-directory-downloadable-blocks-panel.has-blocks-loading{ |
226 font-style: normal; |
154 color:#757575; |
227 padding: 0; |
155 font-style:normal; |
228 margin: 112px 0; |
156 margin:112px 0; |
229 text-align: center; |
157 padding:0; |
230 color: #757575; |
158 text-align:center; |
231 } |
159 } |
232 .block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner { |
160 .block-directory-downloadable-blocks-panel.has-blocks-loading .components-spinner{ |
233 float: inherit; |
161 float:inherit; |
234 } |
162 } |
235 |
163 |
236 .block-directory-downloadable-blocks-panel__no-local { |
164 .block-directory-downloadable-blocks-panel__no-local{ |
237 margin: 48px 0; |
165 color:#757575; |
238 padding: 0 64px; |
166 margin:48px 0; |
239 color: #757575; |
167 padding:0 64px; |
240 text-align: center; |
168 text-align:center; |
241 } |
169 } |
242 |
170 |
243 .block-directory-downloadable-blocks-panel__title { |
171 .block-directory-downloadable-blocks-panel__title{ |
244 margin: 0 0 4px; |
172 font-size:14px; |
245 font-size: 14px; |
173 margin:0 0 4px; |
246 } |
174 } |
247 |
175 |
248 .block-directory-downloadable-blocks-panel__description { |
176 .block-directory-downloadable-blocks-panel__description{ |
249 margin-top: 0; |
177 margin-top:0; |
250 } |
178 } |
251 |
179 |
252 .block-directory-downloadable-blocks-panel button { |
180 .block-directory-downloadable-blocks-panel button{ |
253 margin-top: 4px; |
181 margin-top:4px; |
254 } |
182 } |
255 |
183 |
256 .installed-blocks-pre-publish-panel__copy { |
184 .installed-blocks-pre-publish-panel__copy{ |
257 margin-top: 0; |
185 margin-top:0; |
258 } |
186 } |