====== Card ======
[[doku>plugin:mikioplugin|Mikio Plugin]]
https://github.com/nomadjimbob/mikioplugin/wiki/Card
Creates a card element
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
===== Horizontal =====
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
===== Attributes =====
**title**: Inserts a title element into the cards body\\ **subtitle**: Inserts a subtitle element into the cards body\\ **no-body**: Removes any padding in the card body\\ \\ **horizontal**: Displays the card horizontally\\ \\ **image**: Displays an image at the top of the card (contained within the object)\\ **image-cover**: True or false to use the image to cover the space instead of contain the entire image\\ **footer-image**: Displays an image at the bottom of the card\\ \\ **placeholder-text**: Displays a placeholder with the text at the top of the card\\ **footer-placeholder-text**: Displays a placeholder with the text at the bottom of the card\\ \\ **overlay**: Displays either the%% %%''image''%% %%or%% %%''placeholder-text''%% %%underneath the card%% %%\\ **header**: Displays a card header with text\\ **footer**: Displays a card footer with text\\ **footer-small**: Displays a card footer with small text
====== Individual Elements ======
Card elements also support seperate elements instead of using attribute values for advanced designs:
Fancy headerSpecial title treatment
With supporting text below as a natural lead-in to additional content.
Footer textFancy headerSpecial title treatment
With supporting text below as a natural lead-in to additional content.
Footer text
==== Listgroup Card ====
An example of a card using a listgroup in the body. As the cards body has its own padding, the%% %%''flush''%% %%attribute is used on the listgroup to remove its own margins.
Fancy headerSpecial title treatment
This is my list group
Item 1Item 2Item 3Footer textFancy headerSpecial title treatment
This is my list group
Item 1Item 2Item 3Footer text
==== Buttons ====
All elements inside a card receive a width of 100% as part of the CSS flexbox styling. This means that items such as buttons will be treated as block elements and you will be required to explicitly set their%% %%width%% %%and%% %%alignment.
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
==== Multiple Buttons ====
Even setting the width of an object as above, the element will still block the entire row and force siblings onto the next line as per the image below:
With supporting text below as a natural lead-in to additional content.
This can be overcome using%% %%columns and rows%% %%such as:
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.