@wordpress/block-library 9.6.0 → 9.7.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/audio/edit.js +2 -1
- package/build/audio/edit.js.map +1 -1
- package/build/block/edit.js +3 -5
- package/build/block/edit.js.map +1 -1
- package/build/button/edit.js +1 -1
- package/build/button/edit.js.map +1 -1
- package/build/categories/index.js +1 -0
- package/build/categories/index.js.map +1 -1
- package/build/comment-edit-link/index.js +13 -2
- package/build/comment-edit-link/index.js.map +1 -1
- package/build/comment-reply-link/index.js +13 -2
- package/build/comment-reply-link/index.js.map +1 -1
- package/build/comments/edit/comments-legacy.js +4 -1
- package/build/comments/edit/comments-legacy.js.map +1 -1
- package/build/cover/edit/block-controls.js +4 -2
- package/build/cover/edit/block-controls.js.map +1 -1
- package/build/cover/edit/index.js +2 -1
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +4 -12
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/details/index.js +3 -1
- package/build/details/index.js.map +1 -1
- package/build/details/transforms.js +24 -0
- package/build/details/transforms.js.map +1 -0
- package/build/embed/embed-placeholder.js +8 -2
- package/build/embed/embed-placeholder.js.map +1 -1
- package/build/file/edit.js +12 -1
- package/build/file/edit.js.map +1 -1
- package/build/freeform/edit.js +4 -4
- package/build/freeform/edit.js.map +1 -1
- package/build/freeform/modal.js +12 -3
- package/build/freeform/modal.js.map +1 -1
- package/build/home-link/edit.js +3 -9
- package/build/home-link/edit.js.map +1 -1
- package/build/image/edit.js +44 -34
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +22 -10
- package/build/image/image.js.map +1 -1
- package/build/media-text/deprecated.js +144 -3
- package/build/media-text/deprecated.js.map +1 -1
- package/build/media-text/edit.js +5 -5
- package/build/media-text/edit.js.map +1 -1
- package/build/media-text/image-fill.js +12 -0
- package/build/media-text/image-fill.js.map +1 -0
- package/build/media-text/media-container.js +21 -18
- package/build/media-text/media-container.js.map +1 -1
- package/build/media-text/media-container.native.js +0 -7
- package/build/media-text/media-container.native.js.map +1 -1
- package/build/media-text/save.js +5 -6
- package/build/media-text/save.js.map +1 -1
- package/build/missing/edit.js +6 -3
- package/build/missing/edit.js.map +1 -1
- package/build/navigation/edit/deleted-navigation-warning.js +4 -1
- package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build/navigation/edit/index.js +4 -1
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-delete-control.js +4 -1
- package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +4 -1
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +8 -2
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation-link/link-ui.js +5 -2
- package/build/navigation-link/link-ui.js.map +1 -1
- package/build/page-list/convert-to-links-modal.js +8 -2
- package/build/page-list/convert-to-links-modal.js.map +1 -1
- package/build/page-list/edit.js +7 -2
- package/build/page-list/edit.js.map +1 -1
- package/build/post-comments-form/form.js +4 -1
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-featured-image/dimension-controls.js +6 -8
- package/build/post-featured-image/dimension-controls.js.map +1 -1
- package/build/post-featured-image/edit.js +5 -5
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +4 -1
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build/query/edit/query-placeholder.js +8 -2
- package/build/query/edit/query-placeholder.js.map +1 -1
- package/build/site-logo/edit.js +15 -15
- package/build/site-logo/edit.js.map +1 -1
- package/build/social-link/edit.js +4 -1
- package/build/social-link/edit.js.map +1 -1
- package/build/social-links/edit.js +10 -9
- package/build/social-links/edit.js.map +1 -1
- package/build/template-part/edit/advanced-controls.js.map +1 -1
- package/build/template-part/edit/index.js +1 -1
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/placeholder.js +8 -2
- package/build/template-part/edit/placeholder.js.map +1 -1
- package/build/utils/hooks.js +10 -10
- package/build/utils/hooks.js.map +1 -1
- package/build/video/edit.js +22 -14
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +12 -3
- package/build/video/tracks-editor.js.map +1 -1
- package/build-module/audio/edit.js +2 -1
- package/build-module/audio/edit.js.map +1 -1
- package/build-module/block/edit.js +4 -6
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/edit.js +1 -1
- package/build-module/button/edit.js.map +1 -1
- package/build-module/categories/index.js +1 -0
- package/build-module/categories/index.js.map +1 -1
- package/build-module/comment-edit-link/index.js +13 -2
- package/build-module/comment-edit-link/index.js.map +1 -1
- package/build-module/comment-reply-link/index.js +13 -2
- package/build-module/comment-reply-link/index.js.map +1 -1
- package/build-module/comments/edit/comments-legacy.js +4 -1
- package/build-module/comments/edit/comments-legacy.js.map +1 -1
- package/build-module/cover/edit/block-controls.js +4 -2
- package/build-module/cover/edit/block-controls.js.map +1 -1
- package/build-module/cover/edit/index.js +2 -1
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +5 -13
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/details/index.js +3 -1
- package/build-module/details/index.js.map +1 -1
- package/build-module/details/transforms.js +18 -0
- package/build-module/details/transforms.js.map +1 -0
- package/build-module/embed/embed-placeholder.js +8 -2
- package/build-module/embed/embed-placeholder.js.map +1 -1
- package/build-module/file/edit.js +12 -1
- package/build-module/file/edit.js.map +1 -1
- package/build-module/freeform/edit.js +4 -4
- package/build-module/freeform/edit.js.map +1 -1
- package/build-module/freeform/modal.js +12 -3
- package/build-module/freeform/modal.js.map +1 -1
- package/build-module/home-link/edit.js +3 -9
- package/build-module/home-link/edit.js.map +1 -1
- package/build-module/image/edit.js +45 -34
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +23 -11
- package/build-module/image/image.js.map +1 -1
- package/build-module/media-text/deprecated.js +144 -3
- package/build-module/media-text/deprecated.js.map +1 -1
- package/build-module/media-text/edit.js +5 -5
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/media-text/image-fill.js +6 -0
- package/build-module/media-text/image-fill.js.map +1 -0
- package/build-module/media-text/media-container.js +21 -17
- package/build-module/media-text/media-container.js.map +1 -1
- package/build-module/media-text/media-container.native.js +0 -1
- package/build-module/media-text/media-container.native.js.map +1 -1
- package/build-module/media-text/save.js +5 -6
- package/build-module/media-text/save.js.map +1 -1
- package/build-module/missing/edit.js +6 -3
- package/build-module/missing/edit.js.map +1 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js +4 -1
- package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
- package/build-module/navigation/edit/index.js +4 -1
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js +4 -1
- package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +4 -1
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +8 -2
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation-link/link-ui.js +7 -4
- package/build-module/navigation-link/link-ui.js.map +1 -1
- package/build-module/page-list/convert-to-links-modal.js +8 -2
- package/build-module/page-list/convert-to-links-modal.js.map +1 -1
- package/build-module/page-list/edit.js +7 -2
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +4 -1
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-featured-image/dimension-controls.js +6 -8
- package/build-module/post-featured-image/dimension-controls.js.map +1 -1
- package/build-module/post-featured-image/edit.js +6 -6
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +4 -1
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
- package/build-module/query/edit/query-placeholder.js +8 -2
- package/build-module/query/edit/query-placeholder.js.map +1 -1
- package/build-module/site-logo/edit.js +16 -16
- package/build-module/site-logo/edit.js.map +1 -1
- package/build-module/social-link/edit.js +4 -1
- package/build-module/social-link/edit.js.map +1 -1
- package/build-module/social-links/edit.js +11 -10
- package/build-module/social-links/edit.js.map +1 -1
- package/build-module/template-part/edit/advanced-controls.js.map +1 -1
- package/build-module/template-part/edit/index.js +1 -1
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +8 -2
- package/build-module/template-part/edit/placeholder.js.map +1 -1
- package/build-module/utils/hooks.js +10 -10
- package/build-module/utils/hooks.js.map +1 -1
- package/build-module/video/edit.js +22 -15
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +12 -3
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-style/button/editor-rtl.css +0 -4
- package/build-style/button/editor.css +0 -4
- package/build-style/buttons/editor-rtl.css +0 -3
- package/build-style/buttons/editor.css +0 -3
- package/build-style/comment-edit-link/style-rtl.css +94 -0
- package/build-style/comment-edit-link/style.css +94 -0
- package/build-style/comment-reply-link/style-rtl.css +94 -0
- package/build-style/comment-reply-link/style.css +94 -0
- package/build-style/comments-pagination/editor-rtl.css +2 -2
- package/build-style/comments-pagination/editor.css +2 -2
- package/build-style/cover/editor-rtl.css +0 -6
- package/build-style/cover/editor.css +0 -6
- package/build-style/editor-rtl.css +24 -68
- package/build-style/editor.css +24 -70
- package/build-style/group/editor-rtl.css +0 -1
- package/build-style/group/editor.css +0 -1
- package/build-style/image/editor-rtl.css +0 -1
- package/build-style/image/editor.css +0 -1
- package/build-style/media-text/editor-rtl.css +3 -1
- package/build-style/media-text/editor.css +3 -1
- package/build-style/media-text/style-rtl.css +20 -0
- package/build-style/media-text/style.css +20 -0
- package/build-style/navigation/editor-rtl.css +0 -1
- package/build-style/navigation/editor.css +0 -1
- package/build-style/post-featured-image/style-rtl.css +1 -1
- package/build-style/post-featured-image/style.css +1 -1
- package/build-style/query-pagination/editor-rtl.css +2 -16
- package/build-style/query-pagination/editor.css +2 -18
- package/build-style/query-pagination/style-rtl.css +0 -11
- package/build-style/query-pagination/style.css +0 -13
- package/build-style/site-title/editor-rtl.css +0 -4
- package/build-style/site-title/editor.css +0 -4
- package/build-style/social-links/editor-rtl.css +17 -0
- package/build-style/social-links/editor.css +17 -0
- package/build-style/style-rtl.css +29 -12
- package/build-style/style.css +29 -14
- package/build-style/video/editor-rtl.css +0 -29
- package/build-style/video/editor.css +0 -29
- package/package.json +35 -35
- package/src/audio/edit.js +1 -0
- package/src/block/edit.js +6 -4
- package/src/button/edit.js +1 -1
- package/src/button/editor.scss +0 -5
- package/src/buttons/editor.scss +0 -6
- package/src/categories/block.json +1 -0
- package/src/categories/index.php +13 -2
- package/src/comment-date/index.php +1 -1
- package/src/comment-edit-link/block.json +13 -2
- package/src/comment-edit-link/style.scss +4 -0
- package/src/comment-reply-link/block.json +13 -2
- package/src/comment-reply-link/style.scss +4 -0
- package/src/comments/edit/comments-legacy.js +2 -0
- package/src/comments-pagination/editor.scss +1 -1
- package/src/cover/edit/block-controls.js +2 -0
- package/src/cover/edit/index.js +1 -0
- package/src/cover/edit/inspector-controls.js +3 -15
- package/src/cover/editor.scss +0 -5
- package/src/cover/test/edit.js +30 -26
- package/src/details/index.js +2 -0
- package/src/details/transforms.js +26 -0
- package/src/embed/embed-placeholder.js +12 -2
- package/src/file/edit.js +11 -0
- package/src/form/index.php +2 -2
- package/src/freeform/edit.js +4 -4
- package/src/freeform/editor.scss +1 -1
- package/src/freeform/modal.js +10 -1
- package/src/gallery/editor.scss +1 -1
- package/src/group/editor.scss +0 -1
- package/src/home-link/edit.js +4 -7
- package/src/image/edit.js +42 -30
- package/src/image/editor.scss +0 -3
- package/src/image/image.js +75 -53
- package/src/media-text/deprecated.js +159 -3
- package/src/media-text/edit.js +5 -5
- package/src/media-text/editor.scss +3 -1
- package/src/media-text/image-fill.js +11 -0
- package/src/media-text/index.php +53 -43
- package/src/media-text/media-container.js +25 -25
- package/src/media-text/media-container.native.js +0 -2
- package/src/media-text/save.js +9 -13
- package/src/media-text/style.scss +21 -0
- package/src/media-text/test/image-fill.js +19 -0
- package/src/missing/edit.js +9 -3
- package/src/navigation/edit/deleted-navigation-warning.js +8 -1
- package/src/navigation/edit/index.js +2 -0
- package/src/navigation/edit/navigation-menu-delete-control.js +2 -0
- package/src/navigation/edit/placeholder/index.js +2 -0
- package/src/navigation/edit/responsive-wrapper.js +4 -0
- package/src/navigation/edit/unsaved-inner-blocks.js +4 -4
- package/src/navigation/editor.scss +6 -3
- package/src/navigation-link/link-ui.js +5 -3
- package/src/page-list/convert-to-links-modal.js +8 -1
- package/src/page-list/edit.js +7 -1
- package/src/page-list/index.php +3 -1
- package/src/post-comments-form/form.js +2 -0
- package/src/post-date/index.php +3 -3
- package/src/post-featured-image/dimension-controls.js +4 -4
- package/src/post-featured-image/edit.js +4 -6
- package/src/post-featured-image/style.scss +1 -1
- package/src/query/edit/enhanced-pagination-modal.js +6 -1
- package/src/query/edit/query-placeholder.js +4 -0
- package/src/query-pagination/editor.scss +1 -21
- package/src/query-pagination/style.scss +0 -15
- package/src/site-logo/edit.js +13 -20
- package/src/site-title/editor.scss +0 -4
- package/src/social-link/edit.js +2 -0
- package/src/social-links/edit.js +17 -10
- package/src/social-links/editor.scss +24 -5
- package/src/style.scss +2 -0
- package/src/tag-cloud/index.php +7 -2
- package/src/template-part/edit/advanced-controls.js +0 -1
- package/src/template-part/edit/index.js +12 -10
- package/src/template-part/edit/placeholder.js +8 -1
- package/src/utils/hooks.js +11 -11
- package/src/video/edit.js +26 -21
- package/src/video/editor.scss +0 -45
- package/src/video/tracks-editor.js +6 -0
- package/src/media-text/test/media-container.js +0 -24
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Radius scale.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Elevation scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Dimensions.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Editor widths.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block & Editor UI.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Block paddings.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* React Native specific.
|
|
56
|
+
* These variables do not appear to be used anywhere else.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Converts a hex value into the rgb equivalent.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
62
|
+
* @return {string} comma separated rgb values
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Long content fade mixin
|
|
66
|
+
*
|
|
67
|
+
* Creates a fading overlay to signify that the content is longer
|
|
68
|
+
* than the space allows.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Breakpoint mixins
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Focus styles.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Applies editor left position to the selector passed as argument
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Styles that are reused verbatim in a few places
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Reset default styles for JavaScript UI based pages.
|
|
87
|
+
* This is a WP-admin agnostic reset
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
91
|
+
*/
|
|
92
|
+
.wp-block-comment-edit-link {
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Radius scale.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Elevation scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Dimensions.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Editor widths.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block & Editor UI.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Block paddings.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* React Native specific.
|
|
56
|
+
* These variables do not appear to be used anywhere else.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Converts a hex value into the rgb equivalent.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
62
|
+
* @return {string} comma separated rgb values
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Long content fade mixin
|
|
66
|
+
*
|
|
67
|
+
* Creates a fading overlay to signify that the content is longer
|
|
68
|
+
* than the space allows.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Breakpoint mixins
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Focus styles.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Applies editor left position to the selector passed as argument
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Styles that are reused verbatim in a few places
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Reset default styles for JavaScript UI based pages.
|
|
87
|
+
* This is a WP-admin agnostic reset
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
91
|
+
*/
|
|
92
|
+
.wp-block-comment-reply-link {
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Colors
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Breakpoints & Media Queries
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* SCSS Variables.
|
|
15
|
+
*
|
|
16
|
+
* Please use variables from this sheet to ensure consistency across the UI.
|
|
17
|
+
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
18
|
+
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Colors
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Fonts & basic variables.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Grid System.
|
|
34
|
+
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* Radius scale.
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Elevation scale.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Dimensions.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Editor widths.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Block & Editor UI.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* Block paddings.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* React Native specific.
|
|
56
|
+
* These variables do not appear to be used anywhere else.
|
|
57
|
+
*/
|
|
58
|
+
/**
|
|
59
|
+
* Converts a hex value into the rgb equivalent.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
62
|
+
* @return {string} comma separated rgb values
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* Long content fade mixin
|
|
66
|
+
*
|
|
67
|
+
* Creates a fading overlay to signify that the content is longer
|
|
68
|
+
* than the space allows.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* Breakpoint mixins
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* Focus styles.
|
|
75
|
+
*/
|
|
76
|
+
/**
|
|
77
|
+
* Applies editor left position to the selector passed as argument
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Styles that are reused verbatim in a few places
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* Allows users to opt-out of animations via OS-level preferences.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Reset default styles for JavaScript UI based pages.
|
|
87
|
+
* This is a WP-admin agnostic reset
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
91
|
+
*/
|
|
92
|
+
.wp-block-comment-reply-link {
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
}
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
justify-content: center;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.editor-styles-wrapper .wp-block-comments-pagination {
|
|
96
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination {
|
|
97
97
|
max-width: 100%;
|
|
98
98
|
}
|
|
99
|
-
.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
99
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
100
100
|
margin: 0;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
justify-content: center;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.editor-styles-wrapper .wp-block-comments-pagination {
|
|
96
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination {
|
|
97
97
|
max-width: 100%;
|
|
98
98
|
}
|
|
99
|
-
.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
99
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
100
100
|
margin: 0;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -89,12 +89,6 @@
|
|
|
89
89
|
/**
|
|
90
90
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
91
91
|
*/
|
|
92
|
-
.wp-block-cover {
|
|
93
|
-
/* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
|
|
94
|
-
}
|
|
95
|
-
.editor-styles-wrapper .wp-block-cover {
|
|
96
|
-
box-sizing: border-box;
|
|
97
|
-
}
|
|
98
92
|
.wp-block-cover.is-placeholder {
|
|
99
93
|
padding: 0 !important;
|
|
100
94
|
display: flex;
|
|
@@ -89,12 +89,6 @@
|
|
|
89
89
|
/**
|
|
90
90
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
91
91
|
*/
|
|
92
|
-
.wp-block-cover {
|
|
93
|
-
/* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
|
|
94
|
-
}
|
|
95
|
-
.editor-styles-wrapper .wp-block-cover {
|
|
96
|
-
box-sizing: border-box;
|
|
97
|
-
}
|
|
98
92
|
.wp-block-cover.is-placeholder {
|
|
99
93
|
padding: 0 !important;
|
|
100
94
|
display: flex;
|
|
@@ -144,10 +144,6 @@ div[data-type="core/button"] {
|
|
|
144
144
|
display: table;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.editor-styles-wrapper .wp-block-button[style*=text-decoration] .wp-block-button__link {
|
|
148
|
-
text-decoration: inherit;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
147
|
.wp-block-buttons {
|
|
152
148
|
/* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
|
|
153
149
|
}
|
|
@@ -183,9 +179,6 @@ div[data-type="core/button"] {
|
|
|
183
179
|
.is-content-justification-center) .wp-block[data-align=center] .wp-block-button {
|
|
184
180
|
margin-bottom: 0;
|
|
185
181
|
}
|
|
186
|
-
.editor-styles-wrapper .wp-block-buttons.has-custom-font-size .wp-block-button__link {
|
|
187
|
-
font-size: inherit;
|
|
188
|
-
}
|
|
189
182
|
|
|
190
183
|
.wp-block[data-align=center] > .wp-block-buttons {
|
|
191
184
|
align-items: center;
|
|
@@ -366,10 +359,10 @@ html :where(.wp-block-column) {
|
|
|
366
359
|
justify-content: center;
|
|
367
360
|
}
|
|
368
361
|
|
|
369
|
-
.editor-styles-wrapper .wp-block-comments-pagination {
|
|
362
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination {
|
|
370
363
|
max-width: 100%;
|
|
371
364
|
}
|
|
372
|
-
.editor-styles-wrapper .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
365
|
+
:where(.editor-styles-wrapper) .wp-block-comments-pagination.block-editor-block-list__layout {
|
|
373
366
|
margin: 0;
|
|
374
367
|
}
|
|
375
368
|
|
|
@@ -401,12 +394,6 @@ html :where(.wp-block-column) {
|
|
|
401
394
|
padding: inherit;
|
|
402
395
|
}
|
|
403
396
|
|
|
404
|
-
.wp-block-cover {
|
|
405
|
-
/* Extra specificity needed because the reset.css applied in the editor context is overriding this rule. */
|
|
406
|
-
}
|
|
407
|
-
.editor-styles-wrapper .wp-block-cover {
|
|
408
|
-
box-sizing: border-box;
|
|
409
|
-
}
|
|
410
397
|
.wp-block-cover.is-placeholder {
|
|
411
398
|
padding: 0 !important;
|
|
412
399
|
display: flex;
|
|
@@ -1181,7 +1168,6 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1181
1168
|
pointer-events: none;
|
|
1182
1169
|
min-height: 46px;
|
|
1183
1170
|
border: 1px dashed currentColor;
|
|
1184
|
-
border-radius: 2px;
|
|
1185
1171
|
}
|
|
1186
1172
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-inserter,
|
|
1187
1173
|
.wp-block-group.is-layout-flex.block-editor-block-list__block > .block-list-appender:only-child .block-editor-button-block-appender {
|
|
@@ -1225,7 +1211,6 @@ div[data-type="core/freeform"].is-selected .block-library-classic__toolbar {
|
|
|
1225
1211
|
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
1226
1212
|
border: none;
|
|
1227
1213
|
filter: none !important;
|
|
1228
|
-
border-radius: 2px;
|
|
1229
1214
|
}
|
|
1230
1215
|
.wp-block-image.wp-block-image.is-selected .block-editor-media-placeholder > svg {
|
|
1231
1216
|
opacity: 0;
|
|
@@ -1421,7 +1406,9 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1421
1406
|
}
|
|
1422
1407
|
|
|
1423
1408
|
.wp-block-media-text.is-image-fill .editor-media-container__resizer,
|
|
1424
|
-
.wp-block-media-text.is-image-fill .components-placeholder.has-illustration
|
|
1409
|
+
.wp-block-media-text.is-image-fill .components-placeholder.has-illustration,
|
|
1410
|
+
.wp-block-media-text.is-image-fill-element .editor-media-container__resizer,
|
|
1411
|
+
.wp-block-media-text.is-image-fill-element .components-placeholder.has-illustration {
|
|
1425
1412
|
height: 100% !important;
|
|
1426
1413
|
}
|
|
1427
1414
|
|
|
@@ -1542,7 +1529,6 @@ figure.wp-block-image:not(.wp-block) {
|
|
|
1542
1529
|
background: #1e1e1e;
|
|
1543
1530
|
padding: 0;
|
|
1544
1531
|
width: 24px;
|
|
1545
|
-
border-radius: 2px;
|
|
1546
1532
|
margin-left: 0;
|
|
1547
1533
|
margin-right: auto;
|
|
1548
1534
|
}
|
|
@@ -2408,10 +2394,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2408
2394
|
border: 1px dashed;
|
|
2409
2395
|
}
|
|
2410
2396
|
|
|
2411
|
-
.editor-styles-wrapper :where(.wp-block-site-title a) {
|
|
2412
|
-
color: inherit;
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
2397
|
.wp-block-social-links .wp-social-link {
|
|
2416
2398
|
line-height: 0;
|
|
2417
2399
|
}
|
|
@@ -2531,6 +2513,23 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2531
2513
|
opacity: 1;
|
|
2532
2514
|
}
|
|
2533
2515
|
|
|
2516
|
+
.wp-block-social-links .block-list-appender {
|
|
2517
|
+
position: static;
|
|
2518
|
+
}
|
|
2519
|
+
.wp-block-social-links .block-list-appender .block-editor-button-block-appender.components-button.components-button {
|
|
2520
|
+
padding: 6px;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
.wp-block-social-links.has-small-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
2524
|
+
padding: 0;
|
|
2525
|
+
}
|
|
2526
|
+
.wp-block-social-links.has-large-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
2527
|
+
padding: 14px;
|
|
2528
|
+
}
|
|
2529
|
+
.wp-block-social-links.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button {
|
|
2530
|
+
padding: 23px;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2534
2533
|
.block-editor-block-list__block[data-type="core/spacer"]::before {
|
|
2535
2534
|
content: "";
|
|
2536
2535
|
display: block;
|
|
@@ -2677,28 +2676,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2677
2676
|
outline: 1px solid #ddd;
|
|
2678
2677
|
}
|
|
2679
2678
|
|
|
2680
|
-
.wp-block-video.wp-block-video.is-selected .components-placeholder {
|
|
2681
|
-
color: #1e1e1e;
|
|
2682
|
-
background-color: #fff;
|
|
2683
|
-
box-shadow: inset 0 0 0 1px #1e1e1e;
|
|
2684
|
-
border: none;
|
|
2685
|
-
border-radius: 2px;
|
|
2686
|
-
}
|
|
2687
|
-
.wp-block-video.wp-block-video.is-selected .components-placeholder > svg {
|
|
2688
|
-
opacity: 0;
|
|
2689
|
-
}
|
|
2690
|
-
.wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration {
|
|
2691
|
-
display: none;
|
|
2692
|
-
}
|
|
2693
|
-
.wp-block-video.wp-block-video.is-selected .components-placeholder::before {
|
|
2694
|
-
opacity: 0;
|
|
2695
|
-
}
|
|
2696
|
-
.wp-block-video.wp-block-video .components-placeholder__label,
|
|
2697
|
-
.wp-block-video.wp-block-video .components-placeholder__instructions,
|
|
2698
|
-
.wp-block-video.wp-block-video .components-button {
|
|
2699
|
-
transition: none;
|
|
2700
|
-
}
|
|
2701
|
-
|
|
2702
2679
|
.wp-block[data-align=center] > .wp-block-video {
|
|
2703
2680
|
text-align: center;
|
|
2704
2681
|
}
|
|
@@ -2744,7 +2721,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2744
2721
|
|
|
2745
2722
|
.block-library-video-tracks-editor > .components-popover__content {
|
|
2746
2723
|
width: 360px;
|
|
2747
|
-
padding: 0;
|
|
2748
2724
|
}
|
|
2749
2725
|
|
|
2750
2726
|
.block-library-video-tracks-editor__track-list .components-menu-group__label,
|
|
@@ -2752,12 +2728,6 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2752
2728
|
padding: 0;
|
|
2753
2729
|
}
|
|
2754
2730
|
|
|
2755
|
-
.block-library-video-tracks-editor__single-track-editor,
|
|
2756
|
-
.block-library-video-tracks-editor__track-list,
|
|
2757
|
-
.block-library-video-tracks-editor__add-tracks-container {
|
|
2758
|
-
padding: 12px;
|
|
2759
|
-
}
|
|
2760
|
-
|
|
2761
2731
|
.editor-styles-wrapper ul.wp-block-post-template {
|
|
2762
2732
|
padding-right: 0;
|
|
2763
2733
|
margin-right: 0;
|
|
@@ -2823,27 +2793,13 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
|
|
|
2823
2793
|
justify-content: center;
|
|
2824
2794
|
}
|
|
2825
2795
|
|
|
2826
|
-
.editor-styles-wrapper .wp-block-query-pagination {
|
|
2796
|
+
:where(.editor-styles-wrapper) .wp-block-query-pagination {
|
|
2827
2797
|
max-width: 100%;
|
|
2828
2798
|
}
|
|
2829
|
-
.editor-styles-wrapper .wp-block-query-pagination.block-editor-block-list__layout {
|
|
2799
|
+
:where(.editor-styles-wrapper) .wp-block-query-pagination.block-editor-block-list__layout {
|
|
2830
2800
|
margin: 0;
|
|
2831
2801
|
}
|
|
2832
2802
|
|
|
2833
|
-
.wp-block-query-pagination > .wp-block-query-pagination-next,
|
|
2834
|
-
.wp-block-query-pagination > .wp-block-query-pagination-previous,
|
|
2835
|
-
.wp-block-query-pagination > .wp-block-query-pagination-numbers {
|
|
2836
|
-
margin-right: 0;
|
|
2837
|
-
margin-top: 0.5em;
|
|
2838
|
-
margin-right: 0.5em;
|
|
2839
|
-
margin-bottom: 0.5em;
|
|
2840
|
-
}
|
|
2841
|
-
.wp-block-query-pagination > .wp-block-query-pagination-next:last-child,
|
|
2842
|
-
.wp-block-query-pagination > .wp-block-query-pagination-previous:last-child,
|
|
2843
|
-
.wp-block-query-pagination > .wp-block-query-pagination-numbers:last-child {
|
|
2844
|
-
margin-right: 0;
|
|
2845
|
-
}
|
|
2846
|
-
|
|
2847
2803
|
.wp-block-query-pagination-numbers a {
|
|
2848
2804
|
text-decoration: underline;
|
|
2849
2805
|
}
|