Skip to content

Commit

Permalink
Fixes dark mode code snippet legibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbrethorst committed Feb 6, 2024
1 parent 6257b85 commit d969c8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions frontend/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ button.DocSearch.DocSearch-Button {
@apply font-sans m-0 p-0 w-auto inline-block;
}

pre.highlight {
background-color: transparent!important;
padding: 0!important;
}

@tailwind utilities;
7 changes: 6 additions & 1 deletion src/_partials/_head.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@

<meta name="description" content="<%= metadata.description %>" />

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/styles/default.min.css">
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/styles/default.min.css"
media="screen and (prefers-color-scheme: light)"
>

<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/styles/atom-one-dark.min.css"
Expand Down

0 comments on commit d969c8d

Please sign in to comment.