1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-02 06:19:29 +00:00

Added mixins to show and hide columns in a table

This commit is contained in:
2022-02-06 23:21:37 +00:00
parent e7278e6ad4
commit c7ca177cd8

View File

@@ -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;
}
}
}