0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01:00

docs(sidenav): fix struggling CSS when collapsing sidenav

This commit is contained in:
Gaël Poupard 2020-02-18 13:48:06 +01:00 committed by XhmikosR
parent 5f58b3df2c
commit 79dc21b22b
2 changed files with 2 additions and 5 deletions

View File

@ -16,10 +16,6 @@
}
}
:not(.active) > .bd-sidenav {
display: none;
}
.bd-sidenav-group-link {
padding: .25rem .625rem .25rem .5rem;
font-weight: 600;
@ -57,6 +53,7 @@
// All levels of nav
.bd-sidebar .nav {
flex-flow: column nowrap;
padding-left: 1.25rem;
> li > a {

View File

@ -22,7 +22,7 @@
</a>
{{- if $group.pages }}
<ul class="nav bd-sidenav flex-column mb-2 collapse{{ if $active_group }} show{{ end }}" id="{{ $group_slug }}-collapse">
<ul class="nav bd-sidenav mb-2 collapse{{ if $active_group }} show{{ end }}" id="{{ $group_slug }}-collapse">
{{- range $doc := $group.pages -}}
{{- $doc_slug := $doc.title | urlize }}
<li{{ if and $active_group (eq $page_slug $doc_slug) }} class="active bd-sidenav-active"{{ end }}>