From 992194bdb793ca7a98563aee23ea452a71330d13 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 2 May 2025 19:54:37 +0200 Subject: CSS for tables --- assets/css/input.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'assets/css/input.css') diff --git a/assets/css/input.css b/assets/css/input.css index 9f03d8d..102ccd1 100644 --- a/assets/css/input.css +++ b/assets/css/input.css @@ -165,6 +165,25 @@ } } + /* Tables */ + .table-caption:has(+ table) { + @apply text-center block; + } + + table:not(.u-legend) { + @apply w-full whitespace-nowrap py-2 border-b border-gray-500; + thead { + @apply bg-lime-100; + } + tbody tr { + @apply even:bg-gray-50; + } + th, + td { + @apply px-3 py-2; + } + } + /* https://lubna.dev/articles/create-css-only-image-gallery/ */ .gallery { --max-img-width: 72rem; -- cgit v1.2.3