Twenty Twenty: Scope `.privacy-policy` styles to the footer only.

This changeset fixes an issue where the `.privacy-policy` styles were applied to other locations than the footer only, like the `privacy-policy` page itself.

Props mnydigital, sabernhardt, huzaifaalmesbah, shailu25, poena.
Fixes #60469.




Built from https://develop.svn.wordpress.org/trunk@57589


git-svn-id: http://core.svn.wordpress.org/trunk@57090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2024-02-12 11:33:05 +00:00
parent ddd8354888
commit 59f2266979
4 changed files with 10 additions and 10 deletions

View File

@ -789,7 +789,7 @@ function twentytwenty_get_elements_array() {
'border-left-color' => array( 'body:not(.overlay-header) .primary-menu ul ul:after' ), 'border-left-color' => array( 'body:not(.overlay-header) .primary-menu ul ul:after' ),
), ),
'secondary' => array( 'secondary' => array(
'color' => array( '.site-description', 'body:not(.overlay-header) .toggle-inner .toggle-text', '.widget .post-date', '.widget .rss-date', '.widget_archive li', '.widget_categories li', '.widget cite', '.widget_pages li', '.widget_meta li', '.widget_nav_menu li', '.powered-by-wordpress', '.to-the-top', '.singular .entry-header .post-meta', '.singular:not(.overlay-header) .entry-header .post-meta a' ), 'color' => array( '.site-description', 'body:not(.overlay-header) .toggle-inner .toggle-text', '.widget .post-date', '.widget .rss-date', '.widget_archive li', '.widget_categories li', '.widget cite', '.widget_pages li', '.widget_meta li', '.widget_nav_menu li', '.powered-by-wordpress', '.footer-credits .privacy-policy', '.to-the-top', '.singular .entry-header .post-meta', '.singular:not(.overlay-header) .entry-header .post-meta a' ),
), ),
'borders' => array( 'borders' => array(
'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ), 'border-color' => array( '.header-footer-group pre', '.header-footer-group fieldset', '.header-footer-group input', '.header-footer-group textarea', '.header-footer-group table', '.header-footer-group table *', '.footer-nav-widgets-wrapper', '#site-footer', '.menu-modal nav *', '.footer-widgets-outer-wrapper', '.footer-top' ),

View File

@ -4493,12 +4493,12 @@ ul.footer-social li {
} }
.footer-copyright a, .footer-copyright a,
.privacy-policy a, .footer-credits .privacy-policy a,
.powered-by-wordpress a { .powered-by-wordpress a {
color: inherit; color: inherit;
} }
.privacy-policy, .footer-credits .privacy-policy,
.powered-by-wordpress, .powered-by-wordpress,
.to-the-top { .to-the-top {
color: #6d6d6d; color: #6d6d6d;
@ -4523,7 +4523,7 @@ a.to-the-top > * {
margin: 0 2.4rem 0 0; margin: 0 2.4rem 0 0;
} }
.privacy-policy { .footer-credits .privacy-policy {
margin: 1.2rem 0 0; margin: 1.2rem 0 0;
} }
@ -5617,7 +5617,7 @@ a.to-the-top > * {
font-weight: 700; font-weight: 700;
} }
.privacy-policy { .footer-credits .privacy-policy {
margin: 0 2.4rem 0 0; margin: 0 2.4rem 0 0;
} }

View File

@ -4529,12 +4529,12 @@ ul.footer-social li {
} }
.footer-copyright a, .footer-copyright a,
.privacy-policy a, .footer-credits .privacy-policy a,
.powered-by-wordpress a { .powered-by-wordpress a {
color: inherit; color: inherit;
} }
.privacy-policy, .footer-credits .privacy-policy,
.powered-by-wordpress, .powered-by-wordpress,
.to-the-top { .to-the-top {
color: #6d6d6d; color: #6d6d6d;
@ -4559,7 +4559,7 @@ a.to-the-top > * {
margin: 0 0 0 2.4rem; margin: 0 0 0 2.4rem;
} }
.privacy-policy { .footer-credits .privacy-policy {
margin: 1.2rem 0 0; margin: 1.2rem 0 0;
} }
@ -5681,7 +5681,7 @@ a.to-the-top > * {
font-weight: 700; font-weight: 700;
} }
.privacy-policy { .footer-credits .privacy-policy {
margin: 0 0 0 2.4rem; margin: 0 0 0 2.4rem;
} }

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.5-alpha-57588'; $wp_version = '6.5-alpha-57589';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.