From b87bdbe9ba6b86268891ff967ba399c3d9fb0cd7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 29 Jun 2019 00:50:55 +0000 Subject: [PATCH] Twenty Seventeen: Correct the CSS selectors intended to fix hover colors for MediaElement controls. This is a follow-up to the previous fix in [45146], which didn't work as expected. Props ryokuhi. Fixes #47543. See #40843. git-svn-id: https://develop.svn.wordpress.org/trunk@45576 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyseventeen/assets/css/colors-dark.css | 4 ++-- src/wp-content/themes/twentyseventeen/inc/color-patterns.php | 4 ++-- src/wp-content/themes/twentyseventeen/style.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css b/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css index 449f0623a2..f7b977dca0 100644 --- a/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css +++ b/src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css @@ -289,8 +289,8 @@ body.colors-dark, color: #bbb; } -.colors-dark button:hover:not( .mejs-container > button ), -.colors-dark button:focus, +.colors-dark :not( .mejs-button ) > button:hover, +.colors-dark :not( .mejs-button ) > button:focus, .colors-dark input[type="button"]:hover, .colors-dark input[type="button"]:focus, .colors-dark input[type="submit"]:hover, diff --git a/src/wp-content/themes/twentyseventeen/inc/color-patterns.php b/src/wp-content/themes/twentyseventeen/inc/color-patterns.php index cfd243f67a..38e4257ef2 100644 --- a/src/wp-content/themes/twentyseventeen/inc/color-patterns.php +++ b/src/wp-content/themes/twentyseventeen/inc/color-patterns.php @@ -307,8 +307,8 @@ body.colors-custom, color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */ } -.colors-custom button:hover:not( .mejs-container > button ), -.colors-custom button:focus, +.colors-custom :not( .mejs-button ) > button:hover, +.colors-custom :not( .mejs-button ) > button:focus, .colors-custom input[type="button"]:hover, .colors-custom input[type="button"]:focus, .colors-custom input[type="submit"]:hover, diff --git a/src/wp-content/themes/twentyseventeen/style.css b/src/wp-content/themes/twentyseventeen/style.css index 7ca4f6c950..c41165947f 100644 --- a/src/wp-content/themes/twentyseventeen/style.css +++ b/src/wp-content/themes/twentyseventeen/style.css @@ -1034,8 +1034,8 @@ input[type="submit"].secondary { color: #222; } -button:hover:not( .mejs-container > button ), -button:focus, +:not( .mejs-button ) > button:hover, +:not( .mejs-button ) > button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="submit"]:hover,