/// @type Boolean
$show-header-for-stacked: false !default;
-/// Adds the general styles for tables.
-/// @param {Keyword} $stripe [$table-stripe] - Uses keywords even, odd, or none to darken rows of the table. The default value is even.
-@mixin table($stripe: $table-stripe) {
- margin-bottom: $global-margin;
- border-radius: $global-radius;
-
+@mixin -zf-table-children-styles($stripe: $table-stripe) {
thead,
tbody,
tfoot {
}
}
+/// Adds the general styles for tables.
+/// @param {Keyword} $stripe [$table-stripe] - Uses keywords even, odd, or none to darken rows of the table. The default value is even.
+@mixin table(
+ $stripe: $table-stripe,
+ $nest: false
+) {
+ margin-bottom: $global-margin;
+ border-radius: $global-radius;
+
+ @if $nest {
+ @include -zf-table-children-styles($stripe);
+ }
+ @else {
+ @at-root {
+ @include -zf-table-children-styles($stripe);
+ }
+ }
+}
+
/// Adds the ability to horizontally scroll the table when the content overflows horizontally.
@mixin table-scroll {
display: block;
}
}
-@mixin foundation-table {
+@mixin foundation-table($nest: false) {
table {
- @include table;
+ @include table($nest: $nest);
}
table.stack {