new visually-hidden rules
This commit is contained in:
parent
6ee08ce823
commit
b1970263cc
2 changed files with 11 additions and 18 deletions
|
@ -187,18 +187,14 @@ sub {
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
/* hiding content */
|
/* hiding content */
|
||||||
.visually-hidden {
|
.visually-hidden {
|
||||||
position: absolute;
|
position: absolute !important;
|
||||||
left: -7000px;
|
clip: rect(1px 1px 1px 1px);
|
||||||
|
/* IE6, IE7 */
|
||||||
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: 1px;
|
||||||
|
width: 1px;
|
||||||
}
|
}
|
||||||
[dir=rtl] .visually-hidden {
|
|
||||||
left: auto;
|
|
||||||
right: -7000px;
|
|
||||||
}
|
|
||||||
.desktop-hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
/* hidden on desktop */
|
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
/* == skip links styling */
|
/* == skip links styling */
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
|
|
|
@ -173,15 +173,12 @@ sub {
|
||||||
|
|
||||||
/* hiding content */
|
/* hiding content */
|
||||||
.visually-hidden {
|
.visually-hidden {
|
||||||
position: absolute;
|
position: absolute !important;
|
||||||
left: -7000px;
|
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
|
||||||
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: 1px; width: 1px;
|
||||||
}
|
}
|
||||||
[dir=rtl] .visually-hidden {
|
|
||||||
left: auto;
|
|
||||||
right: -7000px;
|
|
||||||
}
|
|
||||||
.desktop-hidden { display: none; } /* hidden on desktop */
|
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
|
|
Loading…
Reference in a new issue