From 611c666dbcbae64c233f0f335a09a2cee36c7132 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 3 Jun 2018 17:45:42 +0800 Subject: Update labels docs to Pug template --- docs/elements.html | 17 +++++++++++++++++ docs/src/contents/labels.pug | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) (limited to 'docs') diff --git a/docs/elements.html b/docs/elements.html index f971860..ae803f4 100644 --- a/docs/elements.html +++ b/docs/elements.html @@ -1213,6 +1213,23 @@

Labels

+

Labels are formatted text tags for highlighted, informative information.

+
+
default labelprimary labelsecondary labelsuccess labelwarning labelerror label
+
+

Add the label class to <span> or <small> elements. + You can add another class label-primary, label-secondary, label-success, label-warning and label-error for colored labels. +

+
+
default labelprimary label
+
+

Add the label-rounded class to have rounded labels.

+
<!-- normal labels -->
+<span class="label">default label</span>
+<span class="label label-primary">primary label</span>
+
+<!-- rounded labels -->
+<span class="label label-rounded label-primary">primary label</span>

Codes

diff --git a/docs/src/contents/labels.pug b/docs/src/contents/labels.pug index e69de29..2d55412 100644 --- a/docs/src/contents/labels.pug +++ b/docs/src/contents/labels.pug @@ -0,0 +1,32 @@ +p Labels are formatted text tags for highlighted, informative information. + +.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 #{''} or #{''} 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. + +.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") + + default label + primary label + + + primary label \ No newline at end of file -- cgit v1.3.1-23-gd82d