Skip to content

Commit b2c0a7b

Browse files
Merge pull request #17 from ibm-client-engineering/sam-updates
updated header and right sidebar
2 parents 4e7be04 + 9c00f34 commit b2c0a7b

File tree

3 files changed

+34
-19
lines changed

3 files changed

+34
-19
lines changed

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language:
66
search-text-placeholder: Search
77

88
website:
9-
title: Project Name
9+
title: Solutions Hub
1010
favicon: images/bee.png
1111
page-navigation: true
1212
search:

index.qmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
---
33
title: "Project Name"
44
subtitle: "Subtitle"
5-
author: List Authors
65
format: html
76
---
87

src/custom.scss

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,6 @@ div.sidebar-item-container .active, div.sidebar-item-container .show > .nav-link
6060
margin-left: -0.75rem; /* Adjust alignment with the left margin */
6161
}
6262

63-
/* Bold Top-Level Headings in Sidebar */
64-
.sidebar nav[role=doc-toc] ul>li>a {
65-
font-weight: 800; /* Bold font weight for primary headings */
66-
}
67-
68-
/* Normal Font Weight for Subheadings */
69-
.sidebar nav[role=doc-toc] ul>li>ul>li>a {
70-
font-weight: 100; /* Normal font weight for subheadings */
71-
}
72-
7363
/* General Sidebar Item Padding */
7464
.sidebar-item {
7565
padding: .2rem; /* Adds padding for better spacing */
@@ -88,9 +78,27 @@ div.sidebar-item-container .active, div.sidebar-item-container .show > .nav-link
8878
/* Navbar Brand Text Styling */
8979
.navbar-brand {
9080
color: black; /* Default color */
91-
font-size: 18pt; /* Large font size */
81+
font-size: 14pt; /* Large font size */
82+
font-weight: 600;
83+
position: relative;
84+
display: block;
85+
-webkit-padding-start: 1rem;
86+
padding-inline-start: 1rem;
87+
}
88+
89+
.navbar-brand:not(.navbar-brand-logo):before {
90+
position: absolute;
91+
display: block;
92+
background-color: #DEE2E6;
93+
block-size: 2rem;
94+
content: "";
95+
inline-size: .0625rem;
96+
inset-block-start: 50%;
97+
inset-inline-start: 0;
98+
transform: translateY(-50%);
9299
}
93100

101+
94102
/* Navbar Brand Hover State */
95103
.navbar-brand:hover {
96104
color: black; /* Prevents color change on hover */
@@ -102,19 +110,25 @@ div.sidebar-item-container .active, div.sidebar-item-container .show > .nav-link
102110
}
103111

104112
/* Remove Border and Padding for Sidebar TOC Links */
113+
.sidebar nav[role=doc-toc] {
114+
opacity: .8;
115+
font-weight: 400;
116+
font-size: .925rem;
117+
line-height: 17px;
118+
padding: 0.5rem 0.75rem; /* Internal padding for spacing */
119+
}
120+
105121
.sidebar nav[role=doc-toc] ul>li>ul>li>a, .sidebar nav[role=doc-toc]>ul a {
106122
border-left: none; /* Removes border from TOC links */
107-
padding-left: 0; /* No extra padding on the left */
123+
padding-left: calc(1rem + 4px);
108124
}
109125

110126
/* Highlight Active State in Sidebar TOC */
111127
.sidebar nav[role=doc-toc] ul>li>a.active, .sidebar nav[role=doc-toc] ul>li>ul>li>a.active {
112128
border-left: 4px solid #0f62fe; /* Thin blue left border */
113-
color: #0f62fe !important; /* Blue text color */
114-
background-color: #E9E9E9; /* Light blue background */
115129
border-radius: 0 4px 4px 0; /* Rounded right corners */
116-
padding: 0.50em 0.75rem; /* Internal spacing */
117-
margin-left: -0.75rem; /* Aligns active items to the left */
130+
padding-left: 1rem;
131+
color: black !important;
118132
}
119133

120134
/* Autocomplete Search Form Width */
@@ -153,7 +167,7 @@ nav .nav-link i, nav .dropdown-item i {
153167
}
154168
/* Specific styling for brand icons */
155169
.bi-linkedin {
156-
color: #0077B5; /* LinkedIn icon in blue */
170+
color: black; /* LinkedIn icon in blue */
157171
font-size: 24px !important;
158172
height: 50px; /* Icon height */
159173
width: 50px; /* Icon width */
@@ -226,6 +240,8 @@ nav .nav-link i, nav .dropdown-item i {
226240
}
227241
}
228242

243+
244+
229245
/* Footer Styling */
230246
.footer {
231247
font-size: 1rem; /* Base font size */

0 commit comments

Comments
 (0)