Skip to content

Commit 131dbdc

Browse files
authored
[APT-1671] Sidebar refinements (#144)
- Remove left border from subsections - Use semi-bold font instead of bold - Tightened up horizontal padding to reduce wrapping - Smaller disclosure carat - Special styling for guide titles - Fixed names of some guides
1 parent 3effddf commit 131dbdc

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

sidebars/compliance-guide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const complianceGuide = [
22
{
3-
label: "Achieve Compliance Guide",
3+
label: "CIS Benchmark Compliance Guide",
44
type: "category",
55
link: {
66
type: "doc",

sidebars/landing-zone-guide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const landingZoneGuide = [
22
{
3-
label: "Landing Zone Guides",
3+
label: "Landing Zone Guide",
44
type: "category",
55
link: {
66
type: "doc",

src/css/custom.css

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,33 @@ html[data-theme="dark"] aside {
204204
}
205205

206206
.menu__list-item > .menu__list > .menu__list-item:last-child {
207-
padding-bottom: 1.5rem;
207+
padding-bottom: 0.5rem;
208208
}
209209

210-
nav.menu > ul.theme-doc-sidebar-menu > .menu__list-item > .menu__list {
211-
border-left: 1px solid var(--ifm-toc-border-color);
210+
.menu__list-item-collapsible a {
211+
font-weight: 600;
212+
}
213+
214+
/* Special styles for top level guide titles */
215+
.menu__list-item-collapsible a:not(.menu__link--sublist) {
216+
text-transform: uppercase;
217+
font-size: 0.85rem;
218+
letter-spacing: 0.05rem;
219+
}
220+
221+
/* Hide disclosure carats on top level of guides */
222+
.menu__list-item-collapsible a:not(.menu__link--sublist) + button {
223+
display: none;
224+
}
225+
226+
.menu__link,
227+
.menu__caret {
228+
padding-right: calc(var(--ifm-menu-link-padding-horizontal) / 3);
212229
}
213230

214-
.menu__link--sublist {
215-
font-weight: bold;
231+
.menu__link:after,
232+
.menu__caret:before {
233+
background: var(--ifm-menu-link-sublist-icon) 50% / 1.25rem 1.25rem;
216234
}
217235

218236
html[data-theme="light"] .menu__link--sublist {

0 commit comments

Comments
 (0)