Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
f16a2376
Commit
f16a2376
authored
Feb 05, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add basic back to top link to docs sidenavs, fixes #12589
parent
7861f6e8
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
docs/_includes/nav-main.html
docs/_includes/nav-main.html
+1
-1
docs/_layouts/default.html
docs/_layouts/default.html
+3
-0
docs/assets/css/docs.css
docs/assets/css/docs.css
+23
-2
docs/assets/css/docs.min.css
docs/assets/css/docs.min.css
+1
-1
No files found.
docs/_includes/nav-main.html
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=
"container"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-navbar-collapse"
>
<button
class=
"navbar-toggle"
type=
"button"
data-toggle=
"collapse"
data-target=
".bs-navbar-collapse"
>
...
...
docs/_layouts/default.html
View file @
f16a2376
...
@@ -44,6 +44,9 @@
...
@@ -44,6 +44,9 @@
{% include nav-migration.html %}
{% include nav-migration.html %}
{% endif %}
{% endif %}
</ul>
</ul>
<a
class=
"back-to-top"
href=
"#top"
>
Back to top
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
docs/assets/css/docs.css
View file @
f16a2376
...
@@ -560,8 +560,8 @@ body {
...
@@ -560,8 +560,8 @@ body {
padding-bottom
:
10px
;
padding-bottom
:
10px
;
}
}
.bs-sidebar
.nav
.nav
>
li
>
a
{
.bs-sidebar
.nav
.nav
>
li
>
a
{
padding-top
:
2
px
;
padding-top
:
1
px
;
padding-bottom
:
2
px
;
padding-bottom
:
1
px
;
padding-left
:
30px
;
padding-left
:
30px
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
normal
;
font-weight
:
normal
;
...
@@ -577,6 +577,27 @@ body {
...
@@ -577,6 +577,27 @@ body {
padding-left
:
28px
;
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 */
/* Show and affix the side nav when space allows it */
@media
(
min-width
:
992px
)
{
@media
(
min-width
:
992px
)
{
.bs-sidebar
.nav
>
.active
>
ul
{
.bs-sidebar
.nav
>
.active
>
ul
{
...
...
docs/assets/css/docs.min.css
View file @
f16a2376
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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