xarxaprod-wp-theme/sass/abstracts/mixins/_mixins.scss

12 lines
282 B
SCSS
Raw Permalink Normal View History

2024-01-09 16:13:20 +01:00
// Center block
@mixin center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
// Column width with margin
@mixin column-width($numberColumns: 3) {
width: map-get($columns, $numberColumns) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns );
}