Skip to content

Commit 479c3bb

Browse files
committed
style: Update sidebar styles for consistency
Signed-off-by: Orhun Ucak <[email protected]>
1 parent eed3d72 commit 479c3bb

File tree

5 files changed

+45
-40
lines changed

5 files changed

+45
-40
lines changed

docs-gen/assets/scss/common/_custom.scss

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,46 @@
11
// Put your custom SCSS code here
22

3-
/* Custom CSS fixes for sidebar layout */
3+
/* DEBUG: Visualize sidebar boundaries */
44
.docs-sidebar {
5-
padding-left: 1rem !important;
6-
padding-right: 1rem !important;
5+
background-color: rgba(255, 0, 0, 0.05) !important;
6+
outline: 2px solid red !important;
77
}
88

9-
.docs-sidebar .section-nav {
10-
width: 100% !important;
11-
padding-left: 0 !important;
9+
.docs-links {
10+
background-color: rgba(0, 255, 0, 0.05) !important;
11+
outline: 2px solid green !important;
1212
}
1313

14-
.docs-sidebar .list-unstyled {
15-
margin-left: 0 !important;
16-
padding-left: 0 !important;
14+
.section-nav {
15+
background-color: rgba(0, 0, 255, 0.05) !important;
16+
outline: 2px solid blue !important;
1717
}
1818

19-
.docs-sidebar .list-unstyled li {
20-
margin-left: 0 !important;
21-
padding-left: 0 !important;
19+
.section-nav ul {
20+
background-color: rgba(255, 255, 0, 0.05) !important;
21+
outline: 2px solid yellow !important;
2222
}
2323

24-
.docs-sidebar .list-unstyled li a {
25-
display: block;
26-
padding: 0.375rem 0.75rem;
27-
text-decoration: none;
28-
border-radius: 0.25rem;
29-
}
30-
31-
/* Nested navigation styling */
32-
.docs-sidebar .list-nested {
33-
margin-top: 0.5rem !important;
34-
margin-bottom: 1rem !important;
35-
padding-left: 1rem !important;
36-
}
37-
38-
.docs-sidebar .list-nested li a {
39-
padding: 0.25rem 0.5rem;
40-
font-size: 0.9rem;
41-
color: #6c757d;
24+
/* Fix sidebar width consistency across page types */
25+
@include media-breakpoint-up(xl) {
26+
.docs-sidebar {
27+
/* Override theme's flex: 0 1 320px which allows shrinking */
28+
/* Use Bootstrap's col-xl-3 width (25%) consistently */
29+
flex: 0 0 25% !important;
30+
max-width: 25% !important;
31+
}
4232
}
4333

44-
.docs-sidebar .list-nested li.active a {
45-
background-color: #e9ecef;
46-
color: #495057;
47-
font-weight: 600;
34+
/* Fix vertical alignment - normalize content padding across page types */
35+
.content {
36+
padding-top: 1rem !important;
4837
}
4938

50-
.docs-sidebar .list-nested li a:hover {
51-
background-color: #f8f9fa;
52-
color: #495057;
39+
/* Keep the same bottom padding for both */
40+
.list.section .content,
41+
.single.section .content {
42+
padding-top: 1rem !important;
43+
padding-bottom: 3rem !important;
5344
}
5445

5546
.list.section.showcase {

docs-gen/content/docs/approach-overview/actively-developed.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Actively Developed (SME)
33
weight: 10
4-
chapter: false
54
---
65

76
{{< img src="images/actively_developed.png" alt="Frame 1: Actively Developed" >}}

docs-gen/content/docs/approach-overview/automated.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Automated (CI Tooling)
33
weight: 20
4-
chapter: false
54
---
65

76
{{< img src="images/automated.png" alt="Frame 2: Automated" >}}

docs-gen/content/docs/approach-overview/optional-extensions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Optional Extensions (Modelers)
33
weight: 60
4-
chapter: false
54
---
65

76
{{< img src="images/optional_extensions.png" alt="Frame 3: Optional Extensions" >}}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html lang="{{ .Site.LanguageCode | default "en" }}" data-bs-theme="{{ site.Params.doks.colorMode | default "auto" }}">
3+
{{ partial "head/head" . }}
4+
{{ partial "head/body-class" . }}
5+
<body class="{{ delimit (.Scratch.Get "class") " " }}"{{ if eq site.Params.doks.scrollSpy true }} data-bs-spy="scroll" data-bs-target="#toc" data-bs-root-margin="0px 0px -60%" data-bs-smooth-scroll="true" tabindex="0"{{ end }}>
6+
{{ partial "header/header" . }}
7+
<div class="wrap container-{{ site.Params.doks.containerBreakpoint | default "lg" }}" role="document">
8+
<div class="content">
9+
{{- /* Remove the extra container wrapper that causes layout issues */ -}}
10+
{{ block "main" . }}{{ end }}
11+
</div>
12+
</div>
13+
{{ if site.Params.doks.toTopButton -}}
14+
{{ partial "footer/to-top" . }}
15+
{{ end }}
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)