mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
统一命名
This commit is contained in:
parent
a97266df06
commit
490828caf2
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user