Skip to content

Commit 5567be7

Browse files
authored
Merge pull request #21888 from Arhell/fix-toggle
fix toggle button color on hover & jumping menu when close
2 parents f9fb77b + 2adc272 commit 5567be7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

assets/scss/_custom.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,19 @@ blockquote {
299299
}
300300
}
301301

302+
.td-sidebar-nav {
303+
& > .td-sidebar-nav__section {
304+
padding-top: .5rem;
305+
padding-left: 1.5rem;
306+
}
307+
}
308+
302309
.td-sidebar__inner {
303310
form.td-sidebar__search {
304311

305312
button.td-sidebar__toggle {
306313
&:hover {
307-
color: $white;
314+
color: #000000;
308315
}
309316

310317
color: $blue;

layouts/partials/sidebar-tree.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</button>
99
</form>
1010
{{ end }}
11-
<nav class="collapse td-sidebar-nav pt-2 pl-4" id="td-section-nav">
11+
<nav class="collapse td-sidebar-nav" id="td-section-nav">
1212
<!-- {{ if (gt (len .Site.Home.Translations) 0) }}
1313
<div class="nav-item dropdown d-block d-lg-none">
1414
{{ partial "navbar-lang-selector.html" . }}
@@ -37,7 +37,7 @@
3737
<li class="collapse {{ if $show }}show{{ end }}" id="{{ $sid }}">
3838
{{ $pages := where (union $s.Pages $s.Sections).ByWeight ".Params.toc_hide" "!=" true }}
3939
{{ with site.Params.language_alternatives }}
40-
{{ range . }}
40+
{{ range . }}
4141
{{ with (where $.section.Translations ".Lang" . ) }}
4242
{{ $p := index . 0 }}
4343
{{ $pages = $pages | lang.Merge (union $p.Pages $p.Sections) }}

0 commit comments

Comments
 (0)