Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c4e242bd
Commit
c4e242bd
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
add .sr-only-focusable; fixes
#12259
parent
651b289e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/css/bootstrap.css
+9
-0
dist/css/bootstrap.css
less/scaffolding.less
+16
-0
less/scaffolding.less
with
25 additions
and
0 deletions
+25
-0
dist/css/bootstrap.css
+
9
-
0
View file @
c4e242bd
...
@@ -346,6 +346,15 @@ hr {
...
@@ -346,6 +346,15 @@ hr {
clip
:
rect
(
0
,
0
,
0
,
0
);
clip
:
rect
(
0
,
0
,
0
,
0
);
border
:
0
;
border
:
0
;
}
}
.sr-only-focusable
:active
,
.sr-only-focusable
:focus
{
position
:
static
;
width
:
auto
;
height
:
auto
;
margin
:
0
;
overflow
:
visible
;
clip
:
auto
;
}
h1
,
h1
,
h2
,
h2
,
h3
,
h3
,
...
...
This diff is collapsed.
Click to expand it.
less/scaffolding.less
+
16
-
0
View file @
c4e242bd
...
@@ -132,3 +132,19 @@ hr {
...
@@ -132,3 +132,19 @@ hr {
clip: rect(0,0,0,0);
clip: rect(0,0,0,0);
border: 0;
border: 0;
}
}
// Use in conjunction with .sr-only to only display content when it's focused.
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
// Credit: HTML5 Boilerplate
.sr-only-focusable {
&:active,
&:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment