@wordpress/block-library 6.0.7 → 6.0.11
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/build/cover/edit.js +8 -3
- package/build/cover/edit.js.map +1 -1
- package/build/cover/transforms.js +2 -0
- package/build/cover/transforms.js.map +1 -1
- package/build/gallery/edit.js +1 -1
- package/build/gallery/edit.js.map +1 -1
- package/build/gallery/v1/update-gallery-modal.js +1 -1
- package/build/gallery/v1/update-gallery-modal.js.map +1 -1
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/navigation/deprecated.js +127 -19
- package/build/navigation/deprecated.js.map +1 -1
- package/build/navigation/edit/index.js +59 -33
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/inner-blocks.js +1 -1
- package/build/navigation/edit/inner-blocks.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +2 -2
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +16 -48
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/edit/responsive-wrapper.js +5 -2
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/navigation/edit/unsaved-inner-blocks.js +4 -35
- package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build/navigation/edit/use-create-navigation-menu.js +50 -0
- package/build/navigation/edit/use-create-navigation-menu.js.map +1 -0
- package/build/navigation/edit/use-generate-default-navigation-title.js +73 -0
- package/build/navigation/edit/use-generate-default-navigation-title.js.map +1 -0
- package/build/navigation/index.js +1 -1
- package/build/navigation/save.js +2 -2
- package/build/navigation/save.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +19 -8
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-area/edit.js +5 -0
- package/build/navigation-area/edit.js.map +1 -1
- package/build/page-list/edit.js +40 -42
- package/build/page-list/edit.js.map +1 -1
- package/build/pattern/index.js +1 -1
- package/build/post-featured-image/edit.js +53 -23
- package/build/post-featured-image/edit.js.map +1 -1
- package/build/post-terms/index.js +1 -1
- package/build/post-title/edit.js +2 -2
- package/build/post-title/edit.js.map +1 -1
- package/build/query-pagination-next/index.js +1 -1
- package/build/query-pagination-previous/index.js +1 -1
- package/build/query-title/index.js +1 -1
- package/build/site-logo/index.js +1 -1
- package/build/site-tagline/index.js +1 -1
- package/build/site-title/index.js +1 -1
- package/build/template-part/edit/placeholder/index.js +1 -1
- package/build/template-part/edit/placeholder/index.js.map +1 -1
- package/build/template-part/index.js +2 -1
- package/build/template-part/index.js.map +1 -1
- package/build-module/cover/edit.js +8 -3
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/transforms.js +2 -0
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/gallery/edit.js +1 -1
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/gallery/v1/update-gallery-modal.js +1 -1
- package/build-module/gallery/v1/update-gallery-modal.js.map +1 -1
- package/build-module/index.js +4 -3
- package/build-module/index.js.map +1 -1
- package/build-module/navigation/deprecated.js +127 -19
- package/build-module/navigation/deprecated.js.map +1 -1
- package/build-module/navigation/edit/index.js +60 -33
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/inner-blocks.js +1 -1
- package/build-module/navigation/edit/inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +2 -2
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +15 -45
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/edit/responsive-wrapper.js +5 -2
- package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build-module/navigation/edit/unsaved-inner-blocks.js +6 -35
- package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
- package/build-module/navigation/edit/use-create-navigation-menu.js +36 -0
- package/build-module/navigation/edit/use-create-navigation-menu.js.map +1 -0
- package/build-module/navigation/edit/use-generate-default-navigation-title.js +57 -0
- package/build-module/navigation/edit/use-generate-default-navigation-title.js.map +1 -0
- package/build-module/navigation/index.js +1 -1
- package/build-module/navigation/save.js +2 -2
- package/build-module/navigation/save.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +19 -8
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-area/edit.js +4 -0
- package/build-module/navigation-area/edit.js.map +1 -1
- package/build-module/page-list/edit.js +41 -43
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/pattern/index.js +1 -1
- package/build-module/post-featured-image/edit.js +55 -26
- package/build-module/post-featured-image/edit.js.map +1 -1
- package/build-module/post-terms/index.js +1 -1
- package/build-module/post-title/edit.js +2 -2
- package/build-module/post-title/edit.js.map +1 -1
- package/build-module/query-pagination-next/index.js +1 -1
- package/build-module/query-pagination-previous/index.js +1 -1
- package/build-module/query-title/index.js +1 -1
- package/build-module/site-logo/index.js +1 -1
- package/build-module/site-tagline/index.js +1 -1
- package/build-module/site-title/index.js +1 -1
- package/build-module/template-part/edit/placeholder/index.js +2 -2
- package/build-module/template-part/edit/placeholder/index.js.map +1 -1
- package/build-module/template-part/index.js +2 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-style/code/theme-rtl.css +1 -1
- package/build-style/code/theme.css +1 -1
- package/build-style/cover/style-rtl.css +8 -2
- package/build-style/cover/style.css +8 -2
- package/build-style/editor-rtl.css +104 -53
- package/build-style/editor.css +104 -53
- package/build-style/gallery/editor-rtl.css +1 -0
- package/build-style/gallery/editor.css +1 -0
- package/build-style/navigation/style-rtl.css +41 -3
- package/build-style/navigation/style.css +41 -3
- package/build-style/post-comments-form/style-rtl.css +18 -0
- package/build-style/post-comments-form/style.css +18 -0
- package/build-style/post-featured-image/editor-rtl.css +100 -16
- package/build-style/post-featured-image/editor.css +100 -16
- package/build-style/site-logo/editor-rtl.css +2 -2
- package/build-style/site-logo/editor.css +2 -2
- package/build-style/social-links/editor-rtl.css +1 -35
- package/build-style/social-links/editor.css +1 -35
- package/build-style/style-rtl.css +67 -27
- package/build-style/style.css +67 -27
- package/build-style/theme-rtl.css +1 -1
- package/build-style/theme.css +1 -1
- package/package.json +8 -8
- package/src/calendar/index.php +3 -3
- package/src/code/theme.scss +1 -1
- package/src/cover/edit.js +8 -1
- package/src/cover/style.scss +9 -2
- package/src/cover/transforms.js +2 -0
- package/src/gallery/edit.js +1 -1
- package/src/gallery/editor.scss +1 -0
- package/src/gallery/index.php +1 -1
- package/src/gallery/v1/update-gallery-modal.js +1 -1
- package/src/home-link/index.php +1 -1
- package/src/image/index.php +1 -1
- package/src/index.js +28 -26
- package/src/navigation/block.json +1 -1
- package/src/navigation/deprecated.js +115 -13
- package/src/navigation/edit/index.js +68 -36
- package/src/navigation/edit/inner-blocks.js +2 -1
- package/src/navigation/edit/navigation-menu-selector.js +2 -2
- package/src/navigation/edit/placeholder/index.js +16 -62
- package/src/navigation/edit/responsive-wrapper.js +8 -1
- package/src/navigation/edit/unsaved-inner-blocks.js +6 -57
- package/src/navigation/edit/use-create-navigation-menu.js +39 -0
- package/src/navigation/edit/use-generate-default-navigation-title.js +79 -0
- package/src/navigation/index.php +171 -25
- package/src/navigation/save.js +2 -2
- package/src/navigation/style.scss +57 -5
- package/src/navigation/use-navigation-menu.js +20 -9
- package/src/navigation-area/edit.js +5 -0
- package/src/navigation-area/index.php +2 -1
- package/src/navigation-link/index.php +1 -1
- package/src/navigation-submenu/index.php +2 -8
- package/src/page-list/edit.js +35 -44
- package/src/page-list/index.php +10 -5
- package/src/pattern/block.json +1 -1
- package/src/post-comments-form/style.scss +20 -1
- package/src/post-featured-image/edit.js +58 -26
- package/src/post-featured-image/editor.scss +124 -20
- package/src/post-terms/block.json +1 -1
- package/src/post-title/edit.js +2 -2
- package/src/query-pagination-next/block.json +1 -1
- package/src/query-pagination-previous/block.json +1 -1
- package/src/query-title/block.json +1 -1
- package/src/site-logo/block.json +1 -1
- package/src/site-logo/editor.scss +3 -2
- package/src/site-tagline/block.json +1 -1
- package/src/site-title/block.json +1 -1
- package/src/social-links/editor.scss +1 -47
- package/src/style.scss +0 -1
- package/src/table-of-contents/index.php +1 -1
- package/src/template-part/block.json +2 -1
- package/src/template-part/edit/placeholder/index.js +2 -2
- package/src/template-part/index.php +2 -1
- package/build/navigation/edit/navigation-menu-name-modal.js +0 -55
- package/build/navigation/edit/navigation-menu-name-modal.js.map +0 -1
- package/build/navigation/edit/navigation-menu-publish-button.js +0 -53
- package/build/navigation/edit/navigation-menu-publish-button.js.map +0 -1
- package/build-module/navigation/edit/navigation-menu-name-modal.js +0 -47
- package/build-module/navigation/edit/navigation-menu-name-modal.js.map +0 -1
- package/build-module/navigation/edit/navigation-menu-publish-button.js +0 -40
- package/build-module/navigation/edit/navigation-menu-publish-button.js.map +0 -1
- package/build-style/navigation-submenu/style-rtl.css +0 -97
- package/build-style/navigation-submenu/style.css +0 -97
- package/src/navigation/edit/navigation-menu-name-modal.js +0 -69
- package/src/navigation/edit/navigation-menu-publish-button.js +0 -57
- package/src/navigation-submenu/style.scss +0 -25
|
@@ -119,17 +119,23 @@
|
|
|
119
119
|
}
|
|
120
120
|
.wp-block-navigation .wp-block-navigation__submenu-icon {
|
|
121
121
|
align-self: center;
|
|
122
|
-
height: inherit;
|
|
123
122
|
line-height: 0;
|
|
124
|
-
|
|
123
|
+
display: inline-block;
|
|
124
|
+
vertical-align: middle;
|
|
125
|
+
font-size: inherit;
|
|
125
126
|
padding: 0;
|
|
126
127
|
background-color: inherit;
|
|
127
128
|
color: currentColor;
|
|
128
129
|
border: none;
|
|
130
|
+
margin-left: 0.25em;
|
|
131
|
+
width: 0.6em;
|
|
132
|
+
height: 0.6em;
|
|
129
133
|
}
|
|
130
134
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
131
135
|
display: inline-block;
|
|
132
136
|
stroke: currentColor;
|
|
137
|
+
width: inherit;
|
|
138
|
+
height: inherit;
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) {
|
|
@@ -214,6 +220,28 @@
|
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
|
|
223
|
+
.wp-block-navigation-submenu {
|
|
224
|
+
position: relative;
|
|
225
|
+
display: flex;
|
|
226
|
+
}
|
|
227
|
+
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
228
|
+
stroke: currentColor;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
button.wp-block-navigation-item__content {
|
|
232
|
+
background-color: transparent;
|
|
233
|
+
border: none;
|
|
234
|
+
color: currentColor;
|
|
235
|
+
font-size: inherit;
|
|
236
|
+
font-family: inherit;
|
|
237
|
+
line-height: inherit;
|
|
238
|
+
text-align: left;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.wp-block-navigation-submenu__toggle {
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
}
|
|
244
|
+
|
|
217
245
|
/**
|
|
218
246
|
* Margins
|
|
219
247
|
*/
|
|
@@ -288,6 +316,11 @@
|
|
|
288
316
|
display: none;
|
|
289
317
|
}
|
|
290
318
|
|
|
319
|
+
.wp-block-navigation__container:only-child,
|
|
320
|
+
.wp-block-page-list:only-child {
|
|
321
|
+
flex-grow: 1;
|
|
322
|
+
}
|
|
323
|
+
|
|
291
324
|
/**
|
|
292
325
|
* Mobile menu.
|
|
293
326
|
*/
|
|
@@ -306,6 +339,10 @@
|
|
|
306
339
|
justify-content: var(--layout-justify, initial);
|
|
307
340
|
align-items: var(--layout-align, initial);
|
|
308
341
|
}
|
|
342
|
+
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
|
|
343
|
+
color: inherit !important;
|
|
344
|
+
background-color: inherit !important;
|
|
345
|
+
}
|
|
309
346
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
310
347
|
display: flex;
|
|
311
348
|
flex-direction: column;
|
|
@@ -359,7 +396,8 @@
|
|
|
359
396
|
align-items: var(--layout-justification-setting, initial);
|
|
360
397
|
}
|
|
361
398
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
|
|
362
|
-
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item
|
|
399
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
|
|
400
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
|
|
363
401
|
color: inherit !important;
|
|
364
402
|
background: transparent !important;
|
|
365
403
|
}
|
|
@@ -74,6 +74,24 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
+
.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title) {
|
|
78
|
+
font-weight: inherit;
|
|
79
|
+
}
|
|
80
|
+
.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title) {
|
|
81
|
+
font-family: inherit;
|
|
82
|
+
}
|
|
83
|
+
.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title), .wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title) {
|
|
84
|
+
font-size: inherit;
|
|
85
|
+
}
|
|
86
|
+
.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title) {
|
|
87
|
+
line-height: inherit;
|
|
88
|
+
}
|
|
89
|
+
.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title) {
|
|
90
|
+
font-style: inherit;
|
|
91
|
+
}
|
|
92
|
+
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
93
|
+
letter-spacing: inherit;
|
|
94
|
+
}
|
|
77
95
|
.wp-block-post-comments-form input[type=submit] {
|
|
78
96
|
border: none;
|
|
79
97
|
box-shadow: none;
|
|
@@ -74,6 +74,24 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
+
.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title) {
|
|
78
|
+
font-weight: inherit;
|
|
79
|
+
}
|
|
80
|
+
.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title) {
|
|
81
|
+
font-family: inherit;
|
|
82
|
+
}
|
|
83
|
+
.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title), .wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title) {
|
|
84
|
+
font-size: inherit;
|
|
85
|
+
}
|
|
86
|
+
.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title) {
|
|
87
|
+
line-height: inherit;
|
|
88
|
+
}
|
|
89
|
+
.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title) {
|
|
90
|
+
font-style: inherit;
|
|
91
|
+
}
|
|
92
|
+
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
93
|
+
letter-spacing: inherit;
|
|
94
|
+
}
|
|
77
95
|
.wp-block-post-comments-form input[type=submit] {
|
|
78
96
|
border: none;
|
|
79
97
|
box-shadow: none;
|
|
@@ -74,28 +74,112 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
+
}
|
|
81
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
82
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
padding: 0;
|
|
87
|
+
color: currentColor;
|
|
88
|
+
background: transparent;
|
|
89
|
+
min-height: 200px;
|
|
90
|
+
}
|
|
91
|
+
.wp-block-post-featured-image.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 {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview,
|
|
96
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 4px;
|
|
99
|
+
left: 4px;
|
|
100
|
+
bottom: 4px;
|
|
101
|
+
right: 4px;
|
|
102
|
+
background: rgba(255, 255, 255, 0.8);
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
}
|
|
107
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before,
|
|
108
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before {
|
|
109
|
+
content: "";
|
|
80
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;
|
|
81
120
|
}
|
|
82
|
-
|
|
83
|
-
.
|
|
121
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset,
|
|
122
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset {
|
|
123
|
+
width: auto;
|
|
124
|
+
}
|
|
125
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
|
|
126
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
|
|
127
|
+
color: inherit;
|
|
128
|
+
padding: 0;
|
|
84
129
|
display: flex;
|
|
85
|
-
|
|
130
|
+
justify-content: center;
|
|
86
131
|
align-items: center;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
}
|
|
140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
141
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
|
|
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
|
+
}
|
|
147
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg,
|
|
148
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg {
|
|
149
|
+
color: #fff;
|
|
150
|
+
}
|
|
151
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration,
|
|
152
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration {
|
|
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
|
+
}
|
|
164
|
+
.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder {
|
|
165
|
+
min-height: 48px;
|
|
166
|
+
min-width: 48px;
|
|
167
|
+
height: 100%;
|
|
168
|
+
width: 100%;
|
|
91
169
|
}
|
|
92
|
-
.
|
|
93
|
-
|
|
170
|
+
.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button {
|
|
171
|
+
background: var(--wp-admin-theme-color);
|
|
172
|
+
border-color: var(--wp-admin-theme-color);
|
|
173
|
+
border-style: solid;
|
|
174
|
+
color: #fff;
|
|
175
|
+
opacity: 1;
|
|
176
|
+
visibility: visible;
|
|
94
177
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
178
|
+
|
|
179
|
+
div[data-type="core/post-featured-image"] img {
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
height: auto;
|
|
182
|
+
display: block;
|
|
99
183
|
}
|
|
100
184
|
|
|
101
185
|
.block-library-post-featured-image-dimension-controls {
|
|
@@ -74,28 +74,112 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
+
}
|
|
81
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder,
|
|
82
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
align-items: center;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
padding: 0;
|
|
87
|
+
color: currentColor;
|
|
88
|
+
background: transparent;
|
|
89
|
+
min-height: 200px;
|
|
90
|
+
}
|
|
91
|
+
.wp-block-post-featured-image.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 {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__preview,
|
|
96
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__preview {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 4px;
|
|
99
|
+
right: 4px;
|
|
100
|
+
bottom: 4px;
|
|
101
|
+
left: 4px;
|
|
102
|
+
background: rgba(255, 255, 255, 0.8);
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
}
|
|
107
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder::before,
|
|
108
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder::before {
|
|
109
|
+
content: "";
|
|
80
110
|
display: block;
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 0;
|
|
113
|
+
right: 0;
|
|
114
|
+
bottom: 0;
|
|
115
|
+
left: 0;
|
|
116
|
+
border: 1px dashed currentColor;
|
|
117
|
+
opacity: 0.4;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
border-radius: inherit;
|
|
81
120
|
}
|
|
82
|
-
|
|
83
|
-
.
|
|
121
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__fieldset,
|
|
122
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__fieldset {
|
|
123
|
+
width: auto;
|
|
124
|
+
}
|
|
125
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
|
|
126
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button {
|
|
127
|
+
color: inherit;
|
|
128
|
+
padding: 0;
|
|
84
129
|
display: flex;
|
|
85
|
-
|
|
130
|
+
justify-content: center;
|
|
86
131
|
align-items: center;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
}
|
|
140
|
+
@media (prefers-reduced-motion: reduce) {
|
|
141
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button,
|
|
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
|
+
}
|
|
147
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-button.components-button > svg,
|
|
148
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-button.components-button > svg {
|
|
149
|
+
color: #fff;
|
|
150
|
+
}
|
|
151
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .wp-block-post-featured-image__placeholder .components-placeholder__illustration,
|
|
152
|
+
.wp-block-post-featured-image.wp-block-post-featured-image .components-placeholder .components-placeholder__illustration {
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 0;
|
|
155
|
+
right: 0;
|
|
156
|
+
bottom: 0;
|
|
157
|
+
left: 0;
|
|
158
|
+
width: 100%;
|
|
159
|
+
height: 100%;
|
|
160
|
+
stroke: currentColor;
|
|
161
|
+
stroke-dasharray: 3;
|
|
162
|
+
opacity: 0.4;
|
|
163
|
+
}
|
|
164
|
+
.wp-block-post-featured-image.wp-block-post-featured-image[style*=height] .components-placeholder {
|
|
165
|
+
min-height: 48px;
|
|
166
|
+
min-width: 48px;
|
|
167
|
+
height: 100%;
|
|
168
|
+
width: 100%;
|
|
91
169
|
}
|
|
92
|
-
.
|
|
93
|
-
|
|
170
|
+
.wp-block-post-featured-image.wp-block-post-featured-image.is-selected .components-button.components-button {
|
|
171
|
+
background: var(--wp-admin-theme-color);
|
|
172
|
+
border-color: var(--wp-admin-theme-color);
|
|
173
|
+
border-style: solid;
|
|
174
|
+
color: #fff;
|
|
175
|
+
opacity: 1;
|
|
176
|
+
visibility: visible;
|
|
94
177
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
178
|
+
|
|
179
|
+
div[data-type="core/post-featured-image"] img {
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
height: auto;
|
|
182
|
+
display: block;
|
|
99
183
|
}
|
|
100
184
|
|
|
101
185
|
.block-library-post-featured-image-dimension-controls {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
bottom: 0;
|
|
155
155
|
right: 0;
|
|
156
156
|
border: 1px dashed currentColor;
|
|
157
|
-
opacity: 0.
|
|
157
|
+
opacity: 0.4;
|
|
158
158
|
pointer-events: none;
|
|
159
159
|
border-radius: inherit;
|
|
160
160
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
height: 100%;
|
|
195
195
|
stroke: currentColor;
|
|
196
196
|
stroke-dasharray: 3;
|
|
197
|
-
opacity: 0.
|
|
197
|
+
opacity: 0.4;
|
|
198
198
|
}
|
|
199
199
|
.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button {
|
|
200
200
|
background: var(--wp-admin-theme-color);
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
bottom: 0;
|
|
155
155
|
left: 0;
|
|
156
156
|
border: 1px dashed currentColor;
|
|
157
|
-
opacity: 0.
|
|
157
|
+
opacity: 0.4;
|
|
158
158
|
pointer-events: none;
|
|
159
159
|
border-radius: inherit;
|
|
160
160
|
}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
height: 100%;
|
|
195
195
|
stroke: currentColor;
|
|
196
196
|
stroke-dasharray: 3;
|
|
197
|
-
opacity: 0.
|
|
197
|
+
opacity: 0.4;
|
|
198
198
|
}
|
|
199
199
|
.wp-block-site-logo.wp-block-site-logo.is-selected .components-button.components-button {
|
|
200
200
|
background: var(--wp-admin-theme-color);
|
|
@@ -103,16 +103,13 @@
|
|
|
103
103
|
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
104
104
|
display: flex;
|
|
105
105
|
}
|
|
106
|
-
.wp-block-social-links__social-placeholder + .block-list-appender,
|
|
107
106
|
.wp-block-social-links__social-placeholder .wp-social-link {
|
|
108
107
|
padding: 0.25em;
|
|
109
108
|
}
|
|
110
|
-
.is-style-pill-shape .wp-block-social-links__social-placeholder + .block-list-appender,
|
|
111
109
|
.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
|
|
112
110
|
padding-right: calc((2/3) * 1em);
|
|
113
111
|
padding-left: calc((2/3) * 1em);
|
|
114
112
|
}
|
|
115
|
-
.is-style-logos-only .wp-block-social-links__social-placeholder + .block-list-appender,
|
|
116
113
|
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link {
|
|
117
114
|
padding: 0;
|
|
118
115
|
}
|
|
@@ -128,6 +125,7 @@
|
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
128
|
+
min-height: 24px;
|
|
131
129
|
list-style: none;
|
|
132
130
|
order: 2;
|
|
133
131
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
@@ -138,38 +136,6 @@
|
|
|
138
136
|
cursor: default;
|
|
139
137
|
padding-left: 8px;
|
|
140
138
|
}
|
|
141
|
-
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
|
|
142
|
-
margin-left: 8px;
|
|
143
|
-
padding: 0.25em;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.wp-block-social-links .block-list-appender {
|
|
147
|
-
margin: 4px 0 4px auto;
|
|
148
|
-
border-radius: 9999px;
|
|
149
|
-
}
|
|
150
|
-
.wp-block-social-links .block-list-appender .block-editor-inserter {
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
font-size: inherit;
|
|
155
|
-
width: 1em;
|
|
156
|
-
height: 1em;
|
|
157
|
-
}
|
|
158
|
-
.has-small-icon-size .wp-block-social-links .block-list-appender {
|
|
159
|
-
font-size: 16px;
|
|
160
|
-
}
|
|
161
|
-
.has-normal-icon-size .wp-block-social-links .block-list-appender {
|
|
162
|
-
font-size: 24px;
|
|
163
|
-
}
|
|
164
|
-
.has-large-icon-size .wp-block-social-links .block-list-appender {
|
|
165
|
-
font-size: 36px;
|
|
166
|
-
}
|
|
167
|
-
.has-huge-icon-size .wp-block-social-links .block-list-appender {
|
|
168
|
-
font-size: 48px;
|
|
169
|
-
}
|
|
170
|
-
.wp-block-social-links .block-list-appender::before {
|
|
171
|
-
content: none;
|
|
172
|
-
}
|
|
173
139
|
|
|
174
140
|
.wp-block[data-align=center] > .wp-block-social-links {
|
|
175
141
|
justify-content: center;
|
|
@@ -103,16 +103,13 @@
|
|
|
103
103
|
.wp-block-social-links__social-placeholder > .wp-block-social-links__social-placeholder-icons {
|
|
104
104
|
display: flex;
|
|
105
105
|
}
|
|
106
|
-
.wp-block-social-links__social-placeholder + .block-list-appender,
|
|
107
106
|
.wp-block-social-links__social-placeholder .wp-social-link {
|
|
108
107
|
padding: 0.25em;
|
|
109
108
|
}
|
|
110
|
-
.is-style-pill-shape .wp-block-social-links__social-placeholder + .block-list-appender,
|
|
111
109
|
.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-social-link {
|
|
112
110
|
padding-left: calc((2/3) * 1em);
|
|
113
111
|
padding-right: calc((2/3) * 1em);
|
|
114
112
|
}
|
|
115
|
-
.is-style-logos-only .wp-block-social-links__social-placeholder + .block-list-appender,
|
|
116
113
|
.is-style-logos-only .wp-block-social-links__social-placeholder .wp-social-link {
|
|
117
114
|
padding: 0;
|
|
118
115
|
}
|
|
@@ -128,6 +125,7 @@
|
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
.wp-block-social-links .wp-block-social-links__social-prompt {
|
|
128
|
+
min-height: 24px;
|
|
131
129
|
list-style: none;
|
|
132
130
|
order: 2;
|
|
133
131
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
@@ -138,38 +136,6 @@
|
|
|
138
136
|
cursor: default;
|
|
139
137
|
padding-right: 8px;
|
|
140
138
|
}
|
|
141
|
-
.wp-block-social-links .wp-block-social-links__social-prompt + .block-list-appender {
|
|
142
|
-
margin-right: 8px;
|
|
143
|
-
padding: 0.25em;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.wp-block-social-links .block-list-appender {
|
|
147
|
-
margin: 4px auto 4px 0;
|
|
148
|
-
border-radius: 9999px;
|
|
149
|
-
}
|
|
150
|
-
.wp-block-social-links .block-list-appender .block-editor-inserter {
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
font-size: inherit;
|
|
155
|
-
width: 1em;
|
|
156
|
-
height: 1em;
|
|
157
|
-
}
|
|
158
|
-
.has-small-icon-size .wp-block-social-links .block-list-appender {
|
|
159
|
-
font-size: 16px;
|
|
160
|
-
}
|
|
161
|
-
.has-normal-icon-size .wp-block-social-links .block-list-appender {
|
|
162
|
-
font-size: 24px;
|
|
163
|
-
}
|
|
164
|
-
.has-large-icon-size .wp-block-social-links .block-list-appender {
|
|
165
|
-
font-size: 36px;
|
|
166
|
-
}
|
|
167
|
-
.has-huge-icon-size .wp-block-social-links .block-list-appender {
|
|
168
|
-
font-size: 48px;
|
|
169
|
-
}
|
|
170
|
-
.wp-block-social-links .block-list-appender::before {
|
|
171
|
-
content: none;
|
|
172
|
-
}
|
|
173
139
|
|
|
174
140
|
.wp-block[data-align=center] > .wp-block-social-links {
|
|
175
141
|
justify-content: center;
|