Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / contents / labels.pug
diff options
context:
space:
mode:
Commit329fec6799945d878247d6d70f1a6ad26ade3f77 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-06-10 11:09:52 +0800
Committer
 GitHub <noreply@github.com>
2018-06-10 11:09:52 +0800
Files9225a7e69444531c04fba3f028b49c73c80c1d47 /docs/src/contents/labels.pug
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar.gz
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.zip
Parent7a6af53bca72b549b2cbf1948763348bd5b30dcd (diff)
Parent1c439a3201df5b559b124940c8fcc2702c345631 (diff)
Merge pull request #451 from picturepan2/0.5.2
0.5.2
1 files changed, 35 insertions, 0 deletions
-rw-r--r--docs/src/contents/labels.pug35
diff --git a/docs/src/contents/labels.pug b/docs/src/contents/labels.pug
new file mode 100644
index 0000000..f0ad51f
--- /dev/null
+++ b/docs/src/contents/labels.pug
@@ -0,0 +1,35 @@
+p Labels are formatted text tags for highlighted, informative information.
+
+.docs-demo.columns
+ .column
+ span.label.mr-1 default label
+ span.label.label-primary.mr-1 primary label
+ span.label.label-secondary.mr-1 secondary label
+ span.label.label-success.mr-1 success label
+ span.label.label-warning.mr-1 warning label
+ span.label.label-error error label
+
+p
+ | Add the #[code label] class to #{'<span>'} or #{'<small>'} elements.
+ | You can add another class #[code label-primary], #[code label-secondary], #[code label-success], #[code label-warning] and #[code label-error] for colored labels.
+
+pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <!-- normal labels -->
+ <span class="label">default label</span>
+ <span class="label label-primary">primary label</span>
+
+.docs-demo.columns
+ .column
+ span.label.label-rounded.mr-1 default label
+ span.label.label-rounded.label-primary primary label
+
+p
+ | Add the #[code label-rounded] class to have rounded labels.
+
+pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <!-- rounded labels -->
+ <span class="label label-rounded label-primary">primary label</span> \ No newline at end of file