Skip to content

Commit 3fde9ea

Browse files
committed
Cards: Fix bugs with the card due to merge
1 parent 0c0867b commit 3fde9ea

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

assets/css/v2/style.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,13 +1482,21 @@ h6:has(a):hover {
14821482

14831483
&.featured-section {
14841484
/* Hide all the cards past 3 if it is a featured card section */
1485-
.card-section-content > *:nth-child(n + 4 of div.card) {
1485+
.card-section-content > *:nth-child(n + 4 of a.card) {
14861486
display: none;
14871487
}
14881488
}
14891489
}
14901490

14911491
.card {
1492+
color: oklch(var(--color-foreground));
1493+
text-decoration: none;
1494+
order: 2;
1495+
1496+
&.featured-card {
1497+
order: 1;
1498+
}
1499+
14921500
.card-container {
14931501
display: flex;
14941502
flex-direction: column;
@@ -1500,6 +1508,7 @@ h6:has(a):hover {
15001508
flex-direction: row;
15011509
gap: 1rem;
15021510
align-items: center;
1511+
color: oklch(var(--color-brand));
15031512

15041513
.card-brand-icon {
15051514
height: 20px;

layouts/shortcodes/card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $titleUrl := .Get "titleUrl" | default "." -}}
33
{{- $icon := .Get "icon" | default "book-open" -}}
44
{{- $brandIcon := .Get "brandIcon" -}}
5-
{{- $isFeaturedParam := .Get "isFeatured" | default "false" }}
5+
{{- $isFeaturedParam := .Get "isFeaturedCard" | default "false" }}
66
{{- $isFullSizeParam := .Get "isFullSize" | default "false" -}}
77
{{- $isLandingParam := .Get "isLanding" | default "false" }}
88

0 commit comments

Comments
 (0)