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
ff72ea6b
Commit
ff72ea6b
authored
Aug 18, 2015
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
navbar positioning
parent
4c7e4e44
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
45 deletions
+35
-45
docs/assets/css/docs.min.css
docs/assets/css/docs.min.css
+1
-1
docs/assets/css/docs.min.css.map
docs/assets/css/docs.min.css.map
+0
-0
docs/assets/scss/_component-examples.scss
docs/assets/scss/_component-examples.scss
+17
-44
docs/components/navbar.md
docs/components/navbar.md
+17
-0
No files found.
docs/assets/css/docs.min.css
View file @
ff72ea6b
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.min.css.map
View file @
ff72ea6b
This diff was suppressed by a .gitattributes entry.
docs/assets/scss/_component-examples.scss
View file @
ff72ea6b
...
...
@@ -113,12 +113,6 @@
}
}
// Tweak content of examples for optimum awesome
.bd-example
>
*
:last-child
,
.bd-example
>
.table-responsive
:last-child
>
.table
{
margin-bottom
:
0
!
important
;
}
.bd-example
>
.close
{
float
:
none
;
}
...
...
@@ -183,44 +177,23 @@
}
// Navbars
.bd-example
.navbar
:last-child
{
margin-bottom
:
0
;
}
.bd-navbar-top-example
,
.bd-navbar-bottom-example
{
z-index
:
1
;
padding
:
0
;
overflow
:
hidden
;
// cut the drop shadows off
}
.bd-navbar-top-example
.navbar-header
,
.bd-navbar-bottom-example
.navbar-header
{
margin-left
:
0
;
}
.bd-navbar-top-example
.navbar-fixed-top
,
.bd-navbar-bottom-example
.navbar-fixed-bottom
{
position
:
relative
;
margin-right
:
0
;
margin-left
:
0
;
}
.bd-navbar-top-example
{
padding-bottom
:
45px
;
}
.bd-navbar-top-example
.navbar-fixed-top
{
top
:
-1px
;
}
.bd-navbar-bottom-example
{
padding-top
:
45px
;
}
.bd-navbar-bottom-example
.navbar-fixed-bottom
{
bottom
:
-1px
;
}
.bd-navbar-bottom-example
.navbar
{
margin-bottom
:
0
;
}
@media
(
min-width
:
768px
)
{
.bd-navbar-top-example
.navbar-fixed-top
,
.bd-navbar-bottom-example
.navbar-fixed-bottom
{
position
:
absolute
;
.bd-example
{
.navbar-fixed-top
{
position
:
static
;
margin
:
-1rem
-1rem
1rem
;
}
.navbar-fixed-bottom
{
position
:
static
;
margin
:
1rem
-1rem
-1rem
;
}
@include
media-breakpoint-up
(
sm
)
{
.navbar-fixed-top
{
margin
:
-1
.5rem
-1
.5rem
1rem
;
}
.navbar-fixed-bottom
{
margin
:
1rem
-1
.5rem
-1
.5rem
;
}
}
}
...
...
docs/components/navbar.md
View file @
ff72ea6b
...
...
@@ -162,6 +162,23 @@ Although it's not required, you can wrap a navbar in a `.container` to center it
</nav>
{% endexample %}
## Placement
Navbars can be statically placed (their default behavior), or fixed to the top or bottom of the viewport.
{% example html %}
<nav
class=
"navbar navbar-fixed-top navbar-light bg-faded"
>
<a
class=
"navbar-brand"
href=
"#"
>
Fixed top
</a>
</nav>
{% endexample %}
{% example html %}
<nav
class=
"navbar navbar-fixed-bottom navbar-light bg-faded"
>
<a
class=
"navbar-brand"
href=
"#"
>
Fixed bottom
</a>
</nav>
{% endexample %}
## Collapsible content
Our collapse plugin allows you to use a
`<button>`
or
`<a>`
to toggle hidden content.
...
...
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