diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-05-02 19:54:37 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-05-02 19:54:37 +0200 |
commit | 992194bdb793ca7a98563aee23ea452a71330d13 (patch) | |
tree | eb3fa610a30f1f6351a0d2e8f10b5de9f69aca0c /assets/css/input.css | |
parent | 9deaf6143846049e6b3d1c3d1d3ea830132a82c2 (diff) | |
download | hugo-minimalist-theme-992194bdb793ca7a98563aee23ea452a71330d13.tar.gz hugo-minimalist-theme-992194bdb793ca7a98563aee23ea452a71330d13.tar.bz2 hugo-minimalist-theme-992194bdb793ca7a98563aee23ea452a71330d13.zip |
CSS for tables
Diffstat (limited to 'assets/css/input.css')
-rw-r--r-- | assets/css/input.css | 19 |
1 files changed, 19 insertions, 0 deletions
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; |