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

Commit

Permalink
Fix styling of code blocks:
Browse files Browse the repository at this point in the history
- Background should be applied to <code>, not to <pre>
- Should not have stripped padding from code blocks
  • Loading branch information
rix0rrr committed May 2, 2021
1 parent e1fe2d2 commit 567ccbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/css/generated.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tailwind/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ h3 {
}

pre, code {
background: #272822 !important;
}

.markdown code {
@apply py-2 px-3 text-base;
}

pre code {
@apply block bg-gray-200 py-2 px-4 my-2 rounded text-base border-gray-300 border;
@apply text-red-600;
Expand All @@ -109,14 +109,14 @@ pre {

/* Code in a fenced code block (``` in MarkDown) */
pre code {
padding: 0 !important;
font-size: 100%;
color: white;
}

/* All code (` and ```) */
code {
@apply font-mono inline rounded py-1 px-2;
background: #272822 !important;
/* color: #ff6188; */
/* Temporarily back to white because syntax highlighting in Ace is not implemented yet for all levels */
color: white;
Expand Down

0 comments on commit 567ccbc

Please sign in to comment.