Skip to content

Commit 27c3685

Browse files
committed
docs: update theme
1 parent d99a454 commit 27c3685

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

packages/docs/src/components/Sidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Sidebar: FC<SidebarProps> = ({ ...props }) => {
2323
<AppContext.Consumer>
2424
{(context) => (
2525
<CSidebar
26-
className="docs-sidebar border-end ps-xl-4 elevation-0"
26+
className="docs-sidebar border-end px-xl-4 elevation-0"
2727
position="fixed"
2828
size="lg"
2929
visible={context.sidebarVisible}
@@ -48,8 +48,8 @@ const Sidebar: FC<SidebarProps> = ({ ...props }) => {
4848
</g>
4949
</svg>
5050
</CSidebarBrand>
51-
<div className="text-body-secondary ms-3 me-5 mb-2 small fw-semibold">Framework:</div>
52-
<CDropdown className="ms-3 me-5 mb-4">
51+
<div className="text-body-secondary mx-3 mb-2 small fw-semibold">Framework:</div>
52+
<CDropdown className="mx-3 mb-4">
5353
<CDropdownToggle color="primary" variant="outline">
5454
React.js
5555
</CDropdownToggle>

packages/docs/src/styles/_sidebar.scss

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
--cui-sidebar-bg: var(--cui-tertiary-bg);
33
--cui-sidebar-brand-bg: transparent;
44
--cui-sidebar-brand-color: var(--cui-body-color);
5-
--cui-sidebar-nav-link-color: var(--cui-body-color);
6-
--cui-sidebar-nav-link-active-bg: transparent;
7-
--cui-sidebar-nav-link-active-color: var(--cui-primary);
8-
--cui-sidebar-nav-link-hover-bg: transparent;
9-
--cui-sidebar-nav-link-hover-color: var(--cui-primary);
10-
--cui-sidebar-nav-group-bg: transparent;
11-
--cui-sidebar-nav-group-toggle-show-color: var(--cui-primary);
125

13-
.nav-group-items {
6+
.sidebar-nav {
147
--cui-sidebar-nav-link-color: var(--cui-body-color);
8+
--cui-sidebar-nav-link-active-bg: transparent;
9+
--cui-sidebar-nav-link-active-color: var(--cui-primary);
10+
--cui-sidebar-nav-link-hover-bg: transparent;
11+
--cui-sidebar-nav-link-hover-color: var(--cui-primary);
12+
--cui-sidebar-nav-link-icon-margin: 1rem;
13+
--cui-sidebar-nav-group-bg: transparent;
14+
--cui-sidebar-nav-group-toggle-show-color: var(--cui-primary);
15+
16+
.compact .nav-link {
17+
--cui-sidebar-nav-link-padding-y: .375rem;
18+
}
19+
20+
.nav-group-items {
21+
--cui-sidebar-nav-link-color: var(--cui-body-color);
22+
}
23+
}
24+
}
25+
26+
@if $enable-dark-mode {
27+
@include color-mode(dark) {
28+
.docs-sidebar {
29+
--cui-sidebar-bg: var(--cui-body-bg);
30+
}
1531
}
1632
}

0 commit comments

Comments
 (0)