krautworld-website_kraut.world/assets/sass/components/_box.scss
2022-05-09 13:22:27 +02:00

34 lines
583 B
SCSS

///
/// Prototype by Pixelarity
/// pixelarity.com | hello@pixelarity.com
/// License: pixelarity.com/license
///
/* Box */
.box {
border-radius: _size(border-radius);
border: solid 1px;
margin-bottom: _size(element-margin);
padding: 1.5em;
> :last-child,
> :last-child > :last-child,
> :last-child > :last-child > :last-child {
margin-bottom: 0;
}
&.alt {
border: 0;
border-radius: 0;
padding: 0;
}
}
@mixin color-box($p: null) {
.box {
border-color: _palette($p, border);
}
}
@include color-box;