From 91fe61f82468ff7cb137006c39b3e1d1db5316c1 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 29 Mar 2024 22:28:29 -0700 Subject: [PATCH] Add basic table styling --- style.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/style.css b/style.css index ce13d69..f4b1f95 100644 --- a/style.css +++ b/style.css @@ -189,6 +189,25 @@ code:not(.hljs) { line-height: 1.5; } +table { + border-collapse: collapse; +} + +tr { + transition: background-color 500ms; +} + +tr:hover, +tr:focus-within { + background: hsl(30deg 80% 90%); + transition: background-color 150ms; +} + +th, +td { + padding: 8px; +} + .card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); -- 2.47.3