diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss
index dd37e738eb..e5e376438b 100644
--- a/assets/scss/_custom.scss
+++ b/assets/scss/_custom.scss
@@ -497,14 +497,33 @@ body {
border-left-width: calc(max(0.5em, 4px));
border-top-left-radius: calc(max(0.5em, 4px));
border-bottom-left-radius: calc(max(0.5em, 4px));
+ padding-top: 0.75rem;
}
- .alert.callout.caution {
+ .alert.alert-caution {
border-left-color: #f0ad4e;
}
- .alert.callout.note {
+ .alert.alert-info {
border-left-color: #428bca;
+ h4, h4.alert-heading {
+ color: #000;
+ display: block;
+ float: left;
+ font-size: 1rem;
+ padding: 0;
+ padding-right: 0.5rem;
+ margin: 0;
+ line-height: 1.5;
+ font-weight: bolder;
+ }
}
- .alert.callout.warning {
+ .alert.alert-caution {
+ border-left-color: #f0ad4e;
+ h4, h4.alert-heading {
+ font-size: 1em;
+ font-weight: bold;
+ }
+ }
+ .alert.alert-warning {
border-left-color: #d9534f;
}
.alert.third-party-content {
diff --git a/layouts/shortcodes/caution.html b/layouts/shortcodes/caution.html
index 6df243b7c0..06d1ed70c1 100644
--- a/layouts/shortcodes/caution.html
+++ b/layouts/shortcodes/caution.html
@@ -1,3 +1,11 @@
-
-
{{ T "caution" }} {{ trim .Inner " \n" | markdownify }}
+
+{{- $_hugo_config := `{ "version": 1 }` -}}
+{{- $color := "caution" -}}
+
+{{- with ( T "caution" ) -}}
{{- . | safeHTML -}}
{{- end -}}
+{{- if eq .Page.File.Ext "md" -}}
+ {{- .Inner | markdownify -}}
+{{- else -}}
+ {{- .Inner | htmlUnescape | safeHTML -}}
+{{- end -}}
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html
index 8362b1f33f..587f0f37db 100644
--- a/layouts/shortcodes/note.html
+++ b/layouts/shortcodes/note.html
@@ -1,3 +1,11 @@
-
- {{ T "note" }} {{ trim .Inner " \n" | markdownify }}
-
\ No newline at end of file
+
+{{- $_hugo_config := `{ "version": 1 }` -}}
+{{ $color := "info" }}
+
+{{- with ( T "note" ) -}}
{{- . | safeHTML -}}
{{- end -}}
+{{- if eq .Page.File.Ext "md" -}}
+ {{- .Inner | markdownify -}}
+{{- else -}}
+ {{- .Inner | htmlUnescape | safeHTML -}}
+{{- end -}}
+
diff --git a/layouts/shortcodes/warning.html b/layouts/shortcodes/warning.html
index ec4639bd16..e309718aff 100644
--- a/layouts/shortcodes/warning.html
+++ b/layouts/shortcodes/warning.html
@@ -1,4 +1,11 @@
-
-
{{ T "warning" }} {{ trim .Inner " \n" | markdownify }}
+
+{{- $_hugo_config := `{ "version": 1 }` -}}
+{{- $color := "danger" -}}
+
+{{- with ( T "warning" ) -}}
{{- . | safeHTML -}}
{{- end -}}
+{{- if eq .Page.File.Ext "md" -}}
+ {{- .Inner | markdownify -}}
+{{- else -}}
+ {{- .Inner | htmlUnescape | safeHTML -}}
+{{- end -}}
-