From 5ab1806b370e9101362550721b596cc8e276af7a Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 13 Jul 2012 00:08:52 +0000 Subject: [PATCH] Twenty Twelve: improve screen-reader-text handling (aka assistive-text) to use text hiding technique more friendly for RTL. Also remove a duplicate CSS declaration as the same selector exists below in the file. git-svn-id: https://develop.svn.wordpress.org/trunk@21264 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/style.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index d119f0f88f..05badd43c4 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -404,9 +404,12 @@ a { a:hover { color: #0f3647; } +/* Assistive text */ .skip-link, +.screen-reader-text, .assistive-text { - display: none; + position: absolute !important; + clip: rect(1px, 1px, 1px, 1px); } /* Page structure */ @@ -835,11 +838,6 @@ article.sticky .featured-post { margin: 0 0 1.714285714rem; line-height: 1.714285714; } -.entry-content img.alignleft { - float: left; - margin: 0 24px 0 0; - margin: 0 1.714285714rem 0 0; -} .entry-content ol, .entry-content ul { margin: 0 0 24px;