From b1204b9d2f02c55458dfc83d9b695c4aaa7cecad Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Tue, 26 Feb 2019 14:39:42 -0600 Subject: Initial shortcodes --- exampleSite/content/post/papercss-shortcodes.md | 221 ++++++++++++++++++++++++ layouts/shortcodes/alert.html | 3 + layouts/shortcodes/background.html | 3 + layouts/shortcodes/badge.html | 3 + layouts/shortcodes/border.html | 17 ++ layouts/shortcodes/color.html | 3 + 6 files changed, 250 insertions(+) create mode 100644 exampleSite/content/post/papercss-shortcodes.md create mode 100644 layouts/shortcodes/alert.html create mode 100644 layouts/shortcodes/background.html create mode 100644 layouts/shortcodes/badge.html create mode 100644 layouts/shortcodes/border.html create mode 100644 layouts/shortcodes/color.html diff --git a/exampleSite/content/post/papercss-shortcodes.md b/exampleSite/content/post/papercss-shortcodes.md new file mode 100644 index 0000000..3c785f9 --- /dev/null +++ b/exampleSite/content/post/papercss-shortcodes.md @@ -0,0 +1,221 @@ +--- +title: "Papercss Shortcodes" +date: 2019-02-26T13:50:01-06:00 +tags: [shortcodes] +--- + +## Border + +``` +{{}} +Dashed +{{}} + +{{}} +Dotted +{{}} + +{{}} +Dashed Thick +{{}} + +{{}} +Dotted Thick +{{}} +``` + +{{< border "dashed" >}} +Dashed +{{< /border >}} + +{{< border "dotted" >}} +Dotted +{{< /border >}} + +{{< border "dashed thick" >}} +Dashed Thick +{{< /border >}} + +{{< border "dotted thick" >}} +Dotted Thick +{{< /border >}} + +## Color + +``` +{{}} +Text primary +{{}} + +{{}} +Text secondary +{{}} + +{{}} +Text success +{{}} + +{{}} +Text warning +{{}} + +{{}} +Text danger +{{}} + +{{}} +Text muted +{{}} +``` + +{{< color "primary" >}} +Text primary +{{< /color >}} + +{{< color "secondary" >}} +Text secondary +{{< /color >}} + +{{< color "success" >}} +Text success +{{< /color >}} + +{{< color "warning" >}} +Text warning +{{< /color >}} + +{{< color "danger" >}} +Text danger +{{< /color >}} + +{{< color "muted" >}} +Text muted +{{< /color >}} + +## Background + +``` +{{}} +Background primary +{{}} + +{{}} +Background secondary +{{}} + +{{}} +Background success +{{}} + +{{}} +Background warning +{{}} + +{{}} +Background danger +{{}} +``` + +{{< background "primary" >}} +Background primary +{{< /background >}} + +{{< background "secondary" >}} +Background secondary +{{< /background >}} + +{{< background "success" >}} +Background success +{{< /background >}} + +{{< background "warning" >}} +Background warning +{{< /background >}} + +{{< background "danger" >}} +Background danger +{{< /background >}} + +## Alert + +``` +{{}} +Alert-primary +{{}} + +{{}} +Alert-secondary +{{}} + +{{}} +Alert-success +{{}} + +{{}} +Alert-warning +{{}} + +{{}} +Alert-danger +{{}} +``` + +{{< alert "primary" >}} +Alert-primary +{{< /alert >}} + +{{< alert "secondary" >}} +Alert-secondary +{{< /alert >}} + +{{< alert "success" >}} +Alert-success +{{< /alert >}} + +{{< alert "warning" >}} +Alert-warning +{{< /alert >}} + +{{< alert "danger" >}} +Alert-danger +{{< /alert >}} + +## Badge + +``` +

Example badge {{}}123{{}}

+ +

Example badge {{}}123{{}}

+ +

Example badge {{}}123{{}}

+ +

Example badge {{}}123{{}}

+ +

Example badge {{}}123{{}}

+``` + +

Example badge {{< badge >}}123{{< /badge >}}

+ +

Example badge {{< badge "secondary" >}}123{{< /badge >}}

+ +

Example badge {{< badge "success" >}}123{{< /badge >}}

+ +

Example badge {{< badge "warning" >}}123{{< /badge >}}

+ +

Example badge {{< badge "danger" >}}123{{< /badge >}}

+ +## Card + +``` +TODO +``` + +
+ Card example image + +
+

My awesome Paper card!

+
Nice looking subtitle.
+

Notice that the card width in this example have been set to 20rem, otherwise it will try to fill the current container/row where the card is.

+
+
diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html new file mode 100644 index 0000000..200f43b --- /dev/null +++ b/layouts/shortcodes/alert.html @@ -0,0 +1,3 @@ +

+ {{ .Inner }} +

\ No newline at end of file diff --git a/layouts/shortcodes/background.html b/layouts/shortcodes/background.html new file mode 100644 index 0000000..5ddc8ec --- /dev/null +++ b/layouts/shortcodes/background.html @@ -0,0 +1,3 @@ +

+ {{ .Inner }} +

\ No newline at end of file diff --git a/layouts/shortcodes/badge.html b/layouts/shortcodes/badge.html new file mode 100644 index 0000000..94ee273 --- /dev/null +++ b/layouts/shortcodes/badge.html @@ -0,0 +1,3 @@ + + {{ .Inner }} + \ No newline at end of file diff --git a/layouts/shortcodes/border.html b/layouts/shortcodes/border.html new file mode 100644 index 0000000..6446f3c --- /dev/null +++ b/layouts/shortcodes/border.html @@ -0,0 +1,17 @@ +{{ $arg := .Get 0 }} +{{ $class := "" }} +{{ if eq $arg "dashed" }} + {{ $class = "border-dashed" }} +{{ else if eq $arg "dotted" }} + {{ $class = "border-dotted" }} +{{ else if eq $arg "dashed thick" }} + {{ $class = "border-dashed border-thick" }} +{{ else if eq $arg "dotted thick" }} + {{ $class = "border-dashed border-thick" }} +{{ end }} + +
+

+ {{ .Inner }} +

+
\ No newline at end of file diff --git a/layouts/shortcodes/color.html b/layouts/shortcodes/color.html new file mode 100644 index 0000000..c87a3e0 --- /dev/null +++ b/layouts/shortcodes/color.html @@ -0,0 +1,3 @@ +

+ {{ .Inner }} +

\ No newline at end of file -- cgit v1.2.3