Skip to content

Commit 28b3970

Browse files
committed
docs: update theme
1 parent 1a7dea9 commit 28b3970

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

docs/assets/scss/_sidebar.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,20 @@
1313
.nav-group-items {
1414
--cui-sidebar-nav-link-color: var(--cui-body-color);
1515
}
16+
17+
.sidebar-nav {
18+
--cui-sidebar-nav-link-icon-margin: 1rem;
19+
}
20+
21+
.sidebar-nav .compact .nav-link {
22+
--cui-sidebar-nav-link-padding-y: .375rem;
23+
}
1624
}
1725

26+
@if $enable-dark-mode {
27+
@include color-mode(dark) {
28+
.docs-sidebar {
29+
--cui-sidebar-bg: var(--cui-body-bg);
30+
}
31+
}
32+
}

docs/layouts/partials/sidebar.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div class="sidebar sidebar-lg sidebar-fixed sidebar-self-hiding-md border-end ps-xl-4 docs-sidebar elevation-0" id="sidebar">
1+
<div class="sidebar sidebar-lg sidebar-fixed sidebar-self-hiding-md border-end px-xl-4 docs-sidebar elevation-0" id="sidebar">
22
<div class="sidebar-brand justify-content-start ps-3">
33
{{ partial "icons/coreui-base.svg" (dict "class" "d-block mt-4 mb-5" "height" "50") }}
44
</div>
5-
<div class="text-body-secondary ms-3 me-5 mb-2 small fw-semibold">Framework:</div>
6-
<div class="dropdown ms-3 me-5 mb-4">
5+
<div class="text-body-secondary mx-3 mb-2 small fw-semibold">Framework:</div>
6+
<div class="dropdown mx-3 mb-4">
77
<button class="btn btn-outline-primary dropdown-toggle w-100" type="button" id="dropdownMenuButton" data-coreui-toggle="dropdown" aria-expanded="false">
88
JavaScript / Vanilla JS
99
</button>

0 commit comments

Comments
 (0)