Skip to content

Commit 75cc8dd

Browse files
committed
WP Theme updates
1 parent 6e9d625 commit 75cc8dd

30 files changed

+422
-444
lines changed

src/web/app/themes/twentytwentyone/assets/css/ie-editor.css

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@
119119
}
120120
}
121121

122+
b,
123+
strong {
124+
font-weight: 700;
125+
}
126+
122127
blockquote {
123128
padding: 0;
124129
position: relative;
@@ -863,19 +868,6 @@ a:hover {
863868
color: #fff;
864869
}
865870

866-
.wp-block-group {
867-
display: block;
868-
clear: both;
869-
display: flow-root;
870-
}
871-
872-
.wp-block-group:before,
873-
.wp-block-group:after {
874-
content: "";
875-
display: block;
876-
clear: both;
877-
}
878-
879871
.wp-block-group.has-background {
880872
padding: 30px;
881873
}
@@ -1461,13 +1453,13 @@ dt {
14611453
border: 3px solid #28303d;
14621454
}
14631455

1464-
.wp-block-navigation .wp-block-navigation__container {
1465-
background: #d1e4dd;
1466-
padding: 0;
1456+
.wp-block-navigation [data-block] {
1457+
margin-top: revert;
1458+
margin-bottom: revert;
14671459
}
14681460

1469-
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content {
1470-
padding: 13px;
1461+
.wp-block-navigation .wp-block-navigation__container {
1462+
background: #d1e4dd;
14711463
}
14721464

14731465
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__label {

src/web/app/themes/twentytwentyone/assets/css/ie-editor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/app/themes/twentytwentyone/assets/css/ie.css

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Author: the WordPress team
77
Author URI: https://wordpress.org/
88
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
99
Requires at least: 5.3
10-
Tested up to: 6.0
10+
Tested up to: 6.3
1111
Requires PHP: 5.6
12-
Version: 1.7
12+
Version: 1.9
1313
License: GNU General Public License v2 or later
1414
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1515
Text Domain: twentytwentyone
@@ -3538,14 +3538,6 @@ dd {
35383538
border: 3px solid #28303d;
35393539
}
35403540

3541-
.wp-block-navigation .wp-block-navigation-link {
3542-
padding: 0;
3543-
}
3544-
3545-
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content {
3546-
padding: 13px;
3547-
}
3548-
35493541
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__label {
35503542
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
35513543
font-size: 1.25rem;
@@ -3563,30 +3555,17 @@ dd {
35633555
.wp-block-navigation > .wp-block-navigation__container .has-child .wp-block-navigation__container {
35643556
border: none;
35653557
left: 0;
3566-
margin-left: 13px;
35673558
min-width: max-content;
35683559
opacity: 0;
35693560
padding: 0;
35703561
position: inherit;
35713562
top: inherit;
35723563
}
35733564

3574-
.wp-block-navigation > .wp-block-navigation__container .has-child .wp-block-navigation__container .wp-block-navigation-link .wp-block-navigation-link__content {
3575-
display: inline-block;
3576-
padding: 7px 13px;
3577-
}
3578-
35793565
.wp-block-navigation > .wp-block-navigation__container .has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon {
35803566
display: none;
35813567
}
35823568

3583-
.wp-block-navigation > .wp-block-navigation__container .has-child:hover .wp-block-navigation__container,
3584-
.wp-block-navigation > .wp-block-navigation__container .has-child:focus-within .wp-block-navigation__container {
3585-
display: block;
3586-
opacity: 1;
3587-
visibility: visible;
3588-
}
3589-
35903569
.wp-block-navigation > .wp-block-navigation__container > .has-child > .wp-block-navigation__container {
35913570
background: #d1e4dd;
35923571
margin: 0;

src/web/app/themes/twentytwentyone/assets/css/ie.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/app/themes/twentytwentyone/assets/css/style-editor.css

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@
302302
}
303303
}
304304

305+
b,
306+
strong {
307+
font-weight: 700;
308+
}
309+
305310
blockquote {
306311
padding: 0;
307312
position: relative;
@@ -931,19 +936,6 @@ a:hover {
931936
color: var(--global--color-white);
932937
}
933938

934-
.wp-block-group {
935-
display: block;
936-
clear: both;
937-
display: flow-root;
938-
}
939-
940-
.wp-block-group:before,
941-
.wp-block-group:after {
942-
content: "";
943-
display: block;
944-
clear: both;
945-
}
946-
947939
.wp-block-group.has-background {
948940
padding: var(--global--spacing-vertical);
949941
}
@@ -1376,13 +1368,13 @@ dt {
13761368
border: calc(3 * var(--separator--height)) solid var(--global--color-border);
13771369
}
13781370

1379-
.wp-block-navigation .wp-block-navigation__container {
1380-
background: var(--global--color-background);
1381-
padding: 0;
1371+
.wp-block-navigation [data-block] {
1372+
margin-top: revert;
1373+
margin-bottom: revert;
13821374
}
13831375

1384-
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__content {
1385-
padding: var(--primary-nav--padding);
1376+
.wp-block-navigation .wp-block-navigation__container {
1377+
background: var(--global--color-background);
13861378
}
13871379

13881380
.wp-block-navigation .wp-block-navigation-link .wp-block-navigation-link__label {

src/web/app/themes/twentytwentyone/assets/css/style-editor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/app/themes/twentytwentyone/assets/js/primary-navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line
172172
*
173173
* @since Twenty Twenty-One 1.1
174174
*/
175-
document.addEventListener( 'click', function( event ) {
175+
document.getElementById( 'site-navigation' ).addEventListener( 'click', function( event ) {
176176
// If target onclick is <a> with # within the href attribute
177-
if ( event.target.hash && event.target.hash.includes( '#' ) ) {
177+
if ( event.target.hash ) {
178178
wrapper.classList.remove( id + '-navigation-open', 'lock-scrolling' );
179179
twentytwentyoneToggleAriaExpanded( mobileButton );
180180
// Wait 550 and scroll to the anchor.

src/web/app/themes/twentytwentyone/assets/sass/01-settings/file-header.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Author: the WordPress team
55
Author URI: https://wordpress.org/
66
Description: Twenty Twenty-One is a blank canvas for your ideas and it makes the block editor your best brush. With new block patterns, which allow you to create a beautiful layout in a matter of seconds, this theme’s soft colors and eye-catching — yet timeless — design will let your work shine. Take it for a spin! See how Twenty Twenty-One elevates your portfolio, business website, or personal blog.
77
Requires at least: 5.3
8-
Tested up to: 6.0
8+
Tested up to: 6.3
99
Requires PHP: 5.6
10-
Version: 1.7
10+
Version: 1.9
1111
License: GNU General Public License v2 or later
1212
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1313
Text Domain: twentytwentyone

src/web/app/themes/twentytwentyone/assets/sass/05-blocks/group/_editor.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11
.wp-block-group {
2-
// Start IE clearfix.
3-
// This hack is only necessary because we want to support IE11.
4-
// If we don't want to support IE11, then "display: flow-root" would suffice.
5-
display: block;
6-
clear: both;
7-
8-
display: flow-root; // stylelint-disable-line declaration-block-no-duplicate-properties
9-
10-
&:before,
11-
&:after {
12-
content: "";
13-
display: block;
14-
clear: both;
15-
}
16-
// End IE clearfix.
172

183
&.has-background {
194
padding: var(--global--spacing-vertical);

src/web/app/themes/twentytwentyone/assets/sass/05-blocks/navigation/_editor.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
.wp-block-navigation {
22

3+
[data-block] {
4+
margin-top: revert;
5+
margin-bottom: revert;
6+
}
7+
38
.wp-block-navigation__container {
49
background: var(--global--color-background);
5-
padding: 0;
610
}
711

812
.wp-block-navigation-link {
913

10-
.wp-block-navigation-link__content {
11-
padding: var(--primary-nav--padding);
12-
}
13-
1414
.wp-block-navigation-link__label {
1515
font-family: var(--primary-nav--font-family);
1616
font-size: var(--primary-nav--font-size);

0 commit comments

Comments
 (0)