@wordpress/block-library 6.0.7 → 6.0.8
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/transforms.js +2 -0
- package/build/cover/transforms.js.map +1 -1
- package/build/navigation/edit/index.js +14 -2
- 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/responsive-wrapper.js +5 -2
- package/build/navigation/edit/responsive-wrapper.js.map +1 -1
- package/build/page-list/edit.js +40 -42
- package/build/page-list/edit.js.map +1 -1
- package/build/post-featured-image/edit.js +54 -23
- package/build/post-featured-image/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/navigation/edit/index.js +14 -2
- 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/responsive-wrapper.js +5 -2
- package/build-module/navigation/edit/responsive-wrapper.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/post-featured-image/edit.js +56 -26
- package/build-module/post-featured-image/edit.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 +101 -51
- package/build-style/editor.css +101 -51
- package/build-style/navigation/style-rtl.css +33 -1
- package/build-style/navigation/style.css +33 -1
- 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/social-links/editor-rtl.css +1 -35
- package/build-style/social-links/editor.css +1 -35
- package/build-style/style-rtl.css +59 -25
- package/build-style/style.css +59 -25
- package/build-style/theme-rtl.css +1 -1
- package/build-style/theme.css +1 -1
- package/package.json +7 -7
- package/src/calendar/index.php +1 -1
- package/src/code/theme.scss +1 -1
- package/src/cover/style.scss +9 -2
- package/src/cover/transforms.js +2 -0
- package/src/gallery/index.php +1 -1
- package/src/home-link/index.php +1 -1
- package/src/image/index.php +1 -1
- package/src/navigation/edit/index.js +25 -0
- package/src/navigation/edit/inner-blocks.js +2 -1
- package/src/navigation/edit/responsive-wrapper.js +8 -1
- package/src/navigation/index.php +45 -5
- package/src/navigation/style.scss +46 -2
- package/src/navigation-area/index.php +1 -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 +1 -1
- package/src/post-comments-form/style.scss +20 -1
- package/src/post-featured-image/edit.js +61 -26
- package/src/post-featured-image/editor.scss +124 -20
- package/src/site-logo/editor.scss +1 -0
- package/src/social-links/editor.scss +1 -47
- package/src/style.scss +0 -1
- package/src/table-of-contents/index.php +1 -1
- package/build-style/navigation-submenu/style-rtl.css +0 -97
- package/build-style/navigation-submenu/style.css +0 -97
- package/src/navigation-submenu/style.scss +0 -25
|
@@ -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;
|
|
@@ -398,17 +398,23 @@
|
|
|
398
398
|
background-size: auto;
|
|
399
399
|
}
|
|
400
400
|
.wp-block-cover-image.has-background-dim:not([class*=-background-color]),
|
|
401
|
-
.wp-block-cover.has-background-dim:not([class*=-background-color])
|
|
401
|
+
.wp-block-cover-image .has-background-dim:not([class*=-background-color]),
|
|
402
|
+
.wp-block-cover.has-background-dim:not([class*=-background-color]),
|
|
403
|
+
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
402
404
|
background-color: #000;
|
|
403
405
|
}
|
|
404
406
|
.wp-block-cover-image.has-background-dim::before,
|
|
405
|
-
.wp-block-cover.has-background-dim::before
|
|
407
|
+
.wp-block-cover-image .has-background-dim::before,
|
|
408
|
+
.wp-block-cover.has-background-dim::before,
|
|
409
|
+
.wp-block-cover .has-background-dim::before {
|
|
406
410
|
content: "";
|
|
407
411
|
background-color: inherit;
|
|
408
412
|
}
|
|
409
413
|
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
|
|
414
|
+
.wp-block-cover-image .has-background-dim:not(.has-background-gradient)::before,
|
|
410
415
|
.wp-block-cover-image .wp-block-cover__gradient-background,
|
|
411
416
|
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
|
|
417
|
+
.wp-block-cover .has-background-dim:not(.has-background-gradient)::before,
|
|
412
418
|
.wp-block-cover .wp-block-cover__gradient-background {
|
|
413
419
|
position: absolute;
|
|
414
420
|
top: 0;
|
|
@@ -1620,6 +1626,28 @@ ul.has-background {
|
|
|
1620
1626
|
}
|
|
1621
1627
|
}
|
|
1622
1628
|
|
|
1629
|
+
.wp-block-navigation-submenu {
|
|
1630
|
+
position: relative;
|
|
1631
|
+
display: flex;
|
|
1632
|
+
}
|
|
1633
|
+
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
1634
|
+
stroke: currentColor;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
button.wp-block-navigation-item__content {
|
|
1638
|
+
background-color: transparent;
|
|
1639
|
+
border: none;
|
|
1640
|
+
color: currentColor;
|
|
1641
|
+
font-size: inherit;
|
|
1642
|
+
font-family: inherit;
|
|
1643
|
+
line-height: inherit;
|
|
1644
|
+
text-align: right;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.wp-block-navigation-submenu__toggle {
|
|
1648
|
+
cursor: pointer;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1623
1651
|
/**
|
|
1624
1652
|
* Margins
|
|
1625
1653
|
*/
|
|
@@ -1694,6 +1722,11 @@ ul.has-background {
|
|
|
1694
1722
|
display: none;
|
|
1695
1723
|
}
|
|
1696
1724
|
|
|
1725
|
+
.wp-block-navigation__container:only-child,
|
|
1726
|
+
.wp-block-page-list:only-child {
|
|
1727
|
+
flex-grow: 1;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1697
1730
|
/**
|
|
1698
1731
|
* Mobile menu.
|
|
1699
1732
|
*/
|
|
@@ -1712,6 +1745,10 @@ ul.has-background {
|
|
|
1712
1745
|
justify-content: var(--layout-justify, initial);
|
|
1713
1746
|
align-items: var(--layout-align, initial);
|
|
1714
1747
|
}
|
|
1748
|
+
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
|
|
1749
|
+
color: inherit !important;
|
|
1750
|
+
background-color: inherit !important;
|
|
1751
|
+
}
|
|
1715
1752
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1716
1753
|
display: flex;
|
|
1717
1754
|
flex-direction: column;
|
|
@@ -1765,7 +1802,8 @@ ul.has-background {
|
|
|
1765
1802
|
align-items: var(--layout-justification-setting, initial);
|
|
1766
1803
|
}
|
|
1767
1804
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
|
|
1768
|
-
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item
|
|
1805
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
|
|
1806
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
|
|
1769
1807
|
color: inherit !important;
|
|
1770
1808
|
background: transparent !important;
|
|
1771
1809
|
}
|
|
@@ -1849,28 +1887,6 @@ html.has-modal-open {
|
|
|
1849
1887
|
overflow-wrap: break-word;
|
|
1850
1888
|
}
|
|
1851
1889
|
|
|
1852
|
-
.wp-block-navigation-submenu {
|
|
1853
|
-
position: relative;
|
|
1854
|
-
display: flex;
|
|
1855
|
-
}
|
|
1856
|
-
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
1857
|
-
stroke: currentColor;
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
button.wp-block-navigation-item__content {
|
|
1861
|
-
background-color: transparent;
|
|
1862
|
-
border: none;
|
|
1863
|
-
color: currentColor;
|
|
1864
|
-
font-size: inherit;
|
|
1865
|
-
font-family: inherit;
|
|
1866
|
-
line-height: inherit;
|
|
1867
|
-
text-align: right;
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
.wp-block-navigation-submenu__toggle {
|
|
1871
|
-
cursor: pointer;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
1890
|
.wp-block-navigation .wp-block-home-link__content {
|
|
1875
1891
|
color: inherit;
|
|
1876
1892
|
display: block;
|
|
@@ -2059,6 +2075,24 @@ p.has-background {
|
|
|
2059
2075
|
border: none;
|
|
2060
2076
|
}
|
|
2061
2077
|
|
|
2078
|
+
.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title) {
|
|
2079
|
+
font-weight: inherit;
|
|
2080
|
+
}
|
|
2081
|
+
.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title) {
|
|
2082
|
+
font-family: inherit;
|
|
2083
|
+
}
|
|
2084
|
+
.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title), .wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title) {
|
|
2085
|
+
font-size: inherit;
|
|
2086
|
+
}
|
|
2087
|
+
.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title) {
|
|
2088
|
+
line-height: inherit;
|
|
2089
|
+
}
|
|
2090
|
+
.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title) {
|
|
2091
|
+
font-style: inherit;
|
|
2092
|
+
}
|
|
2093
|
+
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
2094
|
+
letter-spacing: inherit;
|
|
2095
|
+
}
|
|
2062
2096
|
.wp-block-post-comments-form input[type=submit] {
|
|
2063
2097
|
border: none;
|
|
2064
2098
|
box-shadow: none;
|
package/build-style/style.css
CHANGED
|
@@ -401,17 +401,23 @@
|
|
|
401
401
|
background-size: auto;
|
|
402
402
|
}
|
|
403
403
|
.wp-block-cover-image.has-background-dim:not([class*=-background-color]),
|
|
404
|
-
.wp-block-cover.has-background-dim:not([class*=-background-color])
|
|
404
|
+
.wp-block-cover-image .has-background-dim:not([class*=-background-color]),
|
|
405
|
+
.wp-block-cover.has-background-dim:not([class*=-background-color]),
|
|
406
|
+
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
405
407
|
background-color: #000;
|
|
406
408
|
}
|
|
407
409
|
.wp-block-cover-image.has-background-dim::before,
|
|
408
|
-
.wp-block-cover.has-background-dim::before
|
|
410
|
+
.wp-block-cover-image .has-background-dim::before,
|
|
411
|
+
.wp-block-cover.has-background-dim::before,
|
|
412
|
+
.wp-block-cover .has-background-dim::before {
|
|
409
413
|
content: "";
|
|
410
414
|
background-color: inherit;
|
|
411
415
|
}
|
|
412
416
|
.wp-block-cover-image.has-background-dim:not(.has-background-gradient)::before,
|
|
417
|
+
.wp-block-cover-image .has-background-dim:not(.has-background-gradient)::before,
|
|
413
418
|
.wp-block-cover-image .wp-block-cover__gradient-background,
|
|
414
419
|
.wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
|
|
420
|
+
.wp-block-cover .has-background-dim:not(.has-background-gradient)::before,
|
|
415
421
|
.wp-block-cover .wp-block-cover__gradient-background {
|
|
416
422
|
position: absolute;
|
|
417
423
|
top: 0;
|
|
@@ -1642,6 +1648,28 @@ ul.has-background {
|
|
|
1642
1648
|
}
|
|
1643
1649
|
}
|
|
1644
1650
|
|
|
1651
|
+
.wp-block-navigation-submenu {
|
|
1652
|
+
position: relative;
|
|
1653
|
+
display: flex;
|
|
1654
|
+
}
|
|
1655
|
+
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
1656
|
+
stroke: currentColor;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
button.wp-block-navigation-item__content {
|
|
1660
|
+
background-color: transparent;
|
|
1661
|
+
border: none;
|
|
1662
|
+
color: currentColor;
|
|
1663
|
+
font-size: inherit;
|
|
1664
|
+
font-family: inherit;
|
|
1665
|
+
line-height: inherit;
|
|
1666
|
+
text-align: left;
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
.wp-block-navigation-submenu__toggle {
|
|
1670
|
+
cursor: pointer;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1645
1673
|
/**
|
|
1646
1674
|
* Margins
|
|
1647
1675
|
*/
|
|
@@ -1716,6 +1744,11 @@ ul.has-background {
|
|
|
1716
1744
|
display: none;
|
|
1717
1745
|
}
|
|
1718
1746
|
|
|
1747
|
+
.wp-block-navigation__container:only-child,
|
|
1748
|
+
.wp-block-page-list:only-child {
|
|
1749
|
+
flex-grow: 1;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1719
1752
|
/**
|
|
1720
1753
|
* Mobile menu.
|
|
1721
1754
|
*/
|
|
@@ -1734,6 +1767,10 @@ ul.has-background {
|
|
|
1734
1767
|
justify-content: var(--layout-justify, initial);
|
|
1735
1768
|
align-items: var(--layout-align, initial);
|
|
1736
1769
|
}
|
|
1770
|
+
.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) {
|
|
1771
|
+
color: inherit !important;
|
|
1772
|
+
background-color: inherit !important;
|
|
1773
|
+
}
|
|
1737
1774
|
.wp-block-navigation__responsive-container.is-menu-open {
|
|
1738
1775
|
display: flex;
|
|
1739
1776
|
flex-direction: column;
|
|
@@ -1787,7 +1824,8 @@ ul.has-background {
|
|
|
1787
1824
|
align-items: var(--layout-justification-setting, initial);
|
|
1788
1825
|
}
|
|
1789
1826
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation__submenu-container,
|
|
1790
|
-
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item
|
|
1827
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
|
|
1828
|
+
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
|
|
1791
1829
|
color: inherit !important;
|
|
1792
1830
|
background: transparent !important;
|
|
1793
1831
|
}
|
|
@@ -1871,28 +1909,6 @@ html.has-modal-open {
|
|
|
1871
1909
|
overflow-wrap: break-word;
|
|
1872
1910
|
}
|
|
1873
1911
|
|
|
1874
|
-
.wp-block-navigation-submenu {
|
|
1875
|
-
position: relative;
|
|
1876
|
-
display: flex;
|
|
1877
|
-
}
|
|
1878
|
-
.wp-block-navigation-submenu .wp-block-navigation__submenu-icon svg {
|
|
1879
|
-
stroke: currentColor;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
button.wp-block-navigation-item__content {
|
|
1883
|
-
background-color: transparent;
|
|
1884
|
-
border: none;
|
|
1885
|
-
color: currentColor;
|
|
1886
|
-
font-size: inherit;
|
|
1887
|
-
font-family: inherit;
|
|
1888
|
-
line-height: inherit;
|
|
1889
|
-
text-align: left;
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
.wp-block-navigation-submenu__toggle {
|
|
1893
|
-
cursor: pointer;
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
1912
|
.wp-block-navigation .wp-block-home-link__content {
|
|
1897
1913
|
color: inherit;
|
|
1898
1914
|
display: block;
|
|
@@ -2081,6 +2097,24 @@ p.has-background {
|
|
|
2081
2097
|
border: none;
|
|
2082
2098
|
}
|
|
2083
2099
|
|
|
2100
|
+
.wp-block-post-comments-form[style*=font-weight] :where(.comment-reply-title) {
|
|
2101
|
+
font-weight: inherit;
|
|
2102
|
+
}
|
|
2103
|
+
.wp-block-post-comments-form[style*=font-family] :where(.comment-reply-title) {
|
|
2104
|
+
font-family: inherit;
|
|
2105
|
+
}
|
|
2106
|
+
.wp-block-post-comments-form[class*=-font-size] :where(.comment-reply-title), .wp-block-post-comments-form[style*=font-size] :where(.comment-reply-title) {
|
|
2107
|
+
font-size: inherit;
|
|
2108
|
+
}
|
|
2109
|
+
.wp-block-post-comments-form[style*=line-height] :where(.comment-reply-title) {
|
|
2110
|
+
line-height: inherit;
|
|
2111
|
+
}
|
|
2112
|
+
.wp-block-post-comments-form[style*=font-style] :where(.comment-reply-title) {
|
|
2113
|
+
font-style: inherit;
|
|
2114
|
+
}
|
|
2115
|
+
.wp-block-post-comments-form[style*=letter-spacing] :where(.comment-reply-title) {
|
|
2116
|
+
letter-spacing: inherit;
|
|
2117
|
+
}
|
|
2084
2118
|
.wp-block-post-comments-form input[type=submit] {
|
|
2085
2119
|
border: none;
|
|
2086
2120
|
box-shadow: none;
|
package/build-style/theme.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@wordpress/api-fetch": "^5.2.6",
|
|
38
38
|
"@wordpress/autop": "^3.2.3",
|
|
39
39
|
"@wordpress/blob": "^3.2.2",
|
|
40
|
-
"@wordpress/block-editor": "^8.0.
|
|
40
|
+
"@wordpress/block-editor": "^8.0.4",
|
|
41
41
|
"@wordpress/blocks": "^11.1.4",
|
|
42
|
-
"@wordpress/components": "^19.0.
|
|
42
|
+
"@wordpress/components": "^19.0.4",
|
|
43
43
|
"@wordpress/compose": "^5.0.6",
|
|
44
44
|
"@wordpress/core-data": "^4.0.7",
|
|
45
45
|
"@wordpress/data": "^6.1.4",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@wordpress/html-entities": "^3.2.3",
|
|
53
53
|
"@wordpress/i18n": "^4.2.4",
|
|
54
54
|
"@wordpress/icons": "^6.1.1",
|
|
55
|
-
"@wordpress/interface": "^4.1.
|
|
55
|
+
"@wordpress/interface": "^4.1.6",
|
|
56
56
|
"@wordpress/is-shallow-equal": "^4.2.1",
|
|
57
57
|
"@wordpress/keycodes": "^3.2.4",
|
|
58
58
|
"@wordpress/notices": "^3.2.7",
|
|
59
59
|
"@wordpress/primitives": "^3.0.4",
|
|
60
|
-
"@wordpress/reusable-blocks": "^3.0.
|
|
60
|
+
"@wordpress/reusable-blocks": "^3.0.10",
|
|
61
61
|
"@wordpress/rich-text": "^5.0.6",
|
|
62
|
-
"@wordpress/server-side-render": "^3.0.
|
|
62
|
+
"@wordpress/server-side-render": "^3.0.8",
|
|
63
63
|
"@wordpress/url": "^3.3.1",
|
|
64
64
|
"@wordpress/viewport": "^4.0.6",
|
|
65
65
|
"classnames": "^2.3.1",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ca22e8852fcc91889510e417bdaa180ad60f8dac"
|
|
77
77
|
}
|
package/src/calendar/index.php
CHANGED
|
@@ -19,7 +19,7 @@ function render_block_core_calendar( $attributes ) {
|
|
|
19
19
|
// when there are no published posts on the site.
|
|
20
20
|
if ( ! block_core_calendar_has_published_posts() ) {
|
|
21
21
|
if ( is_user_logged_in() ) {
|
|
22
|
-
return '<div>' . __( 'The calendar block is hidden because there are no published posts.'
|
|
22
|
+
return '<div>' . __( 'The calendar block is hidden because there are no published posts.' ) . '</div>';
|
|
23
23
|
}
|
|
24
24
|
return '';
|
|
25
25
|
}
|
package/src/code/theme.scss
CHANGED
package/src/cover/style.scss
CHANGED
|
@@ -43,16 +43,23 @@
|
|
|
43
43
|
* - Issue with background color specificity: https://github.com/WordPress/gutenberg/issues/26545
|
|
44
44
|
* - Issue with alternative fix: https://github.com/WordPress/gutenberg/issues/26545
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
// the first selector is required for old Cover markup
|
|
48
|
+
&.has-background-dim:not([class*="-background-color"]),
|
|
49
|
+
.has-background-dim:not([class*="-background-color"]) {
|
|
47
50
|
background-color: $black;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
|
|
53
|
+
// the first selector is required for old Cover markup
|
|
54
|
+
&.has-background-dim::before,
|
|
55
|
+
.has-background-dim::before {
|
|
51
56
|
content: "";
|
|
52
57
|
background-color: inherit;
|
|
53
58
|
}
|
|
54
59
|
|
|
60
|
+
// the first selector is required for old Cover markup
|
|
55
61
|
&.has-background-dim:not(.has-background-gradient)::before,
|
|
62
|
+
.has-background-dim:not(.has-background-gradient)::before,
|
|
56
63
|
.wp-block-cover__gradient-background {
|
|
57
64
|
position: absolute;
|
|
58
65
|
top: 0;
|
package/src/cover/transforms.js
CHANGED
package/src/gallery/index.php
CHANGED
package/src/home-link/index.php
CHANGED
package/src/image/index.php
CHANGED
|
@@ -212,6 +212,29 @@ function Navigation( {
|
|
|
212
212
|
},
|
|
213
213
|
} );
|
|
214
214
|
|
|
215
|
+
const overlayClassnames = classnames( {
|
|
216
|
+
'has-text-color':
|
|
217
|
+
!! overlayTextColor.color || !! overlayTextColor?.class,
|
|
218
|
+
[ getColorClassName(
|
|
219
|
+
'color',
|
|
220
|
+
overlayTextColor?.slug
|
|
221
|
+
) ]: !! overlayTextColor?.slug,
|
|
222
|
+
'has-background':
|
|
223
|
+
!! overlayBackgroundColor.color || overlayBackgroundColor?.class,
|
|
224
|
+
[ getColorClassName(
|
|
225
|
+
'background-color',
|
|
226
|
+
overlayBackgroundColor?.slug
|
|
227
|
+
) ]: !! overlayBackgroundColor?.slug,
|
|
228
|
+
} );
|
|
229
|
+
|
|
230
|
+
const overlayStyles = {
|
|
231
|
+
color: ! overlayTextColor?.slug && overlayTextColor?.color,
|
|
232
|
+
backgroundColor:
|
|
233
|
+
! overlayBackgroundColor?.slug &&
|
|
234
|
+
overlayBackgroundColor?.color &&
|
|
235
|
+
overlayBackgroundColor.color,
|
|
236
|
+
};
|
|
237
|
+
|
|
215
238
|
// Turn on contrast checker for web only since it's not supported on mobile yet.
|
|
216
239
|
const enableContrastChecking = Platform.OS === 'web';
|
|
217
240
|
|
|
@@ -494,6 +517,8 @@ function Navigation( {
|
|
|
494
517
|
isOpen={ isResponsiveMenuOpen }
|
|
495
518
|
isResponsive={ 'never' !== overlayMenu }
|
|
496
519
|
isHiddenByDefault={ 'always' === overlayMenu }
|
|
520
|
+
classNames={ overlayClassnames }
|
|
521
|
+
styles={ overlayStyles }
|
|
497
522
|
>
|
|
498
523
|
{ isEntityAvailable && (
|
|
499
524
|
<NavigationInnerBlocks
|
|
@@ -18,12 +18,15 @@ export default function ResponsiveWrapper( {
|
|
|
18
18
|
isResponsive,
|
|
19
19
|
onToggle,
|
|
20
20
|
isHiddenByDefault,
|
|
21
|
+
classNames,
|
|
22
|
+
styles,
|
|
21
23
|
} ) {
|
|
22
24
|
if ( ! isResponsive ) {
|
|
23
25
|
return children;
|
|
24
26
|
}
|
|
25
27
|
const responsiveContainerClasses = classnames(
|
|
26
28
|
'wp-block-navigation__responsive-container',
|
|
29
|
+
classNames,
|
|
27
30
|
{
|
|
28
31
|
'is-menu-open': isOpen,
|
|
29
32
|
'hidden-by-default': isHiddenByDefault,
|
|
@@ -61,7 +64,11 @@ export default function ResponsiveWrapper( {
|
|
|
61
64
|
</Button>
|
|
62
65
|
) }
|
|
63
66
|
|
|
64
|
-
<div
|
|
67
|
+
<div
|
|
68
|
+
className={ responsiveContainerClasses }
|
|
69
|
+
style={ styles }
|
|
70
|
+
id={ modalId }
|
|
71
|
+
>
|
|
65
72
|
<div
|
|
66
73
|
className="wp-block-navigation__responsive-close"
|
|
67
74
|
tabIndex="-1"
|
package/src/navigation/index.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Server-side rendering of the `core/navigation` block.
|
|
4
4
|
*
|
|
5
|
-
* @package
|
|
5
|
+
* @package WordPress
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
*/
|
|
15
15
|
function block_core_navigation_build_css_colors( $attributes ) {
|
|
16
16
|
$colors = array(
|
|
17
|
-
'css_classes'
|
|
18
|
-
'inline_styles'
|
|
17
|
+
'css_classes' => array(),
|
|
18
|
+
'inline_styles' => '',
|
|
19
|
+
'overlay_css_classes' => array(),
|
|
20
|
+
'overlay_inline_styles' => '',
|
|
19
21
|
);
|
|
20
22
|
|
|
21
23
|
// Text color.
|
|
@@ -54,6 +56,42 @@ function block_core_navigation_build_css_colors( $attributes ) {
|
|
|
54
56
|
$colors['inline_styles'] .= sprintf( 'background-color: %s;', $attributes['customBackgroundColor'] );
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
// Overlay text color.
|
|
60
|
+
$has_named_overlay_text_color = array_key_exists( 'overlayTextColor', $attributes );
|
|
61
|
+
$has_custom_overlay_text_color = array_key_exists( 'customOverlayTextColor', $attributes );
|
|
62
|
+
|
|
63
|
+
// If has overlay text color.
|
|
64
|
+
if ( $has_custom_overlay_text_color || $has_named_overlay_text_color ) {
|
|
65
|
+
// Add has-text-color class.
|
|
66
|
+
$colors['overlay_css_classes'][] = 'has-text-color';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if ( $has_named_overlay_text_color ) {
|
|
70
|
+
// Add the overlay color class.
|
|
71
|
+
$colors['overlay_css_classes'][] = sprintf( 'has-%s-color', $attributes['overlayTextColor'] );
|
|
72
|
+
} elseif ( $has_custom_overlay_text_color ) {
|
|
73
|
+
// Add the custom overlay color inline style.
|
|
74
|
+
$colors['overlay_inline_styles'] .= sprintf( 'color: %s;', $attributes['customOverlayTextColor'] );
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Overlay background color.
|
|
78
|
+
$has_named_overlay_background_color = array_key_exists( 'overlayBackgroundColor', $attributes );
|
|
79
|
+
$has_custom_overlay_background_color = array_key_exists( 'customOverlayBackgroundColor', $attributes );
|
|
80
|
+
|
|
81
|
+
// If has overlay background color.
|
|
82
|
+
if ( $has_custom_overlay_background_color || $has_named_overlay_background_color ) {
|
|
83
|
+
// Add has-background class.
|
|
84
|
+
$colors['overlay_css_classes'][] = 'has-background';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if ( $has_named_overlay_background_color ) {
|
|
88
|
+
// Add the overlay background-color class.
|
|
89
|
+
$colors['overlay_css_classes'][] = sprintf( 'has-%s-background-color', $attributes['overlayBackgroundColor'] );
|
|
90
|
+
} elseif ( $has_custom_overlay_background_color ) {
|
|
91
|
+
// Add the custom overlay background-color inline style.
|
|
92
|
+
$colors['overlay_inline_styles'] .= sprintf( 'background-color: %s;', $attributes['customOverlayBackgroundColor'] );
|
|
93
|
+
}
|
|
94
|
+
|
|
57
95
|
return $colors;
|
|
58
96
|
}
|
|
59
97
|
|
|
@@ -247,6 +285,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
|
|
247
285
|
$responsive_container_classes = array(
|
|
248
286
|
'wp-block-navigation__responsive-container',
|
|
249
287
|
$is_hidden_by_default ? 'hidden-by-default' : '',
|
|
288
|
+
implode( ' ', $colors['overlay_css_classes'] ),
|
|
250
289
|
);
|
|
251
290
|
$open_button_classes = array(
|
|
252
291
|
'wp-block-navigation__responsive-container-open',
|
|
@@ -255,7 +294,7 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
|
|
255
294
|
|
|
256
295
|
$responsive_container_markup = sprintf(
|
|
257
296
|
'<button aria-expanded="false" aria-haspopup="true" aria-label="%3$s" class="%6$s" data-micromodal-trigger="modal-%1$s"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><rect x="4" y="7.5" width="16" height="1.5" /><rect x="4" y="15" width="16" height="1.5" /></svg></button>
|
|
258
|
-
<div class="%5$s" id="modal-%1$s">
|
|
297
|
+
<div class="%5$s" style="%7$s" id="modal-%1$s">
|
|
259
298
|
<div class="wp-block-navigation__responsive-close" tabindex="-1" data-micromodal-close>
|
|
260
299
|
<div class="wp-block-navigation__responsive-dialog" role="dialog" aria-modal="true" aria-labelledby="modal-%1$s-title" >
|
|
261
300
|
<button aria-label="%4$s" data-micromodal-close class="wp-block-navigation__responsive-container-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-hidden="true" focusable="false"><path d="M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"></path></svg></button>
|
|
@@ -270,7 +309,8 @@ function render_block_core_navigation( $attributes, $content, $block ) {
|
|
|
270
309
|
__( 'Open menu' ), // Open button label.
|
|
271
310
|
__( 'Close menu' ), // Close button label.
|
|
272
311
|
implode( ' ', $responsive_container_classes ),
|
|
273
|
-
implode( ' ', $open_button_classes )
|
|
312
|
+
implode( ' ', $open_button_classes ),
|
|
313
|
+
$colors['overlay_inline_styles']
|
|
274
314
|
);
|
|
275
315
|
|
|
276
316
|
return sprintf(
|