Files
CSS-NibblePoker/scss/core/table.scss
Herwin Bozet 44678bd9f4 Added monospace text and nowrap for tables
Update index.php, tables.php, and 7 more files...
2025-08-25 23:36:25 +02:00

50 lines
1.2 KiB
SCSS

// NibblePoker CSS Theme - CC0 1.0 (Public Domain)
/* Core > Tables */
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));
}