1 /** |
1 .wp-block-image.wp-block-image.is-selected .components-placeholder{ |
2 * Colors |
2 background-color:#fff; |
3 */ |
3 border:none; |
4 /** |
4 border-radius:2px; |
5 * Breakpoints & Media Queries |
5 box-shadow:inset 0 0 0 1px #1e1e1e; |
6 */ |
6 color:#1e1e1e; |
7 /** |
7 filter:none !important; |
8 * SCSS Variables. |
8 } |
9 * |
9 .wp-block-image.wp-block-image.is-selected .components-placeholder>svg{ |
10 * Please use variables from this sheet to ensure consistency across the UI. |
10 opacity:0; |
11 * Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
11 } |
12 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
12 .wp-block-image.wp-block-image.is-selected .components-placeholder .components-placeholder__illustration{ |
13 */ |
13 display:none; |
14 /** |
14 } |
15 * Colors |
15 .wp-block-image.wp-block-image .block-bindings-media-placeholder-message,.wp-block-image.wp-block-image.is-selected .components-placeholder:before{ |
16 */ |
16 opacity:0; |
17 /** |
17 } |
18 * Fonts & basic variables. |
18 .wp-block-image.wp-block-image.is-selected .block-bindings-media-placeholder-message{ |
19 */ |
19 opacity:1; |
20 /** |
20 } |
21 * Grid System. |
21 .wp-block-image.wp-block-image .components-button,.wp-block-image.wp-block-image .components-placeholder__instructions,.wp-block-image.wp-block-image .components-placeholder__label{ |
22 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
22 transition:none; |
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 figure.wp-block-image:not(.wp-block) { |
|
78 margin: 0; |
|
79 } |
23 } |
80 |
24 |
81 .wp-block-image { |
25 figure.wp-block-image:not(.wp-block){ |
82 position: relative; |
26 margin:0; |
83 } |
|
84 .wp-block-image .is-applying img, .wp-block-image.is-transient img { |
|
85 opacity: 0.3; |
|
86 } |
|
87 .wp-block-image figcaption img { |
|
88 display: inline; |
|
89 } |
|
90 .wp-block-image .components-spinner { |
|
91 position: absolute; |
|
92 top: 50%; |
|
93 right: 50%; |
|
94 margin-top: -9px; |
|
95 margin-right: -9px; |
|
96 } |
|
97 .wp-block-image:not(.is-style-rounded) > div:not(.components-placeholder) { |
|
98 border-radius: inherit; |
|
99 } |
27 } |
100 |
28 |
101 .wp-block-image .components-resizable-box__container { |
29 .wp-block-image{ |
102 display: inline-block; |
30 position:relative; |
103 } |
31 } |
104 .wp-block-image .components-resizable-box__container img { |
32 .wp-block-image .is-applying img,.wp-block-image.is-transient img{ |
105 display: block; |
33 opacity:.3; |
106 width: inherit; |
34 } |
107 height: inherit; |
35 .wp-block-image figcaption img{ |
|
36 display:inline; |
|
37 } |
|
38 .wp-block-image .components-spinner{ |
|
39 position:absolute; |
|
40 right:50%; |
|
41 top:50%; |
|
42 transform:translate(50%, -50%); |
108 } |
43 } |
109 |
44 |
110 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { |
45 .wp-block-image .components-resizable-box__container{ |
111 position: absolute; |
46 display:table; |
112 right: 0; |
|
113 left: 0; |
|
114 margin: -1px 0; |
|
115 } |
47 } |
116 @media (min-width: 600px) { |
48 .wp-block-image .components-resizable-box__container img{ |
117 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal { |
49 display:block; |
118 margin: -1px; |
50 height:inherit; |
|
51 width:inherit; |
|
52 } |
|
53 |
|
54 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{ |
|
55 left:0; |
|
56 margin:-1px 0; |
|
57 position:absolute; |
|
58 right:0; |
|
59 } |
|
60 @media (min-width:600px){ |
|
61 .block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{ |
|
62 margin:-1px; |
119 } |
63 } |
120 } |
64 } |
121 |
65 |
122 [data-align=wide] > .wp-block-image img, |
66 [data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{ |
123 [data-align=full] > .wp-block-image img { |
67 height:auto; |
124 height: auto; |
68 width:100%; |
125 width: 100%; |
|
126 } |
69 } |
127 |
70 |
128 .wp-block[data-align=left] > .wp-block-image, |
71 .wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{ |
129 .wp-block[data-align=center] > .wp-block-image, |
72 display:table; |
130 .wp-block[data-align=right] > .wp-block-image { |
|
131 display: table; |
|
132 } |
73 } |
133 .wp-block[data-align=left] > .wp-block-image > figcaption, |
74 .wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{ |
134 .wp-block[data-align=center] > .wp-block-image > figcaption, |
75 caption-side:bottom; |
135 .wp-block[data-align=right] > .wp-block-image > figcaption { |
76 display:table-caption; |
136 display: table-caption; |
|
137 caption-side: bottom; |
|
138 } |
77 } |
139 |
78 |
140 .wp-block[data-align=left] > .wp-block-image { |
79 .wp-block[data-align=left]>.wp-block-image{ |
141 margin-left: 1em; |
80 margin:.5em 0 .5em 1em; |
142 margin-right: 0; |
|
143 margin-top: 0.5em; |
|
144 margin-bottom: 0.5em; |
|
145 } |
81 } |
146 |
82 |
147 .wp-block[data-align=right] > .wp-block-image { |
83 .wp-block[data-align=right]>.wp-block-image{ |
148 margin-right: 1em; |
84 margin:.5em 1em .5em 0; |
149 margin-left: 0; |
|
150 margin-top: 0.5em; |
|
151 margin-bottom: 0.5em; |
|
152 } |
85 } |
153 |
86 |
154 .wp-block[data-align=center] > .wp-block-image { |
87 .wp-block[data-align=center]>.wp-block-image{ |
155 margin-right: auto; |
88 margin-left:auto; |
156 margin-left: auto; |
89 margin-right:auto; |
157 text-align: center; |
90 text-align:center; |
158 } |
91 } |
159 |
92 |
160 .wp-block-image__crop-area { |
93 .wp-block-image__crop-area{ |
161 position: relative; |
94 max-width:100%; |
162 max-width: 100%; |
95 overflow:hidden; |
163 width: 100%; |
96 position:relative; |
|
97 width:100%; |
|
98 } |
|
99 .wp-block-image__crop-area .reactEasyCrop_Container{ |
|
100 pointer-events:auto; |
|
101 } |
|
102 .wp-block-image__crop-area .reactEasyCrop_Container .reactEasyCrop_Image{ |
|
103 border:none; |
|
104 border-radius:0; |
164 } |
105 } |
165 |
106 |
166 .wp-block-image__crop-icon { |
107 .wp-block-image__crop-icon{ |
167 padding: 0 8px; |
108 align-items:center; |
168 min-width: 48px; |
109 display:flex; |
169 display: flex; |
110 justify-content:center; |
170 justify-content: center; |
111 min-width:48px; |
171 align-items: center; |
112 padding:0 8px; |
172 } |
113 } |
173 .wp-block-image__crop-icon svg { |
114 .wp-block-image__crop-icon svg{ |
174 fill: currentColor; |
115 fill:currentColor; |
175 } |
116 } |
176 |
117 |
177 .wp-block-image__zoom .components-popover__content { |
118 .wp-block-image__zoom .components-popover__content{ |
178 overflow: visible; |
119 min-width:260px; |
179 min-width: 260px; |
120 overflow:visible !important; |
180 } |
|
181 .wp-block-image__zoom .components-range-control { |
|
182 flex: 1; |
|
183 } |
|
184 .wp-block-image__zoom .components-base-control__field { |
|
185 display: flex; |
|
186 margin-bottom: 0; |
|
187 flex-direction: column; |
|
188 align-items: flex-start; |
|
189 } |
121 } |
190 |
122 |
191 .wp-block-image__aspect-ratio { |
123 .wp-block-image__toolbar_content_textarea{ |
192 height: 46px; |
124 width:250px; |
193 margin-bottom: -8px; |
|
194 display: flex; |
|
195 align-items: center; |
|
196 } |
125 } |
197 .wp-block-image__aspect-ratio .components-button { |
|
198 width: 36px; |
|
199 padding-right: 0; |
|
200 padding-left: 0; |
|
201 } |
|