mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 03:19:27 +00:00
Added mixins to show and hide columns in a table
This commit is contained in:
@@ -29,3 +29,19 @@
|
|||||||
+ 'Please make sure it is defined in `$breakpoints` map.';
|
+ 'Please make sure it is defined in `$breakpoints` map.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin hide-column($colNum) {
|
||||||
|
th, td {
|
||||||
|
&:nth-child(#{$colNum}) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin show-column($colNum) {
|
||||||
|
th, td {
|
||||||
|
&:nth-child(#{$colNum}) {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user