From 08fb0d4133df2401fdca378f9de4c215836f969d Mon Sep 17 00:00:00 2001 From: iandstewart Date: Fri, 3 Jun 2011 21:11:41 +0000 Subject: [PATCH] Twenty Eleven: Add border styles to images so we can better style linked images on :focus; includes updates to editor styles and improvements to Image Post styles; See #17524 git-svn-id: http://svn.automattic.com/wordpress/trunk@18132 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentyeleven/colors/dark.css | 62 ++++-- .../themes/twentyeleven/content-image.php | 9 +- .../themes/twentyeleven/editor-style.css | 31 ++- wp-content/themes/twentyeleven/style.css | 203 +++++++++++------- 4 files changed, 198 insertions(+), 107 deletions(-) diff --git a/wp-content/themes/twentyeleven/colors/dark.css b/wp-content/themes/twentyeleven/colors/dark.css index 54699522b..15354c6cc 100644 --- a/wp-content/themes/twentyeleven/colors/dark.css +++ b/wp-content/themes/twentyeleven/colors/dark.css @@ -145,6 +145,42 @@ a { color: #000; } +/* Images */ +.wp-caption { + background: #2c2c2c; +} +.wp-caption .wp-caption-text { + color: #999; +} +.wp-caption .wp-caption-text:before { + color: #999; +} + +/* Image borders */ +.entry-content img, +.widget img, +#content .gallery .gallery-icon img { + border-color: #2c2c2c; +} +.wp-caption img { + border-color: #2c2c2c; +} +.entry-content a:focus img, +.entry-content a:hover img, +.entry-content a:active img, +.widget a:focus img, +.widget a:hover img, +.widget a:active img { + background: #2c2c2c; + border-color: #444; +} +.wp-caption a:focus img, +.wp-caption a:active img, +.wp-caption a:hover img { + background: #0f0f0f; + border-color: #2c2c2c; +} + /* Password Protected Posts */ .post-password-required input[type=password] { background: #ddd; @@ -208,10 +244,13 @@ a { /* =Image ----------------------------------------------- */ -.format-image .entry-meta .edit-link a { +.indexed.format-image .wp-caption { + background: #242424; +} +.indexed.format-image .entry-meta .edit-link a { color: #ddd; } -.format-image .entry-meta .edit-link a:hover { +.indexed.format-image .entry-meta .edit-link a:hover { color: #fff; } @@ -339,19 +378,14 @@ section.recent-posts .other-recent-posts .comments-link a:hover { background: #060606; border-color: #222; } - - -/* =Images ------------------------------------------------ */ - -.wp-caption { - background: #0b0d12; +.image-attachment div.attachment a img { + border-color: #060606; } -.wp-caption .wp-caption-text { - color: #999; -} -.wp-caption .wp-caption-text:before { - color: #64759d; +.image-attachment div.attachment a:focus img, +.image-attachment div.attachment a:hover img, +.image-attachment div.attachment a:active img { + border-color: #2c2c2c; + background: #0f0f0f; } diff --git a/wp-content/themes/twentyeleven/content-image.php b/wp-content/themes/twentyeleven/content-image.php index 4681ac082..b957271d5 100644 --- a/wp-content/themes/twentyeleven/content-image.php +++ b/wp-content/themes/twentyeleven/content-image.php @@ -9,8 +9,7 @@ * @since Twenty Eleven 1.0 */ ?> - -
> +
>

@@ -24,16 +23,10 @@
- -
- -
-
→', 'twentyeleven' ) ); ?> '' ) ); ?>
-