Skip to content

Commit

Permalink
fix: prose code fallback color for old browsers. closes: #2715
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Jan 2, 2024
1 parent 2e54712 commit 0471a04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/styled/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
& :where(code):not(:where([class~="not-prose"] *, pre *)) {
padding: 1px 8px;
border-radius: var(--rounded-badge);
background-color: theme(colors.base-content/0.1);
font-weight: initial;
background-color: theme(colors.base-content/0.1);
@supports not (color: oklch(0 0 0)) {
background-color: theme(colors.base-300);
}
}
& :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *))::before,
& :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *))::after {
Expand Down

0 comments on commit 0471a04

Please sign in to comment.