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 |
*/ |
19
|
77 |
.wp-block[data-align=center] > .wp-block-site-logo, |
|
78 |
.wp-block-site-logo.aligncenter > div { |
|
79 |
display: table; |
18
|
80 |
margin-right: auto; |
|
81 |
margin-left: auto; |
|
82 |
} |
|
83 |
|
|
84 |
.wp-block-site-logo a { |
|
85 |
pointer-events: none; |
|
86 |
} |
|
87 |
.wp-block-site-logo .custom-logo-link { |
|
88 |
cursor: inherit; |
|
89 |
} |
|
90 |
.wp-block-site-logo .custom-logo-link:focus { |
|
91 |
box-shadow: none; |
|
92 |
} |
|
93 |
.wp-block-site-logo .custom-logo-link.is-transient img { |
|
94 |
opacity: 0.3; |
|
95 |
} |
|
96 |
.wp-block-site-logo img { |
|
97 |
display: block; |
19
|
98 |
height: auto; |
18
|
99 |
max-width: 100%; |
|
100 |
} |
19
|
101 |
|
|
102 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder, |
|
103 |
.wp-block-site-logo.wp-block-site-logo .components-resizable-box__container { |
|
104 |
border-radius: inherit; |
|
105 |
} |
|
106 |
.wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder { |
18
|
107 |
height: 120px; |
19
|
108 |
width: 120px; |
18
|
109 |
} |
19
|
110 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder { |
|
111 |
display: flex; |
|
112 |
justify-content: center; |
|
113 |
align-items: center; |
|
114 |
box-shadow: none; |
|
115 |
padding: 0; |
|
116 |
min-height: 48px; |
|
117 |
min-width: 48px; |
|
118 |
height: 100%; |
|
119 |
width: 100%; |
|
120 |
color: currentColor; |
|
121 |
background: transparent; |
18
|
122 |
} |
19
|
123 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-form-file-upload { |
18
|
124 |
display: none; |
|
125 |
} |
19
|
126 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__preview { |
18
|
127 |
position: absolute; |
|
128 |
top: 4px; |
|
129 |
left: 4px; |
|
130 |
bottom: 4px; |
|
131 |
right: 4px; |
|
132 |
background: rgba(255, 255, 255, 0.8); |
|
133 |
display: flex; |
|
134 |
align-items: center; |
|
135 |
justify-content: center; |
|
136 |
} |
19
|
137 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-drop-zone__content-text { |
18
|
138 |
display: none; |
19
|
139 |
} |
|
140 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder::before { |
|
141 |
content: ""; |
|
142 |
display: block; |
|
143 |
position: absolute; |
|
144 |
top: 0; |
|
145 |
left: 0; |
|
146 |
bottom: 0; |
|
147 |
right: 0; |
|
148 |
border: 1px dashed currentColor; |
|
149 |
opacity: 0.4; |
|
150 |
pointer-events: none; |
|
151 |
border-radius: inherit; |
|
152 |
} |
|
153 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__fieldset { |
|
154 |
width: auto; |
|
155 |
} |
|
156 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button { |
|
157 |
color: inherit; |
|
158 |
padding: 0; |
|
159 |
display: flex; |
|
160 |
justify-content: center; |
|
161 |
align-items: center; |
|
162 |
width: 48px; |
|
163 |
height: 48px; |
|
164 |
border-radius: 50%; |
|
165 |
position: relative; |
|
166 |
visibility: hidden; |
|
167 |
background: transparent; |
|
168 |
transition: all 0.1s linear; |
|
169 |
} |
|
170 |
@media (prefers-reduced-motion: reduce) { |
|
171 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button { |
|
172 |
transition-duration: 0s; |
|
173 |
transition-delay: 0s; |
|
174 |
} |
|
175 |
} |
|
176 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-button.components-button > svg { |
|
177 |
color: #fff; |
|
178 |
} |
|
179 |
.wp-block-site-logo.wp-block-site-logo .components-placeholder .components-placeholder__illustration { |
|
180 |
position: absolute; |
|
181 |
top: 0; |
|
182 |
left: 0; |
|
183 |
bottom: 0; |
|
184 |
right: 0; |
|
185 |
width: 100%; |
|
186 |
height: 100%; |
|
187 |
stroke: currentColor; |
|
188 |
stroke-dasharray: 3; |
|
189 |
opacity: 0.4; |
|
190 |
} |
|
191 |
.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button { |
|
192 |
background: var(--wp-admin-theme-color); |
|
193 |
border-color: var(--wp-admin-theme-color); |
|
194 |
border-style: solid; |
|
195 |
color: #fff; |
|
196 |
opacity: 1; |
|
197 |
visibility: visible; |
18
|
198 |
} |