mirror of
https://github.com/twbs/bootstrap.git
synced 2025-10-02 00:06:46 +02:00
unaffix sidebar and simplify styles of docs side nav to be more like v3
This commit is contained in:
@@ -1,18 +1,11 @@
|
||||
<header class="navbar navbar-static-top bd-sidebar" id="top" role="banner">
|
||||
<a href="{{ site.baseurl }}/" class="navbar-brand">
|
||||
Bootstrap 4 Alpha
|
||||
</a>
|
||||
|
||||
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#docsNavbarContent">
|
||||
☰
|
||||
</button>
|
||||
<div class="bd-sidebar">
|
||||
|
||||
<form class="bd-search hidden-sm-down">
|
||||
<input type="text" class="form-control" id="search-input" placeholder="Search...">
|
||||
<ul class="dropdown-menu bd-search-results" id="search-results"></ul>
|
||||
</form>
|
||||
|
||||
<nav class="bd-links collapse navbar-toggleable-xs" id="docsNavbarContent">
|
||||
<nav class="bd-links" id="docsNavbarContent">
|
||||
{% for group in site.data.nav %}
|
||||
{% assign link = group.pages | first %}
|
||||
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
|
||||
@@ -64,4 +57,4 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</header>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user