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.


git-svn-id: https://develop.svn.wordpress.org/trunk@39418 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
David A. Kennedy 2016-12-02 06:09:46 +00:00
parent 4cf49676ab
commit 4eb6d688a5
2 changed files with 6 additions and 3 deletions

View File

@ -474,8 +474,8 @@ body.colors-dark,
} }
/* Fixes linked images */ /* Fixes linked images */
.entry-content a img, .colors-dark .entry-content a img,
.widget a img { .colors-dark .widget a img {
-webkit-box-shadow: 0 0 0 8px #222; -webkit-box-shadow: 0 0 0 8px #222;
box-shadow: 0 0 0 8px #222; box-shadow: 0 0 0 8px #222;
} }
@ -496,6 +496,9 @@ body.colors-dark,
background-color: transparent; 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,
.colors-dark .widget .tagcloud a:focus, .colors-dark .widget .tagcloud a:focus,
.colors-dark .widget .tagcloud a:hover, .colors-dark .widget .tagcloud a:hover,

View File

@ -2952,7 +2952,7 @@ object {
box-shadow: none; box-shadow: none;
background: none; background: none;
display: inline-block; display: inline-block;
width: 100%; max-width: 100%;
} }
.gallery-item a img { .gallery-item a img {