Skip to content

Commit 9330c8e

Browse files
committed
[Dark-mode] Card shortcode style fixes
1 parent c4e20bf commit 9330c8e

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

assets/scss/shortcodes/cards-pane.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
}
1313
}
1414

15+
.card-header.code {
16+
background-color: $card-bg;
17+
}
18+
1519
.card-body {
1620
&.code {
17-
background-color: #f8f9fa;
21+
background-color: $card-bg;
1822
padding: 0 0 0 1ex;
1923
}
2024

layouts/shortcodes/card-code.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<div class="td-card card border me-4">
66
{{ with $.Get "header" -}}
7-
<div class="card-header bg-white">
7+
<div class="card-header code">
88
{{ . | markdownify -}}
99
</div>
1010
{{ end -}}

layouts/shortcodes/card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<div class="td-card card border me-4">
1616
{{ with $.Get "header" -}}
17-
<div class="card-header{{- cond $code " bg-white" "" -}}">
17+
<div class="card-header{{- cond $code " code" "" -}}">
1818
{{ . | markdownify }}
1919
</div>
2020
{{ end -}}

0 commit comments

Comments
 (0)