Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / elements / labels.pug
diff options
context:
space:
mode:
Commit3ab3a9d09955772ec56ddadbba49954b4edd6a3e (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-06 18:52:37 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-11-06 18:52:37 +0800
Files00686d5c0bcd66010f4f26768dde13e26a49b709 /docs/src/elements/labels.pug
Spectre-Dark-Gruvbox-3ab3a9d09955772ec56ddadbba49954b4edd6a3e.tar
Spectre-Dark-Gruvbox-3ab3a9d09955772ec56ddadbba49954b4edd6a3e.tar.gz
Spectre-Dark-Gruvbox-3ab3a9d09955772ec56ddadbba49954b4edd6a3e.zip
Parent13b42d4c792f0a579d2d974492e13cd77d6f77f7 (diff)
Update the Docs completely
1 files changed, 51 insertions, 0 deletions
-rw-r--r--docs/src/elements/labels.pug51
diff --git a/docs/src/elements/labels.pug b/docs/src/elements/labels.pug
new file mode 100644
index 0000000..7232d42
--- /dev/null
+++ b/docs/src/elements/labels.pug
@@ -0,0 +1,51 @@
+extends ../_layout/_docs-layout.pug
+
+block variables
+ - var slug = 'labels'
+ - var parent = 'elements'
+ - var title = 'Labels - Elements - Spectre.css CSS Framework'
+ - var description = 'Spectre.css is a lightweight, responsive and modern CSS framework for faster and extensible development. Spectre provides basic styles for typography and elements, flexbox based responsive layout system, pure CSS components and utilities with best practice coding and consistent design language.'
+
+block docs-content
+ +docs-heading('labels', 'Labels')
+ include ../_layout/_ad-g.pug
+
+ 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>
+
+ include ../_layout/_ad-c.pug
+
+ include ../_layout/_footer.pug \ No newline at end of file