🐛 Fix code block style within links

pull/26/head
James Panther 2021-11-04 09:56:30 +11:00
parent 44bc4fbeb8
commit 40899da9a8
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 16 additions and 3 deletions

View File

@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Site logo image dimensions are unconstrained ([#19](https://github.com/jpanther/congo/issues/19)) - Site logo image dimensions are unconstrained ([#19](https://github.com/jpanther/congo/issues/19))
- Article summary styled incorrectly in dark mode - Article summary styled incorrectly in dark mode
- Links containing `code` blocks styled incorrectly
## [1.4.0] - 2021-10-20 ## [1.4.0] - 2021-10-20

View File

@ -787,7 +787,7 @@ video {
} }
.prose a code { .prose a code {
color: #111827; color: var(--color-secondary-700);
} }
.prose pre { .prose pre {
@ -2457,6 +2457,11 @@ body a, body button {
text-decoration-color: var(--color-neutral-500); text-decoration-color: var(--color-neutral-500);
} }
.dark .dark\:prose-light a:hover {
color: var(--color-neutral);
text-decoration: none;
}
.dark .dark\:prose-light strong { .dark .dark\:prose-light strong {
color: var(--color-neutral); color: var(--color-neutral);
} }
@ -2503,7 +2508,7 @@ body a, body button {
} }
.dark .dark\:prose-light a code { .dark .dark\:prose-light a code {
color: var(--color-neutral); color: var(--color-secondary-400);
} }
.dark .dark\:prose-light pre { .dark .dark\:prose-light pre {

View File

@ -111,6 +111,9 @@ module.exports = {
code: { code: {
color: theme("colors.secondary.700"), color: theme("colors.secondary.700"),
}, },
"a code": {
color: theme("colors.secondary.700"),
},
"pre code": { "pre code": {
color: theme("colors.neutral.700"), color: theme("colors.neutral.700"),
}, },
@ -150,6 +153,10 @@ module.exports = {
a: { a: {
color: theme("colors.primary.400"), color: theme("colors.primary.400"),
textDecorationColor: theme("colors.neutral.500"), textDecorationColor: theme("colors.neutral.500"),
"&:hover": {
color: theme("colors.neutral.DEFAULT"),
textDecoration: "none",
},
}, },
strong: { strong: {
color: theme("colors.neutral.DEFAULT"), color: theme("colors.neutral.DEFAULT"),
@ -186,7 +193,7 @@ module.exports = {
color: theme("colors.secondary.400"), color: theme("colors.secondary.400"),
}, },
"a code": { "a code": {
color: theme("colors.neutral.DEFAULT"), color: theme("colors.secondary.400"),
}, },
pre: { pre: {
color: theme("colors.neutral.200"), color: theme("colors.neutral.200"),