Improve visible focus in the admin, props lessbloat, fixes #21324

git-svn-id: http://core.svn.wordpress.org/trunk@22268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz
2012-10-22 19:51:51 +00:00
parent 4188c373fd
commit 5b8108a3fd
6 changed files with 51 additions and 61 deletions

View File

@@ -309,13 +309,29 @@ select {
}
a,
input,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="email"],
input[type="url"],
select,
textarea,
div {
outline: 0;
}
a:focus,
a:active {
outline: thin dotted;
}
#adminmenu a:focus,
#adminmenu a:active,
.screen-reader-text:focus {
outline: none;
}
blockquote,
q {
quotes: none;
@@ -706,7 +722,7 @@ input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus {
border-color: #a1a1a1;
border-color: #aaa;
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
@@ -1159,6 +1175,12 @@ form.upgrade .hint {
margin: 0 24px 0 0;
}
#screen-meta-links a:focus {
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
outline: none;
}
/* screen options and help tabs revert */
#screen-meta {
display: none;
@@ -4538,6 +4560,10 @@ h3.available-themes {
overflow: hidden;
}
.available-theme a.screenshot:focus {
border-color: #777;
}
#current-theme .theme-info li,
.theme-options li,
.available-theme .action-links li {
@@ -6495,6 +6521,7 @@ a.rsswidget {
width: 326px;
height: 67px;
text-indent: -9999px;
outline: none;
overflow: hidden;
padding-bottom: 15px;
display: block;