mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
streamline homepage nav
This commit is contained in:
parent
82f460b20d
commit
b542137dd5
@ -1,22 +1,18 @@
|
||||
<header class="navbar navbar-inverse navbar-static-top bs-docs-nav" id="top" role="banner">
|
||||
<a href="../" class="navbar-brand">Bootstrap</a>
|
||||
<ul class="nav nav-pills pull-left">
|
||||
{% for group in site.data.nav %}
|
||||
{% assign link = group.pages | first %}
|
||||
{% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %}
|
||||
<div class="container">
|
||||
<h3 class="navbar-brand">
|
||||
<a href="{{ site.baseurl }}">Bootstrap</a>
|
||||
</h3>
|
||||
<ul class="nav nav-pills pull-right">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.baseurl }}{{ group.title | downcase | replace: ' ', '-' }}/{{ link.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' }}">
|
||||
{{ group.title }}
|
||||
</a>
|
||||
<a class="nav-link" href="{{ site.baseurl }}/getting-started/quick-start" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Docs');">Documentation</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul class="nav nav-pills pull-right">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');">Expo</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');">Blog</a>
|
||||
</li>
|
||||
</ul>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.expo }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Expo');">Expo</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ site.blog }}" onclick="ga('send', 'event', 'Navbar', 'Community links', 'Blog');">Blog</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
2
docs/assets/css/docs.min.css
vendored
2
docs/assets/css/docs.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -101,17 +101,12 @@ body {
|
||||
background-color: #563d7c;
|
||||
border-bottom: 0;
|
||||
}
|
||||
.bs-home-nav .bs-nav-b {
|
||||
display: none;
|
||||
}
|
||||
.bs-docs-nav .navbar-brand,
|
||||
.bs-docs-nav .navbar-brand > a,
|
||||
.bs-docs-nav .navbar-nav > li > a {
|
||||
font-weight: 500;
|
||||
color: #cdbfe3;
|
||||
}
|
||||
.bs-docs-nav .navbar-brand {
|
||||
padding-right: .25rem;
|
||||
padding-left: .25rem;
|
||||
.bs-docs-nav .navbar-brand > a {
|
||||
color: #fff;
|
||||
}
|
||||
.bs-docs-nav .navbar-nav > li > a:hover,
|
||||
|
Loading…
Reference in New Issue
Block a user