Skip to content

Commit b6e4fa6

Browse files
committed
refinements
Signed-off-by: Eric Gregory <eric@cosmonic.com>
1 parent 78ca33b commit b6e4fa6

File tree

3 files changed

+50
-8
lines changed

3 files changed

+50
-8
lines changed

sidebars.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,21 @@ const sidebars = {
105105
id: 'wash/developer-guide/index',
106106
label: 'Introduction',
107107
},
108-
'wash/developer-guide/build-and-publish',
109-
'wash/developer-guide/create-services',
108+
{
109+
type: 'category',
110+
label: 'Developing Workloads',
111+
items: [
112+
{
113+
type: 'doc',
114+
id: 'wash/developer-guide/build-and-publish',
115+
label: 'Building and Publishing Components',
116+
},
117+
'wash/developer-guide/create-services',
118+
'wash/developer-guide/network-access-and-socket-isolation',
119+
'wash/developer-guide/debugging-components',
120+
'wash/developer-guide/useful-webassembly-tools',
121+
],
122+
},
110123
{
111124
type: 'category',
112125
label: 'Language Support',
@@ -126,9 +139,6 @@ const sidebars = {
126139
],
127140
},
128141
'examples',
129-
'wash/developer-guide/network-access-and-socket-isolation',
130-
'wash/developer-guide/debugging-components',
131-
'wash/developer-guide/useful-webassembly-tools',
132142

133143
{
134144
type: 'html',

src/styles/_custom.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656

5757
/* infima setup */
5858
--ifm-code-font-size: 95%;
59+
--ifm-menu-link-padding-vertical: 0.28rem;
5960
--ifm-spacing-xs: 0.25rem;
6061
--ifm-spacing-sm: 0.5rem;
6162
--ifm-spacing-md: 1rem;

src/styles/theme/_sidebar.css

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,47 @@
1+
/* Sidebar menu links */
2+
.menu__link {
3+
font-size: 0.875rem;
4+
font-weight: 450;
5+
line-height: 1.25;
6+
transition: background 150ms ease, color 150ms ease;
7+
}
8+
9+
/* Hover state */
10+
.menu__link:hover:not(.menu__link--active) {
11+
background: rgba(var(--wasmcloud-color-base-brand-green) / 0.06);
12+
color: var(--ifm-color-primary);
13+
}
14+
15+
/* Active item — left-border accent */
16+
.menu__link--active:not(.menu__link--sublist) {
17+
border-left: 2px solid var(--ifm-color-primary);
18+
padding-left: calc(var(--ifm-menu-link-padding-horizontal) - 2px);
19+
background: rgba(var(--wasmcloud-color-base-brand-green) / 0.08);
20+
border-radius: 0 var(--ifm-global-radius) var(--ifm-global-radius) 0;
21+
color: var(--ifm-color-primary);
22+
font-weight: 500;
23+
}
24+
125
/* Sidebar section header labels */
226
.sidebar-section-header {
3-
font-size: 0.7rem;
27+
font-size: 0.65rem;
428
font-weight: 700;
5-
letter-spacing: 0.08em;
29+
letter-spacing: 0.1em;
630
text-transform: uppercase;
731
color: var(--ifm-color-emphasis-500);
32+
border-top: 1px solid var(--ifm-color-emphasis-200);
833
margin-top: var(--ifm-spacing-md);
9-
padding: 0.25rem var(--ifm-menu-link-padding-horizontal);
34+
padding: var(--ifm-spacing-sm) var(--ifm-menu-link-padding-horizontal) 0.25rem;
1035
pointer-events: none;
1136
cursor: default;
1237
}
1338

39+
html[data-theme='dark'] .sidebar-section-header {
40+
color: var(--ifm-color-emphasis-400);
41+
}
42+
1443
.sidebar-section-header:first-child {
44+
border-top: none;
1545
margin-top: 0;
46+
padding-top: 0.25rem;
1647
}

0 commit comments

Comments
 (0)