Skip to content

Commit 92ec244

Browse files
Move sidebar styles to localized style.css to prevent upstream conflicts
1 parent 325d9c9 commit 92ec244

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

assets/static/css/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,23 @@ main a:has(span.gh-label) {
278278
color: #000000;
279279
}
280280

281+
/* Sidebar Visual Distinction */
282+
main:has( > aside.sidebar) > aside.sidebar {
283+
background-color: var(--vocabulary-brand-color-soft-gold);
284+
margin-left: 4.1rem;
285+
padding: 1em 1em 1em 4.1em;
286+
height: fit-content;
287+
}
288+
289+
main > aside.sidebar nav.filter-menu ul li.current {
290+
background: var(--vocabulary-brand-color-dark-tomato);
291+
font-weight: bold;
292+
}
293+
294+
main > aside.sidebar nav.filter-menu ul li.current a {
295+
--underline-background-color: var(--vocabulary-brand-color-dark-tomato);
296+
}
297+
281298
/* CC Search Feature */
282299
.steps-list {
283300
list-style: none;

assets/static/vocabulary/css/vocabulary.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,7 @@ main:has( > aside.sidebar) > article {
302302
main:has( > aside.sidebar) > aside.sidebar {
303303
grid-column: 7 / span 4;
304304
grid-row-start: 2;
305-
background-color: var(--vocabulary-brand-color-soft-gold);
306-
margin-left: 4.1rem;
307-
padding: 1em 1em 1em 4.1em;
308-
height: fit-content;
305+
padding-left: 4.1em;
309306
}
310307

311308
main > aside.sidebar h2 {
@@ -325,13 +322,13 @@ main > aside.sidebar nav.filter-menu ul li {
325322
}
326323

327324
main > aside.sidebar nav.filter-menu ul li.current {
328-
background: var(--vocabulary-brand-color-dark-tomato);
325+
background: var(--vocabulary-brand-color-soft-tomato);
329326
/* padding: 1em; */
330327
font-weight: bold;
331328
}
332329

333330
main > aside.sidebar nav.filter-menu ul li.current a {
334-
--underline-background-color: var(--vocabulary-brand-color-dark-tomato);
331+
--underline-background-color: var(--vocabulary-brand-color-soft-tomato);
335332
}
336333

337334
main > aside.sidebar nav ul {
@@ -437,7 +434,7 @@ main aside.opening p {
437434
main a {
438435
/* better hyperlink underline typesetting inspired by Tufte CSS */
439436
--underline-color: var(--vocabulary-brand-color-dark-tomato);
440-
/* --underline-background-color: white; */
437+
--underline-background-color: white;
441438
color: var(--vocabulary-brand-color-dark-tomato);
442439
text-decoration: none;
443440

0 commit comments

Comments
 (0)