File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -1157,6 +1157,9 @@ blockquote.caution {
11571157 background-color : oklch (var (--color-callout-caution-shadow ));
11581158 border-bottom : 1px solid oklch (var (--color-callout-caution-primary ));
11591159 }
1160+ .call-out-type .feather {
1161+ color : oklch (var (--color-callout-caution-primary ));
1162+ }
11601163}
11611164
11621165blockquote .warning {
@@ -1167,6 +1170,9 @@ blockquote.warning {
11671170 background-color : oklch (var (--color-callout-warning-shadow ));
11681171 border-bottom : 1px solid oklch (var (--color-callout-warning-primary ));
11691172 }
1173+ .call-out-type .feather {
1174+ color : oklch (var (--color-callout-warning-primary ));
1175+ }
11701176}
11711177
11721178blockquote .important {
Original file line number Diff line number Diff line change 3535
3636{{/* Render a different block, if "loud" callouts are used */}}
3737{{ $specialTitles := slice "Caution" "Warning" "Deprecated" "Important" }}
38+ {{ $specialTitleIcons := dict
39+ "Caution" "alert-triangle"
40+ "Warning" "alert-octagon"
41+ "Deprecated" "alert-octagon"
42+ "Important" "arrow-right-circle"
43+ }}
44+ {{ $icon := index $specialTitleIcons $title | default "" }}
45+
3846{{ $isSpecialTitle := in $specialTitles $title }}
3947{{ if $isSpecialTitle }}
4048 {{/* Loud callouts */}}
4149 < blockquote class ="{{ $class }} " data-mf ="true " style ="display: none; ">
4250 < div >
43- {{ with $icon }}
44- < i class ="{{ . }} "> </ i >
45- {{ end }}
4651 < div class ="call-out-type ">
52+ {{ partial "feather" (dict "context" . "icon" $icon) .}}
4753 {{ $title }}
4854 </ div >
49- < div class =" special-content " >
55+ < div >
5056 {{ .content | markdownify }}
5157 </ div >
5258 </ div >
Original file line number Diff line number Diff line change 66{{</ call-out > }}
77
88Backwards compatibility usage:
9- {{< call-out "warning" "Custom title""fa fa-check-circle" "true"> }}
9+ {{< call-out "warning" "Custom title" "fa fa-check-circle" "true"> }}
1010This callout uses the icon check-circle. **This should be an inline callout.**
1111{{</ call-out > }}
1212
You can’t perform that action at this time.
0 commit comments