mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 08:19:31 +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.';
|
||||
}
|
||||
}
|
||||
|
||||
@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