From d9fa3fd7971b5331b6582b46b568048458bb5544 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 26 Oct 2016 18:33:58 -0700 Subject: Rename .tag to .badge to avoid conflicting with WordPress --- docs/components/badge.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/components/badge.md (limited to 'docs/components/badge.md') diff --git a/docs/components/badge.md b/docs/components/badge.md new file mode 100644 index 000000000..71b550f3b --- /dev/null +++ b/docs/components/badge.md @@ -0,0 +1,50 @@ +--- +layout: docs +title: Badges +description: Documentation and examples for badges, our small count and labelling component. +group: components +--- + +Small and adaptive tag for adding context to just about any content. + +## Example + +Badges scale to match the size of the immediate parent element by using relative font sizing and `em` units. + +{% example html %} +

Example heading New

+

Example heading New

+

Example heading New

+

Example heading New

+
Example heading New
+
Example heading New
+{% endexample %} + +## Contextual variations + +Add any of the below mentioned modifier classes to change the appearance of a badge. + +{% example html %} +Default +Primary +Success +Info +Warning +Danger +{% endexample %} + +{% capture callout-include %}{% include callout-warning-color-assistive-technologies.md %}{% endcapture %} +{{ callout-include | markdownify }} + +## Pill badges + +Use the `.badge-pill` modifier class to make badges more rounded (with a larger `border-radius` and additional horizontal `padding`). Useful if you miss the badges from v3. + +{% example html %} +Default +Primary +Success +Info +Warning +Danger +{% endexample %} -- cgit v1.2.3