From 80ffc60d40571054bff165b2768c282fb7df019c Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 11 Oct 2012 17:17:55 +0000 Subject: [PATCH] Twenty Twelve: improve skip link visibility, mimicing the core toolbar skiplink. Closes #22025, see #22087. git-svn-id: https://develop.svn.wordpress.org/trunk@22186 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/header.php | 2 +- wp-content/themes/twentytwelve/style.css | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index 5195c90645..24b6d12c8b 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -38,7 +38,7 @@ diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index deb48373ac..68f9fe20b9 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -460,12 +460,27 @@ a:hover { } /* Assistive text */ -.skip-link, -.screen-reader-text, .assistive-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); } +.main-navigation .assistive-text:hover, +.main-navigation .assistive-text:active, +.main-navigation .assistive-text:focus { + background: #fff; + border: 2px solid #333; + border-radius: 3px; + clip: auto !important; + color: #000; + display: block; + font-size: 12px; + padding: 12px; + position: absolute; + top: 5px; + left: 5px; + z-index: 100000; /* Above WP toolbar */ +} + /* Page structure */ .site { @@ -1650,8 +1665,6 @@ img#wpstats { /* =IE 7 and 8 ----------------------------------------------- */ -.ie .skip-link, -.ie .screen-reader-text, .ie .assistive-text { clip: rect(1px 1px 1px 1px); /* IE7 */ }