Cards
Horizontal Card with Simple Grid
Use
card-row
withcard-col-content
andcard-col-field
to create a number of custom horizontal cards.card-col-content
fills the remaining space when used in conjunction withcard-col-field
.card-col-field
will only be as wide as the content inside.
<div class="card card-horizontal">
<div class="card-row card-row-padded">
<div class="card-col-field">
<span aria-hidden="true" class="icon-folder-close-alt sticker sticker-default sticker-static sticker-lg"></span>
</div>
<div class="card-col-content card-col-gutters">
<span>This text will fill the remaining space.</span>
</div>
</div>
</div>
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
So ristretto cappuccino
Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.
Card Row Vertical Alignment Helpers
Vertically align content by setting the css property
vertical-align
on the card-col and align content horizontally by usingtext-align
or use the helper classescard-row-valign-bottom
andcard-row-valign-top
on thecard-row
to vertically align all columns inside the row.
Add gutters to a specific card card column by using the class
card-col-gutters
.
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
<div class="card card-horizontal">
<div class="card-row">
<div class="card-col-field">
<img alt="thumbnail" src="/images/thumbnail_coffee.jpg" style="width: 150px;">
</div>
<div class="card-col-content card-col-gutters">
...
</div>
</div>
</div>
Use
card-row-padded
oncard-row
to add some spacing around a horizontal card.
So ristretto cappuccino
Wings eu, pumpkin spice robusta.
Card Helper Classes
Use classes
card-rounded
,card-circle
, orcard-square
on the card to quickly shape the borders.
<div class="card card-horizontal card-rounded">...</div>
<div class="card card-circle card-horizontal">...</div>
<div class="card card-horizontal card-square">...</div>
We didn't addoverflow: hidden
to thecard
class because it prevents nested dropdowns, popups, and tooltips from fully displaying. You can work around this by addingborder-radius
to the image oroverflow: hidden
to the card.
Space Program
Because you live life on the edge of space.
Card Dividers
Use
<div class="divider"></div>
to create a horizontal division between content inside a card.
Title
card-col-field
Clickable Checkbox Card
To make the whole card clickable just wrap the checkbox and card in:
<div class="checkbox checkbox-card checkbox-top-left">
<label>
<input type="checkbox">
<div class="card">...</div>
</label>
</div>