panels.less
For various sections of a page. Add the .panel
class to apply a white background and a subtle shadow. Manually apply padding and margins appropriately.
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Velit saepe, aspernatur ipsa? Dolores sint harum dolorem quod tempore.
A variation of a panel, use for card-based item lists.
.hover-em
: darkened shadow emphasis when hovering over.
Use .label
on a <span>
element. Does not support other elements other than <span>
to minimize the Petal style being inherited in project-specific classes because it is a rather commonly used class name.
Append emphasis classes .accent
, .okay
, .warning
, .danger
for color variations.
.white
will make inverted color with a white background and black text; append the emphasis classes listed above with .white
and it will change the text colors instead.
Same thing as labels, just change it to .badge
. Applies to <span>
only.
// panels
@panel-bg-color-light: @background-color-light;
@panel-bg-color-dark: @gray-d4;
@panel-border-radius: 0;
@label-border-radius: 0;
@label-badge-bg-color: @gray;
@badge-border-radius: 10em;