Skip to content

Commit

Permalink
code bg colors
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonconcepcion committed Oct 13, 2024
1 parent 64bd5f6 commit 298dd58
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _sass/color_schemes/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ $nav-child-link-color: $grey-dk-000;
$sidebar-color: $grey-dk-300;
$base-button-color: $grey-dk-250;
// $btn-primary-color: $blue-200;
$code-bg-color: $body-background-color;
$code-color: #e685b5; // Bootstrap 5 default
$code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
$code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
$feedback-color: darken($sidebar-color, 3%);
Expand Down
4 changes: 4 additions & 0 deletions _sass/color_schemes/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ $project-color: #9343A3;
$office-hours-color: #088191;
$exam-color: #D60A70;
$block-text-color: #e6e1e8;
$label-color: #717171;
$table-background-color: #fdfdfd;
$code-color: #c7254e;
$code-bg-color: #f9f2f4;
12 changes: 11 additions & 1 deletion _sass/custom/resources.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@

.dropdownContent::-webkit-scrollbar-thumb:hover {
background: #555;
}
}

code {
font-size: 1em; // Override theme...
padding: 0.2em 0.4em;
line-height: 1.6;
border: none;

background-color: $code-bg-color;
color: $code-color;
}

0 comments on commit 298dd58

Please sign in to comment.