Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Screenshot

Description

The Badge looks much like a lozenge. You can define different styles and sizes and also combine it with a Heading or a Bootstrap button.

Adding the Macro

Edit your page.

Select "+" => Other macros

Type in "BadgeBootstrap" in the Search box

Select the "Bootstrap Badge" macro

Macro Options

Text

Enter the text of the badge.

Style

The style defines the color of the badge. The listbox contains the terms that Bootstrap uses to identify the color style.

TermBackground Color
danger


Div
stylebackground-color:#dc3545;width:100px;height:30px;border:1px solid #000;



dark


Div
stylebackground-color:#343a40;width:100px;height:30px;border:1px solid #000;


info


Div
stylebackground-color:#17a2b8;width:100px;height:30px;border:1px solid #000;


light


Div
stylebackground-color:#f8f9fa;width:100px;height:30px;border:1px solid #000;


primary


Div
stylebackground-color:#007bff;width:100px;height:30px;border:1px solid #000;


secondary


Div
stylebackground-color:#868e96;width:100px;height:30px;border:1px solid #000;


success


Div
stylebackground-color:#28a745;width:100px;height:30px;border:1px solid #000;



warning


Div
stylebackground-color:#ffc107;width:100px;height:30px;border:1px solid #000;


Type

Select "Badge" or "Pill". The pill will have more rounded corners.

Size

Enter the size of the badge in percent. The default size is 75%.

Display as

Select whether to make the Badge part of a Heading or a Bootstrap Button.

Info

If you select a Heading and also use a plugin or macro that reads out the headings of your page, this heading will be included!

Prefix

If part of a Heading or Button, enter the prefix text here.

Button style

If part of a Button, select the button style here.

If part of a Button, you can link the button to a URL. Enter it here and include http:// or https://.

Target

Select where to load the linked page, in the same window or in a new tab.

Custom Text Color

You can overwriite the Bootstrap text color here that is defined by the style you selected. You can enter any hexadecimal color vlaue here, preceded by a hash, e.g. #990000.

Custom Background Color

You can overwriite the Bootstrap background color here that is defined by the style you selected. You can enter any hexadecimal color vlaue here, preceded by a hash, e.g. #990000.


Style
div#main-content.wiki-content {
   font-size: 1.2em !important;
   font-family: Segoe UI, sans-serif !important;
}
.wiki-content .contentLayout2 .columnLayout .cell
{
  padding-left: 0px;
  padding-right: 0px;
}