Accessibility shortcuts: new looks and fix for the WebKit focus bug, props lessbloat, fixes #21471

git-svn-id: http://core.svn.wordpress.org/trunk@22249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2012-10-16 21:26:59 +00:00
parent f9ddde8da6
commit e8b10439bb
6 changed files with 55 additions and 19 deletions

View File

@@ -192,23 +192,35 @@ TABLE OF CONTENTS:
.screen-reader-text span {
position: absolute;
left: -1000em;
top: -1000em;
height: 1px;
width: 1px;
overflow: hidden;
}
.screen-reader-shortcut:focus {
left: 5px;
top: 5px;
left: 6px;
top: -21px;
height: auto;
width: auto;
display: block;
padding: 10px 15px;
background: #fff;
color: #000;
border: 2px solid #333;
font-size: 14px;
font-weight: bold;
padding: 15px 23px 14px;
background: #8cc1ea;
background-image: -webkit-gradient(linear, left top, left bottom, from(#8cc1ea), to(#72a7cf));
background-image: -webkit-linear-gradient(top, #8cc1ea, #72a7cf);
background-image: -moz-linear-gradient(top, #8cc1ea, #72a7cf);
background-image: -o-linear-gradient(top, #8cc1ea, #72a7cf);
background-image: linear-gradient(to bottom, #8cc1ea, #72a7cf);
color: #fff;
border-radius: 3px;
z-index: 100000;
text-shadow: 0 -1px 0 rgba(22, 57, 81, 0.3);
line-height: normal;
-webkit-box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
text-decoration: none;
}
.hidden,