feat: Add table styles

- Add variant to fit cells to their content
- Add variant with horizontal borders only
This commit is contained in:
sthag 2026-03-17 01:13:08 +01:00
parent b42c8cdd7e
commit 43f66d8178
2 changed files with 14 additions and 0 deletions

View file

@ -39,6 +39,10 @@ table {
border: config.$width_border_basic solid transparent; border: config.$width_border_basic solid transparent;
} }
&.horizontal td {
border-inline: config.$width_border_basic solid transparent;
}
&.striped { &.striped {
td { td {
border-top: 0; border-top: 0;
@ -110,6 +114,12 @@ table {
} }
} }
} }
&.content {
thead th:not(.max) {
width: 1%;
}
}
} }
// Caption // Caption

View file

@ -84,6 +84,10 @@ footer {
} }
table { table {
td > textarea {
display: block;
}
.io nav { .io nav {
@extend %flex_inline; @extend %flex_inline;
flex-wrap: nowrap; flex-wrap: nowrap;