From 2818d14fa82b9cbe9fa65da50bf55671434bb273 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 31 Dec 2020 07:38:06 +0000 Subject: [PATCH] Twenty Twenty-One: Remove extra brackets from `:last-child` CSS pseudo-class. Props munyagu, mukesh27, activecoder. Fixes #52176. Built from https://develop.svn.wordpress.org/trunk@49914 git-svn-id: http://core.svn.wordpress.org/trunk@49613 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/assets/css/ie.css | 4 ++-- .../twentytwentyone/assets/sass/06-components/navigation.scss | 4 ++-- wp-content/themes/twentytwentyone/style-rtl.css | 4 ++-- wp-content/themes/twentytwentyone/style.css | 4 ++-- wp-includes/version.php | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-content/themes/twentytwentyone/assets/css/ie.css b/wp-content/themes/twentytwentyone/assets/css/ie.css index de185ed9ab..1308620af3 100644 --- a/wp-content/themes/twentytwentyone/assets/css/ie.css +++ b/wp-content/themes/twentytwentyone/assets/css/ie.css @@ -6793,7 +6793,7 @@ h1.page-title { width: inherit; } - .primary-navigation > div > .menu-wrapper li:last-child() { + .primary-navigation > div > .menu-wrapper li:last-child { margin-right: 0; } } @@ -7049,7 +7049,7 @@ h1.page-title { } @media only screen and (max-width: 481px) { - .primary-navigation .sub-menu .menu-item:last-child() { + .primary-navigation .sub-menu .menu-item:last-child { margin-bottom: 0; } } diff --git a/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss b/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss index 88919dc350..c62ef26bd8 100644 --- a/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss +++ b/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss @@ -222,7 +222,7 @@ margin: 0; width: inherit; - &:last-child() { + &:last-child { margin-right: 0; } } @@ -456,7 +456,7 @@ @include media(mobile-only) { - &:last-child() { + &:last-child { margin-bottom: 0; } diff --git a/wp-content/themes/twentytwentyone/style-rtl.css b/wp-content/themes/twentytwentyone/style-rtl.css index ceee2b394c..bdcdc6c873 100644 --- a/wp-content/themes/twentytwentyone/style-rtl.css +++ b/wp-content/themes/twentytwentyone/style-rtl.css @@ -4855,7 +4855,7 @@ h1.page-title { width: inherit; } - .primary-navigation > div > .menu-wrapper li:last-child() { + .primary-navigation > div > .menu-wrapper li:last-child { margin-left: 0; } } @@ -5062,7 +5062,7 @@ h1.page-title { } @media only screen and (max-width: 481px) { - .primary-navigation .sub-menu .menu-item:last-child() { + .primary-navigation .sub-menu .menu-item:last-child { margin-bottom: 0; } } diff --git a/wp-content/themes/twentytwentyone/style.css b/wp-content/themes/twentytwentyone/style.css index 249eb3434a..a0ef21ad16 100644 --- a/wp-content/themes/twentytwentyone/style.css +++ b/wp-content/themes/twentytwentyone/style.css @@ -4875,7 +4875,7 @@ h1.page-title { width: inherit; } - .primary-navigation > div > .menu-wrapper li:last-child() { + .primary-navigation > div > .menu-wrapper li:last-child { margin-right: 0; } } @@ -5098,7 +5098,7 @@ h1.page-title { } @media only screen and (max-width: 481px) { - .primary-navigation .sub-menu .menu-item:last-child() { + .primary-navigation .sub-menu .menu-item:last-child { margin-bottom: 0; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 371e4c7fff..070297f98a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49913'; +$wp_version = '5.7-alpha-49914'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.