Skip to content

Commit 32058ff

Browse files
committed
adding custom color
1 parent 74a3e3b commit 32058ff

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

_sass/jekyll-theme-cs50.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ $headings-font-weight: bold;
2121
// https://getbootstrap.com/docs/5.3/customize/color-modes/#building-with-sass
2222
$color-mode-type: media-query;
2323

24+
// Custom colors
25+
$custom-colors: (
26+
"aside-bg": $link-color !default;
27+
);
28+
$theme-colors: map-merge($theme-colors, $custom-colors);
29+
2430
// Import Bootstrap
2531
@import "bootstrap/scss/bootstrap.scss";
2632

_sass/page.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ aside .btn[data-bs-toggle=modal]:hover {
7070
// Invert colors when not collapsed
7171
aside .btn[data-bs-toggle=collapse]:not(.collapsed) {
7272
background-color: $body-bg;
73-
color: $link-color;
73+
color: $aside-bg;
7474
}
7575

7676
aside hr {

0 commit comments

Comments
 (0)