aboutsummaryrefslogtreecommitdiff
path: root/theme/static
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-11 00:32:20 -0500
committerChristian Cleberg <[email protected]>2026-03-11 00:32:20 -0500
commit9920453a15c1d46ab5ad95b66fcee539fac87ac2 (patch)
tree145a7fa8375299cb3fdc278966fb2a77cd11d1a5 /theme/static
parent8a7366349bb5112033abcf6fe2bb93f72ee4a68d (diff)
downloadcleberg.net-9920453a15c1d46ab5ad95b66fcee539fac87ac2.tar.gz
cleberg.net-9920453a15c1d46ab5ad95b66fcee539fac87ac2.tar.bz2
cleberg.net-9920453a15c1d46ab5ad95b66fcee539fac87ac2.zip
prevent tables from overflowing
Diffstat (limited to 'theme/static')
-rw-r--r--theme/static/styles.css14
1 files changed, 13 insertions, 1 deletions
diff --git a/theme/static/styles.css b/theme/static/styles.css
index 190b454..5b56d7d 100644
--- a/theme/static/styles.css
+++ b/theme/static/styles.css
@@ -490,7 +490,19 @@ blockquote::after {
/* ============================================================
TABLES
============================================================ */
-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
+table {
+ display: block;
+ width: 100%;
+ max-width: 100%;
+ overflow-x: auto;
+ border-collapse: collapse;
+ margin: 2rem 0;
+}
+
+table td, table th {
+ white-space: nowrap;
+ padding: 0.5rem 1rem;
+}
th, td {
border-bottom: 1px solid var(--border-soft);
padding: 0.65rem 0.75rem;