summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-22 19:26:45 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-22 19:26:45 +0200
commit0f8f963ba3eccd7fd94785bf7fb216b6287cec57 (patch)
treed937c9cfeecdebe00a418a8b39daa0a116daa40d /src/components/molecules/layout
parentabdcc01386fff0c1caa5d290cffcb0c5be906900 (diff)
chore: adjust dark mode styles
Diffstat (limited to 'src/components/molecules/layout')
-rw-r--r--src/components/molecules/layout/card.tsx2
-rw-r--r--src/components/molecules/layout/code.module.scss2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/components/molecules/layout/card.tsx b/src/components/molecules/layout/card.tsx
index 003060f..e465f76 100644
--- a/src/components/molecules/layout/card.tsx
+++ b/src/components/molecules/layout/card.tsx
@@ -95,7 +95,7 @@ const Card: FC<CardProps> = ({
{title}
</Heading>
</header>
- <div className={styles.tagline}>{tagline}</div>
+ {tagline && <div className={styles.tagline}>{tagline}</div>}
{meta && (
<footer className={styles.footer}>
<Meta
diff --git a/src/components/molecules/layout/code.module.scss b/src/components/molecules/layout/code.module.scss
index 2855fc2..1feeccc 100644
--- a/src/components/molecules/layout/code.module.scss
+++ b/src/components/molecules/layout/code.module.scss
@@ -105,7 +105,9 @@
position: relative;
overflow: auto;
+ background: var(--color-bg-secondary);
border: fun.convert-px(1) solid var(--color-border-light);
+ color: var(--color-fg);
hyphens: none;
tab-size: 4;
text-align: left;