Skip to content

Commit b7cc690

Browse files
committed
Icons: Fix icon usage in callouts
1 parent 8ad2651 commit b7cc690

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

assets/css/v2/style.css

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ blockquote.caution {
17801780
background-color: oklch(var(--color-callout-caution-shadow));
17811781
border-bottom: 1px solid oklch(var(--color-callout-caution));
17821782
}
1783-
.call-out-type .feather {
1783+
.call-out-type .lucide {
17841784
color: oklch(var(--color-callout-caution));
17851785
}
17861786
}
@@ -1793,7 +1793,7 @@ blockquote.warning {
17931793
background-color: oklch(var(--color-callout-warning-shadow));
17941794
border-bottom: 1px solid oklch(var(--color-callout-warning));
17951795
}
1796-
.call-out-type .feather {
1796+
.call-out-type .lucide {
17971797
color: oklch(var(--color-callout-warning));
17981798
}
17991799
}
@@ -2104,7 +2104,7 @@ hr {
21042104
border: 1px solid oklch(var(--color-divider));
21052105
}
21062106

2107-
.feather {
2107+
.lucide {
21082108
width: 1.8ch;
21092109
height: 1.8ch;
21102110
stroke: currentColor;
@@ -2116,18 +2116,6 @@ hr {
21162116
margin: 0;
21172117
}
21182118

2119-
.lucide {
2120-
width: 1.5rem;
2121-
height: 1.5rem;
2122-
stroke: currentColor;
2123-
fill: none;
2124-
stroke-width: 2;
2125-
stroke-linecap: square;
2126-
stroke-linejoin: square;
2127-
vertical-align: sub;
2128-
margin: 0;
2129-
}
2130-
21312119
/* MARK: Accessibility
21322120
*/
21332121

layouts/partials/callout.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
{{ $type := (index (split $class " ") 0) | strings.FirstUpper }}
2424
{{ $specialTitles := slice "Caution" "Warning" "Deprecated" "Important" }}
2525
{{ $specialTitleIcons := dict
26-
"Caution" "alert-triangle"
27-
"Warning" "alert-octagon"
28-
"Deprecated" "alert-octagon"
29-
"Important" "arrow-right-circle"
26+
"Caution" "triangle-alert"
27+
"Warning" "octagon-alert"
28+
"Deprecated" "octagon-alert"
29+
"Important" "circle-arrow-right"
3030
}}
3131
{{ $icon := index $specialTitleIcons $type | default "" }}
32-
3332
{{ $isSpecialTitle := in $specialTitles $type }}
3433
{{ if $isSpecialTitle }}
3534
{{/* Loud callouts */}}

0 commit comments

Comments
 (0)