AdminLTE/docs/components/ribbons.md
REJack 6b683b1d94
enhanced ribbons
- fixed style
- created demo page
- created docs
2019-08-26 09:44:05 +02:00

4.3 KiB

layout title
page Ribbons Component

The ribbons component is a easy way to display informations above any content. The .ribbon-warpper needs to be inside a element with position:relative;. In this docs page we place the ribbon always inside <div class="position-relative p-3 bg-gray" style="height: 180px"></div> for demo purpose but it can placed inside cards, table rows & many more.

The ribbon comes in three sizes to display more text or use larger font sizes, default (only .ribbon-wrapper), large (.ribbon-wrapper with .ribbon-lg), extra large (.ribbon-wrapper with .ribbon-xl).

Example Markup

{: .text-bold .text-dark .mt-5}

Ribbon
Ribbon Default
.ribbon-wrapper.ribbon-lg .ribbon
  <div class="ribbon-wrapper">
    <div class="ribbon bg-primary">
      Ribbon
    </div>
  </div>

{: .max-height-300}

Ribbon Size Variations

{: .text-bold .text-dark .mt-5}

Ribbon
Ribbon Default
.ribbon-wrapper.ribbon-lg .ribbon
Ribbon Large
Ribbon Large
.ribbon-wrapper.ribbon-lg .ribbon
Ribbon Extra Large
Ribbon Extra Large
.ribbon-wrapper.ribbon-xl .ribbon
```html
Ribbon
```
```html
Ribbon Large
```
```html
Ribbon Extra Large
```
Text Size Variations

{: .text-bold .text-dark .mt-5}

Ribbon
Ribbon Large
with Large Text
.ribbon-wrapper.ribbon-lg .ribbon.text-lg
Ribbon
Ribbon Extra Large
with Large Text
.ribbon-wrapper.ribbon-xl .ribbon.text-lg
Ribbon
Ribbon Extra Large
with Extra Large Text
.ribbon-wrapper.ribbon-xl .ribbon.text-xl
```html
Ribbon
```
```html
Ribbon
```
```html
Ribbon
```