From 909e795ba499f80e6af9d88e6612bed49e096038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Fri, 2 Dec 2016 06:33:32 +0000 Subject: [PATCH] Twenty Seventeen: Fix style issues with gallery image links * Ensures dark color scheme has proper box shadow and hover/focus styles. * Make sure links are correct width. Props afercia, laurelfulford. Fixes #38969 for the 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@39422 git-svn-id: http://core.svn.wordpress.org/branches/4.7@39362 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyseventeen/assets/css/colors-dark.css | 7 +++++-- wp-content/themes/twentyseventeen/style.css | 2 +- wp-includes/version.php | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css index 7b747a821b..d6fda60c4e 100644 --- a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css +++ b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css @@ -474,8 +474,8 @@ body.colors-dark, } /* Fixes linked images */ -.entry-content a img, -.widget a img { +.colors-dark .entry-content a img, +.colors-dark .widget a img { -webkit-box-shadow: 0 0 0 8px #222; box-shadow: 0 0 0 8px #222; } @@ -496,6 +496,9 @@ body.colors-dark, background-color: transparent; } +.colors-dark .gallery-item a, +.colors-dark .gallery-item a:hover, +.colors-dark .gallery-item a:focus, .colors-dark .widget .tagcloud a, .colors-dark .widget .tagcloud a:focus, .colors-dark .widget .tagcloud a:hover, diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index 2c323193f2..bea2875873 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -2952,7 +2952,7 @@ object { box-shadow: none; background: none; display: inline-block; - width: 100%; + max-width: 100%; } .gallery-item a img { diff --git a/wp-includes/version.php b/wp-includes/version.php index ae865ff6df..569a7e6a91 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-RC1-39421'; +$wp_version = '4.7-RC1-39422'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.