Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(style): improve gist markdown file rendering
Browse files Browse the repository at this point in the history
- Background now correctly uses the theme default, allowing render of markdown to be seamless.
- TODO: Nested code highlights from the markdown file itself still don't render with theming correctly
  • Loading branch information
sheldonhull committed Feb 15, 2021
1 parent 0f37c69 commit da4ed46
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions assets/css/_partial/_single/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,21 @@ pre,
color: $global-font-color-dark !important;
}
}
.markdown-body {
background-color: $global-background-color;
color: $global-font-color;

.highlight {
background-color: $code-background-color;
color: $code-color;

[theme="dark"] & {
background-color: $code-background-color-dark;
color: $code-color-dark;
}
}
[theme="dark"] & {
background-color: $global-background-color-dark !important;
color: $global-font-color-dark !important;
}
}

0 comments on commit da4ed46

Please sign in to comment.