Skip to content

Commit 50defd6

Browse files
committed
Twenty Twenty-One: Fixes alignment of site title and navigation links.
There was a text alignment issue not centering on all screen sizes. This fixes that and centers vertically. Props vijaysinh9094, poena, sabernhardt. Fixes #61633. git-svn-id: https://develop.svn.wordpress.org/trunk@58726 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ca7d795 commit 50defd6

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/wp-content/themes/twentytwentyone/assets/css/ie.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4172,7 +4172,7 @@ table.wp-calendar-table caption {
41724172

41734173
.site-branding {
41744174
margin-right: initial;
4175-
margin-top: 4px;
4175+
margin-top: calc(13px - 0em);
41764176
}
41774177
}
41784178

src/wp-content/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/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
@include media(mobile) {
3434
margin-right: initial;
35-
margin-top: 4px; // Align the baseline of the site title with the primary menu
35+
margin-top: calc(var(--primary-nav--padding) - 0.3em); // Align the baseline of the site title with the primary menu
3636
}
3737
}
3838

src/wp-content/themes/twentytwentyone/style-rtl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3729,7 +3729,7 @@ table.wp-calendar-table caption {
37293729

37303730
.site-branding {
37313731
margin-left: initial;
3732-
margin-top: 4px;
3732+
margin-top: calc(var(--primary-nav--padding) - 0.3em);
37333733
}
37343734
}
37353735

src/wp-content/themes/twentytwentyone/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3749,7 +3749,7 @@ table.wp-calendar-table caption {
37493749

37503750
.site-branding {
37513751
margin-right: initial;
3752-
margin-top: 4px;
3752+
margin-top: calc(var(--primary-nav--padding) - 0.3em);
37533753
}
37543754
}
37553755

0 commit comments

Comments
 (0)