Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2a579e54
Commit
2a579e54
authored
7 years ago
by
Mark Otto
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
use flexbox order property to change order of content for screenreaders
parent
2fb65c2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_layouts/docs.html
+7
-6
_layouts/docs.html
assets/scss/_content.scss
+2
-0
assets/scss/_content.scss
assets/scss/_sidebar.scss
+2
-0
assets/scss/_sidebar.scss
with
11 additions
and
6 deletions
+11
-6
_layouts/docs.html
+
7
-
6
View file @
2a579e54
...
@@ -17,18 +17,19 @@
...
@@ -17,18 +17,19 @@
<div
class=
"col-12 col-md-3 col-xl-2 bd-sidebar"
>
<div
class=
"col-12 col-md-3 col-xl-2 bd-sidebar"
>
{% include docs-sidebar.html %}
{% include docs-sidebar.html %}
</div>
</div>
<main
class=
"col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content"
role=
"main"
>
<h1
class=
"bd-title"
id=
"content"
>
{{ page.title }}
</h1>
<p
class=
"bd-lead"
>
{{ page.description }}
</p>
{% include ads.html %}
{{ content }}
</main>
{% if page.toc %}
{% if page.toc %}
<div
class=
"d-none d-xl-block col-xl-2 bd-toc"
>
<div
class=
"d-none d-xl-block col-xl-2 bd-toc"
>
{{ content | toc_only }}
{{ content | toc_only }}
</div>
</div>
{% endif %}
{% endif %}
<main
class=
"col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content"
role=
"main"
>
<h1
class=
"bd-title"
id=
"content"
>
{{ page.title }}
</h1>
<p
class=
"bd-lead"
>
{{ page.description }}
</p>
{% include ads.html %}
{{ content }}
</main>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
assets/scss/_content.scss
+
2
-
0
View file @
2a579e54
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
//
//
.bd-content
{
.bd-content
{
order
:
1
;
// Hack the sticky header
// Hack the sticky header
>
h2
[
id
],
>
h2
[
id
],
>
h3
[
id
],
>
h3
[
id
],
...
...
This diff is collapsed.
Click to expand it.
assets/scss/_sidebar.scss
+
2
-
0
View file @
2a579e54
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
top
:
4rem
;
top
:
4rem
;
max-height
:
calc
(
100vh
-
4rem
);
max-height
:
calc
(
100vh
-
4rem
);
}
}
order
:
2
;
padding-top
:
1
.5rem
;
padding-top
:
1
.5rem
;
padding-bottom
:
1
.5rem
;
padding-bottom
:
1
.5rem
;
overflow-x
:
visible
;
overflow-x
:
visible
;
...
@@ -49,6 +50,7 @@
...
@@ -49,6 +50,7 @@
//
//
.bd-sidebar
{
.bd-sidebar
{
order
:
0
;
background-color
:
#f5f2f9
;
background-color
:
#f5f2f9
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,.
1
);
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,.
1
);
...
...
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
Menu
Explore
Projects
Groups
Snippets