Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbuchelva <anbuchelva@gmail.com>2020-01-15 18:48:36 +0300
committeranbuchelva <anbuchelva@gmail.com>2020-01-15 19:12:33 +0300
commit0fda7ac20c9141908a151d66ca9b477b4cce6e42 (patch)
tree0bb7919fdb6e09505756b0484ad5eb3f48954a86
parent4c8270bee260a61cddbe59ab28d4cdc22a0fd202 (diff)
introduce alert shortcodes
-rw-r--r--assets/css/style.css25
-rw-r--r--layouts/shortcodes/alert.html3
2 files changed, 28 insertions, 0 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index ed60260..ace3084 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -9429,4 +9429,29 @@ body.okayNav-loaded {
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
+}
+
+.alert-info {
+ padding: 10px 15px 0.1px;
+ margin: 0 0 10px;
+ border-left: 3px solid #349ef3;
+ background-color: #e8edfd;
+}
+.alert-success {
+ padding: 10px 15px 0.1px;
+ margin: 0 0 10px;
+ border-left: 3px solid #4dc657;
+ background-color: #ecf9ed;
+}
+.alert-danger {
+ padding: 10px 15px 0.1px;
+ margin: 0 0 10px;
+ border-left: 3px solid #f5311d;
+ background-color: #fee9e7;
+}
+.alert-warning {
+ padding: 10px 15px 0.1px;
+ margin: 0 0 10px;
+ border-left: 3px solid #ffcc00;
+ background-color: #fffae6;
} \ No newline at end of file
diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html
new file mode 100644
index 0000000..e4b3bfa
--- /dev/null
+++ b/layouts/shortcodes/alert.html
@@ -0,0 +1,3 @@
+<div class="alert-{{ range .Params }}{{ . }} {{ end }}">
+ <p>{{ .Inner | markdownify }}</p>
+</div> \ No newline at end of file