From 43f66d8178c7225931d6358d1f37797461a0a94d Mon Sep 17 00:00:00 2001 From: sthag Date: Tue, 17 Mar 2026 01:13:08 +0100 Subject: [PATCH] feat: Add table styles - Add variant to fit cells to their content - Add variant with horizontal borders only --- elements/_tables.scss | 10 ++++++++++ modules/io/_io_module.scss | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/elements/_tables.scss b/elements/_tables.scss index 9c6b379..316e7f9 100644 --- a/elements/_tables.scss +++ b/elements/_tables.scss @@ -39,6 +39,10 @@ table { border: config.$width_border_basic solid transparent; } + &.horizontal td { + border-inline: config.$width_border_basic solid transparent; + } + &.striped { td { border-top: 0; @@ -110,6 +114,12 @@ table { } } } + + &.content { + thead th:not(.max) { + width: 1%; + } + } } // Caption diff --git a/modules/io/_io_module.scss b/modules/io/_io_module.scss index 1804ea2..50ecbab 100644 --- a/modules/io/_io_module.scss +++ b/modules/io/_io_module.scss @@ -84,6 +84,10 @@ footer { } table { + td > textarea { + display: block; + } + .io nav { @extend %flex_inline; flex-wrap: nowrap;