0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

fix scrollspy nav

This commit is contained in:
Mark Otto 2015-01-19 18:51:21 -08:00
parent 6f61201f87
commit ff1d10affb
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@
{% assign active = nil %}
{% if page.url contains slug %}
{% assign active = 'active' %}
{% assign active = 'active bs-docs-sidenav-active' %}
{% endif %}
<li class="{{ active }}">
@ -40,7 +40,7 @@
<ul class="nav">
{% for section in doc.sections %}
<li>
<a href="{{ site.baseurl }}/{{ group.title | downcase | replace: ' ', '-' }}/{{ doc.title | downcase | replace: ' ', '-' }}/#{{ section.title | downcase | replace: ' ', '-' }}">
<a href="#{{ section.title | downcase | replace: ' ', '-' }}">
{{ section.title }}
</a>
</li>

View File

@ -4,7 +4,7 @@
<!-- Meta, title, CSS, favicons, etc. -->
{% include header.html %}
</head>
<body class="bs-docs" data-spy="scroll" data-target=".bs-docs-sidenav">
<body class="bs-docs" data-spy="scroll" data-target=".bs-docs-sidenav-active">
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container">
<span class="skiplink-text">Skip to main content</span>