Improved tables, Separated tables into core and site segments, rules and pages

Update index.php, sidebar.php, and 7 more files...
This commit is contained in:
2024-11-23 15:12:20 +01:00
parent 0a08a16f0b
commit 2d1b2eb8fd
8 changed files with 246 additions and 59 deletions

40
scss/core/table.scss Normal file
View File

@@ -0,0 +1,40 @@
// 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;
}
}
/* 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));
}