mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-19 16:03:08 +00:00
Improve rendering of TOC dropdown
This commit is contained in:
@@ -50,6 +50,9 @@
|
|||||||
|
|
||||||
#toc-collapse {
|
#toc-collapse {
|
||||||
border-color: var(--bs-secondary-color) !important;
|
border-color: var(--bs-secondary-color) !important;
|
||||||
|
border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius) !important;
|
||||||
|
margin-top: -1.5rem;
|
||||||
|
padding-top: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-button {
|
.toc-button {
|
||||||
@@ -60,6 +63,8 @@
|
|||||||
--bs-btn-active-bg: var(--bs-body-bg);
|
--bs-btn-active-bg: var(--bs-body-bg);
|
||||||
--bs-btn-active-border-color: var(--bs-primary);
|
--bs-btn-active-border-color: var(--bs-primary);
|
||||||
|
|
||||||
|
background-color: var(--#{$prefix}body-bg) !important;
|
||||||
|
|
||||||
&.active,
|
&.active,
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@@ -26,15 +26,14 @@
|
|||||||
"icon" "fas sort"
|
"icon" "fas sort"
|
||||||
"justify" "between"
|
"justify" "between"
|
||||||
"collapse" "toc-collapse"
|
"collapse" "toc-collapse"
|
||||||
"order" "last")
|
"order" "last"
|
||||||
-}}
|
"spacing" false
|
||||||
|
) -}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>
|
<div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse">
|
||||||
<div class="collapse border bg-body-tertiary rounded p-1 navbar-nav-scroll" id="toc-collapse">
|
<div class="toc toc-panel text-body p-2">
|
||||||
<div class="toc toc-panel text-body p-2">
|
<small>{{ $page.TableOfContents }}</small>
|
||||||
<small>{{ $page.TableOfContents }}</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</p>
|
</div>
|
||||||
{{ end -}}
|
{{ end -}}
|
@@ -18,6 +18,6 @@
|
|||||||
|
|
||||||
<!-- Main code -->
|
<!-- Main code -->
|
||||||
{{ if and (not $error) (gt $items 1) -}}
|
{{ if and (not $error) (gt $items 1) -}}
|
||||||
<strong class="d-block h6 my-2 pb-2 border-bottom">{{ T "toc" }}</strong>
|
<strong class="d-block h6 my-2 pb-2">{{ T "toc" }}:</strong>
|
||||||
{{ $page.TableOfContents }}
|
{{ $page.TableOfContents }}
|
||||||
{{ end -}}
|
{{ end -}}
|
Reference in New Issue
Block a user