Skip to content

Commit

Permalink
(enhance) Change the style of the inline code
Browse files Browse the repository at this point in the history
The initial inline code style was very non-obvious.
I eventually figured out I could change the syntax highlighting for the
inline code block with the following change.
https://www.janmeppe.com/blog/how-to-change-code-blocks-minimal-mistakes/
https://mmistakes.github.io/minimal-mistakes/docs/stylesheets/
mmistakes/minimal-mistakes#2808

Basically after the original SCSS is loaded, we make some configuration
changes.
The change exclude this style when the <code> tag is in the header <tag>

ChatGPT helped a little to understand what is going on and come up with
final solution.
  • Loading branch information
svaderia committed May 24, 2024
1 parent 41c94ea commit 35eb33f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ html {
.hide-title .page__title {
display: none;
}

// Custom styles for inline code
code.language-plaintext:not(h1 code.language-plaintext):not(h2 code.language-plaintext):not(h3 code.language-plaintext) {
color: #d14;
border: 1px solid #b6b6b6;
}

0 comments on commit 35eb33f

Please sign in to comment.