Skip to content

Commit

Permalink
Dark mode support for Markdown inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
LGiki committed Jun 5, 2021
1 parent 6d05a06 commit 5ac76a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/css/_color.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
--color-menu-link-hover: var(--color-gary-400);
--color-archive-month: var(--color-gary-500);
--color-footer-link: var(--color-blue-600);
--color-markdown-code-background: rgba(27, 31, 35, .05);
}

:root[data-theme="dark"] {
Expand Down Expand Up @@ -159,4 +160,5 @@
--color-menu-link-hover: var(--color-gary-200);
--color-archive-month: var(--color-gary-300);
--color-footer-link: var(--color-blue-400);
--color-markdown-code-background: rgba(27, 31, 35, .5);
}
4 changes: 3 additions & 1 deletion assets/css/_markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,9 @@
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, 0.05);
/* background-color: rgba(27, 31, 35, 0.05); */
background-color: var(--color-markdown-code-background);
transition:background-color .3s ease-in-out;
border-radius: 3px;
}

Expand Down

0 comments on commit 5ac76a9

Please # to comment.