@wordpress/block-library 9.25.0 → 9.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/avatar/edit.js +84 -39
- package/build/avatar/edit.js.map +1 -1
- package/build/avatar/user-control.js +32 -17
- package/build/avatar/user-control.js.map +1 -1
- package/build/embed/variations.js +0 -10
- package/build/embed/variations.js.map +1 -1
- package/build/form/edit.js +0 -1
- package/build/form/edit.js.map +1 -1
- package/build/form/index.js +3 -3
- package/build/form/index.js.map +1 -1
- package/build/form-input/index.js +2 -1
- package/build/form-input/index.js.map +1 -1
- package/build/form-submission-notification/index.js +2 -1
- package/build/form-submission-notification/index.js.map +1 -1
- package/build/form-submit-button/index.js +2 -1
- package/build/form-submit-button/index.js.map +1 -1
- package/build/image/image.js +1 -0
- package/build/image/image.js.map +1 -1
- package/build/image/view.js +0 -3
- package/build/image/view.js.map +1 -1
- package/build/navigation-link/edit.js +11 -0
- package/build/navigation-link/edit.js.map +1 -1
- package/build/post-author/edit.js +75 -18
- package/build/post-author/edit.js.map +1 -1
- package/build/post-navigation-link/edit.js +72 -33
- package/build/post-navigation-link/edit.js.map +1 -1
- package/build/site-logo/edit.js +53 -19
- package/build/site-logo/edit.js.map +1 -1
- package/build/social-link/edit.js +21 -5
- package/build/social-link/edit.js.map +1 -1
- package/build/social-link/edit.native.js +13 -5
- package/build/social-link/edit.native.js.map +1 -1
- package/build/social-link/social-list.js +17 -25
- package/build/social-link/social-list.js.map +1 -1
- package/build/social-links/edit.js +8 -5
- package/build/social-links/edit.js.map +1 -1
- package/build/video/tracks-editor.js +23 -9
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/avatar/edit.js +83 -38
- package/build-module/avatar/edit.js.map +1 -1
- package/build-module/avatar/user-control.js +33 -18
- package/build-module/avatar/user-control.js.map +1 -1
- package/build-module/embed/variations.js +0 -10
- package/build-module/embed/variations.js.map +1 -1
- package/build-module/form/edit.js +0 -1
- package/build-module/form/edit.js.map +1 -1
- package/build-module/form/index.js +3 -3
- package/build-module/form/index.js.map +1 -1
- package/build-module/form-input/index.js +2 -1
- package/build-module/form-input/index.js.map +1 -1
- package/build-module/form-submission-notification/index.js +2 -1
- package/build-module/form-submission-notification/index.js.map +1 -1
- package/build-module/form-submit-button/index.js +2 -1
- package/build-module/form-submit-button/index.js.map +1 -1
- package/build-module/image/image.js +1 -0
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/view.js +0 -3
- package/build-module/image/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +11 -0
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/post-author/edit.js +76 -19
- package/build-module/post-author/edit.js.map +1 -1
- package/build-module/post-navigation-link/edit.js +73 -34
- package/build-module/post-navigation-link/edit.js.map +1 -1
- package/build-module/site-logo/edit.js +54 -20
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/social-link/edit.js +24 -8
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/social-link/edit.native.js +15 -6
- package/build-module/social-link/edit.native.js.map +1 -1
- package/build-module/social-link/social-list.js +16 -21
- package/build-module/social-link/social-list.js.map +1 -1
- package/build-module/social-links/edit.js +8 -5
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +24 -10
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/calendar/style-rtl.css +7 -7
- package/build-style/calendar/style.css +7 -7
- package/build-style/comments-pagination/editor-rtl.css +0 -12
- package/build-style/comments-pagination/editor.css +0 -14
- package/build-style/comments-pagination/style-rtl.css +0 -7
- package/build-style/comments-pagination/style.css +0 -9
- package/build-style/editor-rtl.css +0 -17
- package/build-style/editor.css +0 -19
- package/build-style/navigation/style-rtl.css +4 -0
- package/build-style/navigation/style.css +4 -0
- package/build-style/style-rtl.css +11 -14
- package/build-style/style.css +11 -16
- package/package.json +35 -35
- package/src/avatar/edit.js +99 -51
- package/src/avatar/user-control.js +34 -29
- package/src/calendar/style.scss +10 -10
- package/src/comments-pagination/editor.scss +0 -15
- package/src/comments-pagination/style.scss +0 -8
- package/src/editor.scss +0 -1
- package/src/embed/variations.js +0 -8
- package/src/form/block.json +1 -2
- package/src/form/edit.js +0 -1
- package/src/form/index.js +1 -0
- package/src/form-input/index.js +1 -0
- package/src/form-submission-notification/index.js +1 -0
- package/src/form-submit-button/index.js +1 -0
- package/src/image/image.js +1 -0
- package/src/image/index.php +4 -1
- package/src/image/view.js +0 -3
- package/src/navigation/style.scss +8 -0
- package/src/navigation-link/edit.js +14 -1
- package/src/post-author/edit.js +91 -27
- package/src/post-navigation-link/edit.js +96 -51
- package/src/site-logo/edit.js +69 -26
- package/src/social-link/edit.js +18 -7
- package/src/social-link/edit.native.js +10 -4
- package/src/social-link/index.php +13 -0
- package/src/social-link/social-list.js +15 -20
- package/src/social-links/edit.js +6 -7
- package/src/video/tracks-editor.js +18 -6
- package/build-style/post-author/editor-rtl.css +0 -140
- package/build-style/post-author/editor.css +0 -140
- package/src/post-author/editor.scss +0 -7
package/src/social-link/edit.js
CHANGED
|
@@ -7,8 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
9
|
import { DELETE, BACKSPACE, ENTER } from '@wordpress/keycodes';
|
|
10
|
-
import { useDispatch } from '@wordpress/data';
|
|
11
|
-
|
|
10
|
+
import { useDispatch, useSelect } from '@wordpress/data';
|
|
12
11
|
import {
|
|
13
12
|
BlockControls,
|
|
14
13
|
InspectorControls,
|
|
@@ -20,6 +19,7 @@ import {
|
|
|
20
19
|
} from '@wordpress/block-editor';
|
|
21
20
|
import { useState, useRef } from '@wordpress/element';
|
|
22
21
|
import {
|
|
22
|
+
Icon,
|
|
23
23
|
Button,
|
|
24
24
|
Dropdown,
|
|
25
25
|
TextControl,
|
|
@@ -31,11 +31,12 @@ import {
|
|
|
31
31
|
import { useMergeRefs } from '@wordpress/compose';
|
|
32
32
|
import { __ } from '@wordpress/i18n';
|
|
33
33
|
import { keyboardReturn } from '@wordpress/icons';
|
|
34
|
+
import { store as blocksStore } from '@wordpress/blocks';
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
37
|
* Internal dependencies
|
|
37
38
|
*/
|
|
38
|
-
import {
|
|
39
|
+
import { getSocialService } from './social-list';
|
|
39
40
|
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
40
41
|
|
|
41
42
|
const SocialLinkURLPopover = ( {
|
|
@@ -108,6 +109,7 @@ const SocialLinkEdit = ( {
|
|
|
108
109
|
isSelected,
|
|
109
110
|
setAttributes,
|
|
110
111
|
clientId,
|
|
112
|
+
name,
|
|
111
113
|
} ) => {
|
|
112
114
|
const { url, service, label = '', rel } = attributes;
|
|
113
115
|
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
@@ -138,8 +140,17 @@ const SocialLinkEdit = ( {
|
|
|
138
140
|
const [ popoverAnchor, setPopoverAnchor ] = useState( null );
|
|
139
141
|
const isContentOnlyMode = useBlockEditingMode() === 'contentOnly';
|
|
140
142
|
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
+
const { activeVariation } = useSelect(
|
|
144
|
+
( select ) => {
|
|
145
|
+
const { getActiveBlockVariation } = select( blocksStore );
|
|
146
|
+
return {
|
|
147
|
+
activeVariation: getActiveBlockVariation( name, attributes ),
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
[ name, attributes ]
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
const { icon, label: socialLinkName } = getSocialService( activeVariation );
|
|
143
154
|
// The initial label (ie. the link text) is an empty string.
|
|
144
155
|
// We want to prevent empty links so that the link text always fallbacks to
|
|
145
156
|
// the social name, even when users enter and save an empty string or only
|
|
@@ -167,7 +178,7 @@ const SocialLinkEdit = ( {
|
|
|
167
178
|
// to edit this attribute.
|
|
168
179
|
<BlockControls group="other">
|
|
169
180
|
<Dropdown
|
|
170
|
-
popoverProps={ {
|
|
181
|
+
popoverProps={ { placement: 'bottom-start' } }
|
|
171
182
|
renderToggle={ ( { isOpen, onToggle } ) => (
|
|
172
183
|
<ToolbarButton
|
|
173
184
|
onClick={ onToggle }
|
|
@@ -258,7 +269,7 @@ const SocialLinkEdit = ( {
|
|
|
258
269
|
*/
|
|
259
270
|
/* eslint-disable jsx-a11y/no-redundant-roles */ }
|
|
260
271
|
<button aria-haspopup="dialog" { ...blockProps } role="button">
|
|
261
|
-
<
|
|
272
|
+
<Icon icon={ icon } />
|
|
262
273
|
<span
|
|
263
274
|
className={ clsx( 'wp-block-social-link-label', {
|
|
264
275
|
'screen-reader-text': ! showLabels,
|
|
@@ -20,10 +20,12 @@ import { compose } from '@wordpress/compose';
|
|
|
20
20
|
import { __, sprintf } from '@wordpress/i18n';
|
|
21
21
|
import { link, Icon } from '@wordpress/icons';
|
|
22
22
|
import { withSelect } from '@wordpress/data';
|
|
23
|
+
import { store as blocksStore } from '@wordpress/blocks';
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Internal dependencies
|
|
25
27
|
*/
|
|
26
|
-
import {
|
|
28
|
+
import { getSocialService } from './social-list';
|
|
27
29
|
import styles from './editor.scss';
|
|
28
30
|
|
|
29
31
|
const DEFAULT_ACTIVE_ICON_STYLES = {
|
|
@@ -54,6 +56,7 @@ const SocialLinkEdit = ( {
|
|
|
54
56
|
isSelected,
|
|
55
57
|
onFocus,
|
|
56
58
|
name,
|
|
59
|
+
activeVariation,
|
|
57
60
|
} ) => {
|
|
58
61
|
const { url, service = name } = attributes;
|
|
59
62
|
const [ isLinkSheetVisible, setIsLinkSheetVisible ] = useState( false );
|
|
@@ -64,8 +67,7 @@ const SocialLinkEdit = ( {
|
|
|
64
67
|
DEFAULT_ACTIVE_ICON_STYLES;
|
|
65
68
|
const animatedValue = useRef( new Animated.Value( 0 ) ).current;
|
|
66
69
|
|
|
67
|
-
const
|
|
68
|
-
const socialLinkName = getNameBySite( service );
|
|
70
|
+
const { icon, label: socialLinkName } = getSocialService( activeVariation );
|
|
69
71
|
|
|
70
72
|
// When new social icon is added link sheet is opened automatically.
|
|
71
73
|
useEffect( () => {
|
|
@@ -190,7 +192,7 @@ const SocialLinkEdit = ( {
|
|
|
190
192
|
>
|
|
191
193
|
<Icon
|
|
192
194
|
animated
|
|
193
|
-
icon={
|
|
195
|
+
icon={ icon() }
|
|
194
196
|
style={ { color: activeIcon.color } }
|
|
195
197
|
/>
|
|
196
198
|
</Animated.View>
|
|
@@ -202,12 +204,16 @@ const SocialLinkEdit = ( {
|
|
|
202
204
|
export default compose( [
|
|
203
205
|
withSelect( ( select, { clientId } ) => {
|
|
204
206
|
const { getBlock } = select( blockEditorStore );
|
|
207
|
+
const { getActiveBlockVariation } = select( blocksStore );
|
|
205
208
|
|
|
206
209
|
const block = getBlock( clientId );
|
|
207
210
|
const name = block?.name.substring( 17 );
|
|
208
211
|
|
|
209
212
|
return {
|
|
210
213
|
name,
|
|
214
|
+
activeVariation: block
|
|
215
|
+
? getActiveBlockVariation( block.name, block.attributes )
|
|
216
|
+
: undefined,
|
|
211
217
|
};
|
|
212
218
|
} ),
|
|
213
219
|
] )( SocialLinkEdit );
|
|
@@ -335,6 +335,19 @@ function block_core_social_link_services( $service = '', $field = '' ) {
|
|
|
335
335
|
),
|
|
336
336
|
);
|
|
337
337
|
|
|
338
|
+
/**
|
|
339
|
+
* Filter the list of available social service.
|
|
340
|
+
*
|
|
341
|
+
* This can be used to change icons or add custom icons (additionally to variations in the editor).
|
|
342
|
+
* Icons should be directly renderable - therefore SVGs work best.
|
|
343
|
+
*
|
|
344
|
+
* @since 6.9.0
|
|
345
|
+
*
|
|
346
|
+
* @param array $services_data The list of services. Each item is an array containing a 'name' and 'icon' key.
|
|
347
|
+
* @return array The list of social services.
|
|
348
|
+
*/
|
|
349
|
+
$services_data = apply_filters( 'block_core_social_link_get_services', $services_data );
|
|
350
|
+
|
|
338
351
|
if ( ! empty( $service )
|
|
339
352
|
&& ! empty( $field )
|
|
340
353
|
&& isset( $services_data[ $service ] )
|
|
@@ -6,29 +6,24 @@ import { __ } from '@wordpress/i18n';
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
|
-
import variations from './variations';
|
|
10
9
|
import { ChainIcon } from './icons';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
|
-
* Retrieves the social service's icon component.
|
|
12
|
+
* Retrieves the social service's icon component and label.
|
|
14
13
|
*
|
|
15
|
-
* @param {
|
|
16
|
-
*
|
|
17
|
-
* @return {Component} Icon component for social service.
|
|
14
|
+
* @param {Object} variation The object of the social service variation.
|
|
15
|
+
* @return {Object} An object containing the Icon component for social service and label.
|
|
18
16
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export function getSocialService( variation ) {
|
|
18
|
+
if ( ! variation?.name ) {
|
|
19
|
+
return {
|
|
20
|
+
icon: ChainIcon,
|
|
21
|
+
label: __( 'Social Icon' ),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* @return {string} Display name for social service
|
|
30
|
-
*/
|
|
31
|
-
export const getNameBySite = ( name ) => {
|
|
32
|
-
const variation = variations.find( ( v ) => v.name === name );
|
|
33
|
-
return variation ? variation.title : __( 'Social Icon' );
|
|
34
|
-
};
|
|
25
|
+
return {
|
|
26
|
+
icon: variation?.icon ?? ChainIcon,
|
|
27
|
+
label: variation?.title ?? __( 'Social Icon' ),
|
|
28
|
+
};
|
|
29
|
+
}
|
package/src/social-links/edit.js
CHANGED
|
@@ -33,6 +33,7 @@ import { useSelect } from '@wordpress/data';
|
|
|
33
33
|
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
34
34
|
|
|
35
35
|
const sizeOptions = [
|
|
36
|
+
{ label: __( 'Default' ), value: '' },
|
|
36
37
|
{ label: __( 'Small' ), value: 'has-small-icon-size' },
|
|
37
38
|
{ label: __( 'Normal' ), value: 'has-normal-icon-size' },
|
|
38
39
|
{ label: __( 'Large' ), value: 'has-large-icon-size' },
|
|
@@ -166,19 +167,17 @@ export function SocialLinksEdit( props ) {
|
|
|
166
167
|
setAttributes( {
|
|
167
168
|
openInNewTab: false,
|
|
168
169
|
showLabels: false,
|
|
169
|
-
size:
|
|
170
|
+
size: undefined,
|
|
170
171
|
} );
|
|
171
172
|
} }
|
|
172
173
|
dropdownMenuProps={ dropdownMenuProps }
|
|
173
174
|
>
|
|
174
175
|
<ToolsPanelItem
|
|
175
176
|
isShownByDefault
|
|
176
|
-
hasValue={ () =>
|
|
177
|
-
!! size && size !== 'has-normal-icon-size'
|
|
178
|
-
}
|
|
177
|
+
hasValue={ () => !! size }
|
|
179
178
|
label={ __( 'Icon size' ) }
|
|
180
179
|
onDeselect={ () =>
|
|
181
|
-
setAttributes( { size:
|
|
180
|
+
setAttributes( { size: undefined } )
|
|
182
181
|
}
|
|
183
182
|
>
|
|
184
183
|
<SelectControl
|
|
@@ -187,10 +186,10 @@ export function SocialLinksEdit( props ) {
|
|
|
187
186
|
label={ __( 'Icon Size' ) }
|
|
188
187
|
onChange={ ( newSize ) => {
|
|
189
188
|
setAttributes( {
|
|
190
|
-
size: newSize,
|
|
189
|
+
size: newSize === '' ? undefined : newSize,
|
|
191
190
|
} );
|
|
192
191
|
} }
|
|
193
|
-
value={ size ?? '
|
|
192
|
+
value={ size ?? '' }
|
|
194
193
|
options={ sizeOptions }
|
|
195
194
|
/>
|
|
196
195
|
</ToolsPanelItem>
|
|
@@ -24,8 +24,9 @@ import {
|
|
|
24
24
|
MediaUploadCheck,
|
|
25
25
|
store as blockEditorStore,
|
|
26
26
|
} from '@wordpress/block-editor';
|
|
27
|
+
import { store as noticesStore } from '@wordpress/notices';
|
|
27
28
|
import { upload, media } from '@wordpress/icons';
|
|
28
|
-
import { useSelect } from '@wordpress/data';
|
|
29
|
+
import { useSelect, useDispatch } from '@wordpress/data';
|
|
29
30
|
import { useState, useRef, useEffect } from '@wordpress/element';
|
|
30
31
|
import { getFilename } from '@wordpress/url';
|
|
31
32
|
|
|
@@ -212,12 +213,27 @@ function SingleTrackEditor( {
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
export default function TracksEditor( { tracks = [], onChange } ) {
|
|
216
|
+
const { createNotice } = useDispatch( noticesStore );
|
|
215
217
|
const mediaUpload = useSelect( ( select ) => {
|
|
216
218
|
return select( blockEditorStore ).getSettings().mediaUpload;
|
|
217
219
|
}, [] );
|
|
218
220
|
const [ trackBeingEdited, setTrackBeingEdited ] = useState( null );
|
|
219
221
|
const dropdownPopoverRef = useRef();
|
|
220
222
|
|
|
223
|
+
const handleTrackSelect = ( { title, url } ) => {
|
|
224
|
+
if ( tracks.some( ( track ) => track.src === url ) ) {
|
|
225
|
+
createNotice( 'error', __( 'This track already exists.' ), {
|
|
226
|
+
isDismissible: true,
|
|
227
|
+
type: 'snackbar',
|
|
228
|
+
} );
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const trackIndex = tracks.length;
|
|
233
|
+
onChange( [ ...tracks, { label: title || '', src: url } ] );
|
|
234
|
+
setTrackBeingEdited( trackIndex );
|
|
235
|
+
};
|
|
236
|
+
|
|
221
237
|
useEffect( () => {
|
|
222
238
|
dropdownPopoverRef.current?.focus();
|
|
223
239
|
}, [ trackBeingEdited ] );
|
|
@@ -306,11 +322,7 @@ export default function TracksEditor( { tracks = [], onChange } ) {
|
|
|
306
322
|
label={ __( 'Add tracks' ) }
|
|
307
323
|
>
|
|
308
324
|
<MediaUpload
|
|
309
|
-
onSelect={
|
|
310
|
-
const trackIndex = tracks.length;
|
|
311
|
-
onChange( [ ...tracks, { src: url } ] );
|
|
312
|
-
setTrackBeingEdited( trackIndex );
|
|
313
|
-
} }
|
|
325
|
+
onSelect={ handleTrackSelect }
|
|
314
326
|
allowedTypes={ ALLOWED_TYPES }
|
|
315
327
|
render={ ( { open } ) => (
|
|
316
328
|
<MenuItem
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Breakpoints & Media Queries
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Colors
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* SCSS Variables.
|
|
12
|
-
*
|
|
13
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
14
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
15
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Fonts & basic variables.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Typography
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Grid System.
|
|
25
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Radius scale.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Elevation scale.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Dimensions.
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Mobile specific styles
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Editor styles.
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* Block & Editor UI.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Block paddings.
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* React Native specific.
|
|
50
|
-
* These variables do not appear to be used anywhere else.
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* Colors
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* SCSS Variables.
|
|
57
|
-
*
|
|
58
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
59
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
60
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Fonts & basic variables.
|
|
64
|
-
*/
|
|
65
|
-
/**
|
|
66
|
-
* Typography
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Grid System.
|
|
70
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* Radius scale.
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Elevation scale.
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* Dimensions.
|
|
80
|
-
*/
|
|
81
|
-
/**
|
|
82
|
-
* Mobile specific styles
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* Editor styles.
|
|
86
|
-
*/
|
|
87
|
-
/**
|
|
88
|
-
* Block & Editor UI.
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* Block paddings.
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* React Native specific.
|
|
95
|
-
* These variables do not appear to be used anywhere else.
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* Breakpoints & Media Queries
|
|
99
|
-
*/
|
|
100
|
-
/**
|
|
101
|
-
* Converts a hex value into the rgb equivalent.
|
|
102
|
-
*
|
|
103
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
104
|
-
* @return {string} comma separated rgb values
|
|
105
|
-
*/
|
|
106
|
-
/**
|
|
107
|
-
* Long content fade mixin
|
|
108
|
-
*
|
|
109
|
-
* Creates a fading overlay to signify that the content is longer
|
|
110
|
-
* than the space allows.
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* Typography
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* Breakpoint mixins
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* Focus styles.
|
|
120
|
-
*/
|
|
121
|
-
/**
|
|
122
|
-
* Applies editor left position to the selector passed as argument
|
|
123
|
-
*/
|
|
124
|
-
/**
|
|
125
|
-
* Styles that are reused verbatim in a few places
|
|
126
|
-
*/
|
|
127
|
-
/**
|
|
128
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* Reset default styles for JavaScript UI based pages.
|
|
132
|
-
* This is a WP-admin agnostic reset
|
|
133
|
-
*/
|
|
134
|
-
/**
|
|
135
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
136
|
-
*/
|
|
137
|
-
.wp-block-post-author__inspector-settings .components-base-control,
|
|
138
|
-
.wp-block-post-author__inspector-settings .components-base-control:last-child {
|
|
139
|
-
margin-bottom: 0;
|
|
140
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Breakpoints & Media Queries
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Colors
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* SCSS Variables.
|
|
12
|
-
*
|
|
13
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
14
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
15
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* Fonts & basic variables.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Typography
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Grid System.
|
|
25
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Radius scale.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Elevation scale.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Dimensions.
|
|
35
|
-
*/
|
|
36
|
-
/**
|
|
37
|
-
* Mobile specific styles
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Editor styles.
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* Block & Editor UI.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Block paddings.
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* React Native specific.
|
|
50
|
-
* These variables do not appear to be used anywhere else.
|
|
51
|
-
*/
|
|
52
|
-
/**
|
|
53
|
-
* Colors
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* SCSS Variables.
|
|
57
|
-
*
|
|
58
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
59
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
60
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Fonts & basic variables.
|
|
64
|
-
*/
|
|
65
|
-
/**
|
|
66
|
-
* Typography
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Grid System.
|
|
70
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* Radius scale.
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Elevation scale.
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* Dimensions.
|
|
80
|
-
*/
|
|
81
|
-
/**
|
|
82
|
-
* Mobile specific styles
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* Editor styles.
|
|
86
|
-
*/
|
|
87
|
-
/**
|
|
88
|
-
* Block & Editor UI.
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* Block paddings.
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* React Native specific.
|
|
95
|
-
* These variables do not appear to be used anywhere else.
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* Breakpoints & Media Queries
|
|
99
|
-
*/
|
|
100
|
-
/**
|
|
101
|
-
* Converts a hex value into the rgb equivalent.
|
|
102
|
-
*
|
|
103
|
-
* @param {string} hex - the hexadecimal value to convert
|
|
104
|
-
* @return {string} comma separated rgb values
|
|
105
|
-
*/
|
|
106
|
-
/**
|
|
107
|
-
* Long content fade mixin
|
|
108
|
-
*
|
|
109
|
-
* Creates a fading overlay to signify that the content is longer
|
|
110
|
-
* than the space allows.
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* Typography
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* Breakpoint mixins
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* Focus styles.
|
|
120
|
-
*/
|
|
121
|
-
/**
|
|
122
|
-
* Applies editor left position to the selector passed as argument
|
|
123
|
-
*/
|
|
124
|
-
/**
|
|
125
|
-
* Styles that are reused verbatim in a few places
|
|
126
|
-
*/
|
|
127
|
-
/**
|
|
128
|
-
* Allows users to opt-out of animations via OS-level preferences.
|
|
129
|
-
*/
|
|
130
|
-
/**
|
|
131
|
-
* Reset default styles for JavaScript UI based pages.
|
|
132
|
-
* This is a WP-admin agnostic reset
|
|
133
|
-
*/
|
|
134
|
-
/**
|
|
135
|
-
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
136
|
-
*/
|
|
137
|
-
.wp-block-post-author__inspector-settings .components-base-control,
|
|
138
|
-
.wp-block-post-author__inspector-settings .components-base-control:last-child {
|
|
139
|
-
margin-bottom: 0;
|
|
140
|
-
}
|