From 98ef1859bde0ff5d61d6c5d369e89bb098f5f152 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 15 Jul 2024 19:45:17 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@58726 git-svn-id: http://core.svn.wordpress.org/trunk@58128 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/assets/css/ie.css | 2 +- .../twentytwentyone/assets/sass/06-components/header.scss | 2 +- wp-content/themes/twentytwentyone/style-rtl.css | 2 +- wp-content/themes/twentytwentyone/style.css | 2 +- wp-includes/version.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentytwentyone/assets/css/ie.css b/wp-content/themes/twentytwentyone/assets/css/ie.css index d365af2c3f..201268346d 100644 --- a/wp-content/themes/twentytwentyone/assets/css/ie.css +++ b/wp-content/themes/twentytwentyone/assets/css/ie.css @@ -4172,7 +4172,7 @@ table.wp-calendar-table caption { .site-branding { margin-right: initial; - margin-top: 4px; + margin-top: calc(13px - 0em); } } diff --git a/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss b/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss index 21a8da4f59..a5c05f4ae9 100644 --- a/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss +++ b/wp-content/themes/twentytwentyone/assets/sass/06-components/header.scss @@ -32,7 +32,7 @@ @include media(mobile) { margin-right: initial; - margin-top: 4px; // Align the baseline of the site title with the primary menu + margin-top: calc(var(--primary-nav--padding) - 0.3em); // Align the baseline of the site title with the primary menu } } diff --git a/wp-content/themes/twentytwentyone/style-rtl.css b/wp-content/themes/twentytwentyone/style-rtl.css index 7831cf580d..90f1482b2c 100644 --- a/wp-content/themes/twentytwentyone/style-rtl.css +++ b/wp-content/themes/twentytwentyone/style-rtl.css @@ -3729,7 +3729,7 @@ table.wp-calendar-table caption { .site-branding { margin-left: initial; - margin-top: 4px; + margin-top: calc(var(--primary-nav--padding) - 0.3em); } } diff --git a/wp-content/themes/twentytwentyone/style.css b/wp-content/themes/twentytwentyone/style.css index a569c9065d..e832c2d075 100644 --- a/wp-content/themes/twentytwentyone/style.css +++ b/wp-content/themes/twentytwentyone/style.css @@ -3749,7 +3749,7 @@ table.wp-calendar-table caption { .site-branding { margin-right: initial; - margin-top: 4px; + margin-top: calc(var(--primary-nav--padding) - 0.3em); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index dc386a3fe3..89fa12faee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58725'; +$wp_version = '6.7-alpha-58726'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.