A Card can contain many different types of data. Building out multiple classes to handle all the use cases is not maintainable. A better solution is to build a few utility classes for spacing, colors and layout.
Welcome to a card which only contains text. The spacing is rendered
using the class
.linq-card__space
. The space class is a utility to provide
common spacing for any details inside of the card body.
The example below is rendered using
.linq-key-value-list
. The key value list class has nothing to
do with the card and can be used anywhere. The list uses flexbox and will
display overflow items under each other to support multiple viewport sizes.
Card actions is a utility class which creates space and aligns buttons. A
div
element is required to align the button actions. A single
div
will align all items on the right. Two
div
elements will align the first items on the left and the second elements on
the right.
A card using the .linq-card__actions
class.
A card using the
.linq-card__actions
class and two div child elements.