--- title: "Papercss Shortcodes" date: 2019-02-26T13:50:01-06:00 tags: [shortcodes] show_summary: false --- ## collapsible ``` {{}} Bacon ipsum dolor sit amet beef venison beef ribs kielbasa. {{}} {{}} Bacon ipsum dolor sit amet landjaeger sausage brisket. {{}} ``` {{< collapsible "First" >}} Bacon ipsum dolor sit amet beef venison beef ribs kielbasa. {{< /collapsible >}} {{< collapsible "Second" >}} Bacon ipsum dolor sit amet landjaeger sausage brisket. {{< /collapsible >}} ## border ``` {{}} Regular {{}} {{}} Dashed {{}} {{}} Dotted {{}} {{}} Dashed Thick {{}} {{}} Dotted Thick {{}} ``` {{< border >}} Regular {{< /border >}} {{< 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 The `img` param accepts an [image page resource](https://gohugo.io/content-management/page-resources/) name. The `command` and `options` params accept [image processing](https://gohugo.io/content-management/image-processing/#readout) args. Required params: `img`, `command`, `options`. Optional params: `title`, `subtitle`, `text`. ``` {{}} ``` {{< card img="sun.jpg" command="Resize" options="900x" title="The Sun" subtitle="It's the Sun, dude" text="The Sun is the star at the center of the Solar System. It is a nearly perfect sphere of hot plasma, with internal convective motion that generates a magnetic field via a dynamo process. It is by far the most important source of energy for life on Earth. [Credits](https://images.nasa.gov/details-GSFC_20171208_Archive_e000393.html)." >}} ## With Markdown ``` {{}} * Testing GitHub issue * **bold** * _italic_ {{}} {{}} * Testing GitHub issue * **bold** * _italic_ {{}} {{}} * Testing GitHub issue * **bold** * _italic_ {{}} {{}} * Testing GitHub issue * **bold** * _italic_ {{}}

Example badge {{}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{}}

``` {{< border >}} * Testing GitHub issue * **bold** * _italic_ {{< /border >}}
{{< color "success" >}} * Testing GitHub issue * **bold** * _italic_ {{< /color >}}
{{< background "success" >}} * Testing GitHub issue * **bold** * _italic_ {{< /background >}}
{{< alert "success" >}} * Testing GitHub issue * **bold** * _italic_ {{< /alert >}}

Example badge {{< badge "success" >}}[link](https://gohugo.io/functions/markdownify/), **bold**, _italic_{{< /badge >}}