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
f16a2376
Commit
f16a2376
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
add basic back to top link to docs sidenavs, fixes
#12589
parent
7861f6e8
3 merge requests
!28721
Hot test
,
!22103
test
,
!25326
Adjust examples
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/_includes/nav-main.html
+1
-1
docs/_includes/nav-main.html
docs/_layouts/default.html
+3
-0
docs/_layouts/default.html
docs/assets/css/docs.css
+23
-2
docs/assets/css/docs.css
docs/assets/css/docs.min.css
+1
-1
docs/assets/css/docs.min.css
with
28 additions
and
4 deletions
+28
-4
docs/_includes/nav-main.html
+
1
-
1
View file @
f16a2376
<header
class=
"navbar navbar-static-top bs-docs-nav"
role=
"banner"
>
<header
class=
"navbar navbar-static-top bs-docs-nav"
role=
"banner"
id=
"top"
>
<div
class=
"container"
>
<div
class=
"navbar-header"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-navbar-collapse"
>
...
...
This diff is collapsed.
Click to expand it.
docs/_layouts/default.html
+
3
-
0
View file @
f16a2376
...
...
@@ -44,6 +44,9 @@
{% include nav-migration.html %}
{% endif %}
</ul>
<a
class=
"back-to-top"
href=
"#top"
>
Back to top
</a>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.css
+
23
-
2
View file @
f16a2376
...
...
@@ -560,8 +560,8 @@ body {
padding-bottom
:
10px
;
}
.bs-sidebar
.nav
.nav
>
li
>
a
{
padding-top
:
2
px
;
padding-bottom
:
2
px
;
padding-top
:
1
px
;
padding-bottom
:
1
px
;
padding-left
:
30px
;
font-size
:
12px
;
font-weight
:
normal
;
...
...
@@ -577,6 +577,27 @@ body {
padding-left
:
28px
;
}
/* Back to top (hidden on mobile) */
.back-to-top
{
display
:
none
;
margin-top
:
10px
;
margin-left
:
10px
;
padding
:
4px
10px
;
font-size
:
12px
;
font-weight
:
500
;
color
:
#999
;
}
.back-to-top
:hover
{
text-decoration
:
none
;
color
:
#563d7c
;
}
@media
(
min-width
:
768px
)
{
.back-to-top
{
display
:
block
;
}
}
/* Show and affix the side nav when space allows it */
@media
(
min-width
:
992px
)
{
.bs-sidebar
.nav
>
.active
>
ul
{
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.min.css
+
1
-
1
View file @
f16a2376
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