统一命名

This commit is contained in:
fen 2013-12-09 21:29:49 +08:00
parent a97266df06
commit 490828caf2
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@
</div>
<div class="site-search col-3 kit-hidden-tb">
<form id="search" method="post" action="./" role="search">
<label for="s" class="visuallyhidden"><?php _e('搜索关键字'); ?></label>
<label for="s" class="sr-only"><?php _e('搜索关键字'); ?></label>
<input type="text" name="s" class="text" placeholder="<?php _e('输入关键字搜索'); ?>" />
<button type="submit" class="submit"><?php _e('搜索'); ?></button>
</form>

View File

@ -438,7 +438,7 @@ img.alignright {
/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.visuallyhidden {
.sr-only {
border: 0;
height: 1px;
margin: -1px;
@ -448,11 +448,11 @@ img.alignright {
width: 1px; }
/*
* Extends the .visuallyhidden class to allow the element to be focusable
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
.sr-only.focusable:active,
.sr-only.focusable:focus {
clip: auto;
height: auto;
margin: 0;