0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-10 22:24:19 +01:00

redo custom docs navbar

This commit is contained in:
Mark Otto 2016-12-22 09:12:43 -08:00 committed by Mark Otto
parent bb97ae18f7
commit d86a1dbfd4
2 changed files with 34 additions and 48 deletions

View File

@ -1,5 +1,5 @@
<header class="navbar navbar-light navbar-static-top bd-navbar"> <header class="navbar navbar-light navbar-toggleable-md bd-navbar">
<div class="container"> <nav class="container">
{% comment %} {% comment %}
<nav class="nav navbar-nav float-right"> <nav class="nav navbar-nav float-right">
<div class="nav-item dropdown"> <div class="nav-item dropdown">
@ -25,16 +25,16 @@
</nav> </nav>
{% endcomment %} {% endcomment %}
<nav> <div class="d-flex flex-items-between hidden-lg-up">
<div class="clearfix"> <a class="navbar-brand" href="{{ site.baseurl }}/">
<button class="navbar-toggler float-right hidden-sm-up" type="button" data-toggle="collapse" data-target="#bd-main-nav" aria-controls="bd-main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand hidden-sm-up" href="{{ site.baseurl }}/">
Bootstrap Bootstrap
</a> </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#bd-main-nav" aria-controls="bd-main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div> </div>
<div class="collapse navbar-toggleable" id="bd-main-nav">
<div class="collapse navbar-collapse" id="bd-main-nav">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li class="nav-item active"> <li class="nav-item active">
<a class="nav-item nav-link {% if page.layout == "home" %}active{% endif %}" href="{{ site.baseurl }}/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Bootstrap');">Bootstrap</a> <a class="nav-item nav-link {% if page.layout == "home" %}active{% endif %}" href="{{ site.baseurl }}/" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Bootstrap');">Bootstrap</a>
@ -57,5 +57,4 @@
</ul> </ul>
</div> </div>
</nav> </nav>
</div>
</header> </header>

View File

@ -3,9 +3,6 @@
// //
.bd-navbar { .bd-navbar {
padding-right: 0;
padding-left: 0;
.navbar-nav { .navbar-nav {
.nav-link { .nav-link {
color: $bd-graphite-light; color: $bd-graphite-light;
@ -27,14 +24,4 @@
.dropdown-menu { .dropdown-menu {
font-size: inherit; font-size: inherit;
} }
@include media-breakpoint-down(sm) {
.nav-link {
float: none;
+ .nav-link {
margin-left: 0;
}
}
}
} }