From 1a621eb6b583a5c971e5f544ffbaaf66d343839d Mon Sep 17 00:00:00 2001 From: gravel Date: Tue, 24 Jan 2023 21:12:45 +0000 Subject: [PATCH] Fix mobile table layout --- output/styles2.css | 17 ++++++++--------- sites/+components/page-head.php | 1 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/output/styles2.css b/output/styles2.css index c724190..9a17fe7 100644 --- a/output/styles2.css +++ b/output/styles2.css @@ -1,3 +1,8 @@ +html { + /* Not these hacks again. */ + font-size: calc(1vmin + 1vw); +} + html.js .noscript { display: none; } @@ -21,10 +26,6 @@ header { #tbl_communities { width:100%; } -#th_identifier { width:9%; } -.td_identifier { font-family: monospace; } -#th_name { width:13%; } -#th_language { width:0% } #th_description { } .td_description { overflow: hidden; @@ -35,12 +36,9 @@ header { -webkit-line-clamp: 3; } -#th_users { width:0% } + .td_users { text-align: right; } -#th_preview { max-width:5%; } .td_preview { text-align: center; } -#th_qr { width:0%; } -#th_join_url { width:15%; } .td_join_url { font-family: monospace; white-space: nowrap; @@ -111,8 +109,8 @@ footer nav a { display: inline-block; font-family: monospace; border-radius: 3px; + padding: .25em .05em; width: 6ch; - line-height: 22px; text-align: center; } .protocol-http { background-color:lightgray } @@ -208,3 +206,4 @@ footer nav a { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} } + diff --git a/sites/+components/page-head.php b/sites/+components/page-head.php index d5bde1f..730c42f 100644 --- a/sites/+components/page-head.php +++ b/sites/+components/page-head.php @@ -1,2 +1,3 @@ + \ No newline at end of file