1 /** |
1 .wp-block-post-featured-image .block-editor-media-placeholder{ |
2 * Colors |
2 -webkit-backdrop-filter:none; |
3 */ |
3 backdrop-filter:none; |
4 /** |
4 z-index:1; |
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 /** |
|
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 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder, |
|
78 .wp-block-post-featured-image.wp-block-post-featured-image .components-resizable-box__container { |
|
79 border-radius: inherit; |
|
80 } |
5 } |
81 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder, |
6 .wp-block-post-featured-image .components-placeholder,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder{ |
82 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder { |
7 align-items:center; |
83 justify-content: center; |
8 display:flex; |
84 align-items: center; |
9 justify-content:center; |
85 box-shadow: none; |
10 min-height:200px; |
86 padding: 0; |
11 padding:0; |
87 color: currentColor; |
|
88 background: transparent; |
|
89 min-height: 200px; |
|
90 } |
12 } |
91 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload, |
13 .wp-block-post-featured-image .components-placeholder .components-form-file-upload,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-form-file-upload{ |
92 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-form-file-upload { |
14 display:none; |
93 display: none; |
|
94 } |
15 } |
95 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview, |
16 .wp-block-post-featured-image .components-placeholder .components-button,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button{ |
96 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview { |
17 align-items:center; |
97 position: absolute; |
18 background:var(--wp-admin-theme-color); |
98 top: 4px; |
19 border-color:var(--wp-admin-theme-color); |
99 left: 4px; |
20 border-radius:50%; |
100 bottom: 4px; |
21 border-style:solid; |
101 right: 4px; |
22 color:#fff; |
102 background: rgba(255, 255, 255, 0.8); |
23 display:flex; |
103 display: flex; |
24 height:48px; |
104 align-items: center; |
25 justify-content:center; |
105 justify-content: center; |
26 margin:auto; |
|
27 padding:0; |
|
28 position:relative; |
|
29 width:48px; |
106 } |
30 } |
107 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before, |
31 .wp-block-post-featured-image .components-placeholder .components-button>svg,.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button>svg{ |
108 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before { |
32 color:inherit; |
109 content: ""; |
|
110 display: block; |
|
111 position: absolute; |
|
112 top: 0; |
|
113 left: 0; |
|
114 bottom: 0; |
|
115 right: 0; |
|
116 border: 1px dashed currentColor; |
|
117 opacity: 0.4; |
|
118 pointer-events: none; |
|
119 border-radius: inherit; |
|
120 } |
33 } |
121 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset, |
34 .wp-block-post-featured-image .components-placeholder:where(.has-border-color),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where(.has-border-color),.wp-block-post-featured-image img:where(.has-border-color){ |
122 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset { |
35 border-style:solid; |
123 width: auto; |
|
124 } |
36 } |
125 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button, |
37 .wp-block-post-featured-image .components-placeholder:where([style*=border-top-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-color]),.wp-block-post-featured-image img:where([style*=border-top-color]){ |
126 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button { |
38 border-top-style:solid; |
127 color: inherit; |
|
128 padding: 0; |
|
129 display: flex; |
|
130 justify-content: center; |
|
131 align-items: center; |
|
132 width: 48px; |
|
133 height: 48px; |
|
134 border-radius: 50%; |
|
135 position: relative; |
|
136 visibility: hidden; |
|
137 background: transparent; |
|
138 transition: all 0.1s linear; |
|
139 } |
39 } |
140 @media (prefers-reduced-motion: reduce) { |
40 .wp-block-post-featured-image .components-placeholder:where([style*=border-right-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-color]),.wp-block-post-featured-image img:where([style*=border-right-color]){ |
141 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button, |
41 border-left-style:solid; |
142 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button { |
|
143 transition-duration: 0s; |
|
144 transition-delay: 0s; |
|
145 } |
|
146 } |
42 } |
147 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg, |
43 .wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-color]),.wp-block-post-featured-image img:where([style*=border-bottom-color]){ |
148 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg { |
44 border-bottom-style:solid; |
149 color: #fff; |
|
150 } |
45 } |
151 .wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration, |
46 .wp-block-post-featured-image .components-placeholder:where([style*=border-left-color]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-color]),.wp-block-post-featured-image img:where([style*=border-left-color]){ |
152 .wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration { |
47 border-right-style:solid; |
153 position: absolute; |
|
154 top: 0; |
|
155 left: 0; |
|
156 bottom: 0; |
|
157 right: 0; |
|
158 width: 100%; |
|
159 height: 100%; |
|
160 stroke: currentColor; |
|
161 stroke-dasharray: 3; |
|
162 opacity: 0.4; |
|
163 } |
48 } |
164 .wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder { |
49 .wp-block-post-featured-image .components-placeholder:where([style*=border-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-width]),.wp-block-post-featured-image img:where([style*=border-width]){ |
165 min-height: 48px; |
50 border-style:solid; |
166 min-width: 48px; |
|
167 height: 100%; |
|
168 width: 100%; |
|
169 } |
51 } |
170 .wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button { |
52 .wp-block-post-featured-image .components-placeholder:where([style*=border-top-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-top-width]),.wp-block-post-featured-image img:where([style*=border-top-width]){ |
171 background: var(--wp-admin-theme-color); |
53 border-top-style:solid; |
172 border-color: var(--wp-admin-theme-color); |
54 } |
173 border-style: solid; |
55 .wp-block-post-featured-image .components-placeholder:where([style*=border-right-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-right-width]),.wp-block-post-featured-image img:where([style*=border-right-width]){ |
174 color: #fff; |
56 border-left-style:solid; |
175 opacity: 1; |
57 } |
176 visibility: visible; |
58 .wp-block-post-featured-image .components-placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-bottom-width]),.wp-block-post-featured-image img:where([style*=border-bottom-width]){ |
|
59 border-bottom-style:solid; |
|
60 } |
|
61 .wp-block-post-featured-image .components-placeholder:where([style*=border-left-width]),.wp-block-post-featured-image .wp-block-post-featured-image__placeholder:where([style*=border-left-width]),.wp-block-post-featured-image img:where([style*=border-left-width]){ |
|
62 border-right-style:solid; |
|
63 } |
|
64 .wp-block-post-featured-image[style*=height] .components-placeholder{ |
|
65 height:100%; |
|
66 min-height:48px; |
|
67 min-width:48px; |
|
68 width:100%; |
|
69 } |
|
70 .wp-block-post-featured-image>a{ |
|
71 cursor:default; |
|
72 } |
|
73 .wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-button,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__instructions,.wp-block-post-featured-image.is-selected .components-placeholder.has-illustration .components-placeholder__label{ |
|
74 opacity:1; |
|
75 pointer-events:auto; |
|
76 } |
|
77 .wp-block-post-featured-image.is-transient{ |
|
78 position:relative; |
|
79 } |
|
80 .wp-block-post-featured-image.is-transient img{ |
|
81 opacity:.3; |
|
82 } |
|
83 .wp-block-post-featured-image.is-transient .components-spinner{ |
|
84 position:absolute; |
|
85 right:50%; |
|
86 top:50%; |
|
87 transform:translate(50%, -50%); |
177 } |
88 } |
178 |
89 |
179 div[data-type="core/post-featured-image"] img { |
90 div[data-type="core/post-featured-image"] img{ |
180 max-width: 100%; |
91 display:block; |
181 height: auto; |
92 height:auto; |
182 display: block; |
93 max-width:100%; |
183 } |
94 } |