Files
CSS-NibblePoker/scss/tables/tables-modifiers.scss
T
aziascreations 91098bc437 Split and re-ordered SCSS files for easier overrides of defaults (#4)
* Split SCSS for easier changes
* Re-ordered SCSS files for easier overrides of defaults
* Fixed padding classes with auto value
* Added theme """stub"""
2026-05-11 13:32:00 +02:00

51 lines
1.2 KiB
SCSS

// NibblePoker CSS Theme - CC0 1.0 (Public Domain)
/* Tables > Modifiers */
tr, td {
vertical-align: top;
}
.table-v-center {
tr, td {
vertical-align: middle;
}
}
.table-v-bottom {
tr, td {
vertical-align: bottom;
}
}
.table-no-wrap,
.table-no-wrap > td, .table-no-wrap > th,
.table-no-wrap > tr > td, .table-no-wrap > tr > th,
.table-no-wrap > thead > tr > td, .table-no-wrap > thead > tr > th,
.table-no-wrap > tbody > tr > td, .table-no-wrap > tbody > tr > th {
white-space: nowrap;
text-wrap: nowrap;
}
/* Core > Tables > Cell Padding */
@mixin table-padding-maker($size-key, $size-value) {
.table-p-#{$size-key} {
td, th {
padding: #{$size-value};
}
}
// TODO: Add header and cell padding rules
}
@if($generate-table-padding-rules) {
@include table-padding-maker("xxs", calc(#{$margin-base-size} * 0.25));
@include table-padding-maker("xs", calc(#{$margin-base-size} * 0.5));
@include table-padding-maker("s", calc(#{$margin-base-size} * 0.75));
@include table-padding-maker("m", #{$margin-base-size});
@include table-padding-maker("l", calc(#{$margin-base-size} * 1.5));
@include table-padding-maker("xl", calc(#{$margin-base-size} * 2.0));
}