feat: Create mixin for column classes
This commit is contained in:
parent
1529c16059
commit
e2902fa9cb
1 changed files with 12 additions and 14 deletions
|
|
@ -25,6 +25,17 @@
|
||||||
// div
|
// div
|
||||||
|
|
||||||
|
|
||||||
|
@mixin columns($count: 5) {
|
||||||
|
@for $i from 1 through $count {
|
||||||
|
.column_#{$i} {
|
||||||
|
@extend p;
|
||||||
|
|
||||||
|
column-count: #{$i};
|
||||||
|
column-gap: if($i < 3, config.$space_small, config.$space_medium);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Paragraph
|
// Paragraph
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
@ -38,20 +49,7 @@ p {
|
||||||
column-rule: config.$border_basic;
|
column-rule: config.$border_basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column_2,
|
@include columns();
|
||||||
.column_3 {
|
|
||||||
@extend p;
|
|
||||||
}
|
|
||||||
|
|
||||||
.column_2 {
|
|
||||||
column-count: 2;
|
|
||||||
column-gap: config.$space_small;
|
|
||||||
}
|
|
||||||
|
|
||||||
.column_3 {
|
|
||||||
column-count: 3;
|
|
||||||
column-gap: config.$space_medium;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Address
|
// Address
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue