Date: Tue, 24 Jan 2023 21:14:15 +0000
Subject: [PATCH 6/9] Style unused or empty cells
---
output/styles2.css | 15 +++++++++++----
sites/+components/tbl_communities.php | 6 ++----
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/output/styles2.css b/output/styles2.css
index 9a17fe7..e225595 100644
--- a/output/styles2.css
+++ b/output/styles2.css
@@ -26,14 +26,21 @@ header {
#tbl_communities { width:100%; }
+/* Hide the identifier column before removal. */
+#th_identifier { display: none; }
+.td_identifier { display: none; font-family: monospace; }
+
+.td_language:empty::after {
+ content: "\2753";
+}
+
#th_description { }
.td_description {
overflow: hidden;
text-overflow: ellipsis;
- display:
- -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 3;
}
diff --git a/sites/+components/tbl_communities.php b/sites/+components/tbl_communities.php
index 63d4fc5..772ed66 100644
--- a/sites/+components/tbl_communities.php
+++ b/sites/+components/tbl_communities.php
@@ -39,10 +39,8 @@
=$id?> |
=$room->language?> |
=$room->name?> |
-
- =$room->description?>
-
- |
+ =$room->description?> |
=$room->active_users?> |
From e76ff830c6bcfdbfe99bb7e33c6c3dc449824c48 Mon Sep 17 00:00:00 2001
From: gravel
Date: Thu, 26 Jan 2023 22:08:19 +0000
Subject: [PATCH 7/9] Fix whitespace
---
output/styles2.css | 69 +++++++++++++++++++++++-----------------------
1 file changed, 35 insertions(+), 34 deletions(-)
diff --git a/output/styles2.css b/output/styles2.css
index e225595..ebf6ad3 100644
--- a/output/styles2.css
+++ b/output/styles2.css
@@ -4,24 +4,24 @@ html {
}
html.js .noscript {
- display: none;
+ display: none;
}
/* Dead style */
html:not(.js) .js-only {
- display: none;
+ display: none;
}
header {
- display: flex;
- direction: row;
- /* Push items as far apart as possible */
- justify-content: space-between;
+ display: flex;
+ direction: row;
+ /* Push items as far apart as possible */
+ justify-content: space-between;
}
#headline {
- text-align: center;
- flex-grow: 1;
+ text-align: center;
+ flex-grow: 1;
}
#tbl_communities { width:100%; }
@@ -31,7 +31,7 @@ header {
.td_identifier { display: none; font-family: monospace; }
.td_language:empty::after {
- content: "\2753";
+ content: "\2753";
}
#th_description { }
@@ -49,55 +49,56 @@ header {
.td_join_url {
font-family: monospace;
white-space: nowrap;
+ font-size: .8em;
}
.join_url.nojs_mobile {
- display: none;
+ display: none;
}
/* Apply margin against copy button. */
html.js .join_url {
- margin-right: 1em;
+ margin-right: 1em;
}
-@media (max-width: 800px) {
- .join_url {
- display: none;
- }
+@media (max-width: 850px) {
+ .join_url {
+ display: none;
+ }
- /* Show backup link only when button is not available. */
- html:not(.js) .join_url.nojs_mobile {
- display: inline;
- }
+ /* Show backup link only when button is not available. */
+ html:not(.js) .join_url.nojs_mobile {
+ display: inline;
+ }
}
.join_url_container {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
}
.copy_button { font-size: inherit }
footer {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: 100%;
- text-align: center;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ width: 100%;
+ text-align: center;
}
footer p {
- width: 75%;
- margin: .5em;
- text-align: center;
+ width: 75%;
+ margin: .5em;
+ text-align: center;
}
footer nav a {
- display: inline-block;
- margin: .25em;
- white-space: nowrap;
+ display: inline-block;
+ margin: .25em;
+ white-space: nowrap;
}
/* */
From f3f377995dea7f13cc58cbf4e3ec9e0a6d094f24 Mon Sep 17 00:00:00 2001
From: gravel
Date: Thu, 26 Jan 2023 22:08:48 +0000
Subject: [PATCH 8/9] Use clamp() for fluid font size
---
output/styles2.css | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/output/styles2.css b/output/styles2.css
index ebf6ad3..4500fac 100644
--- a/output/styles2.css
+++ b/output/styles2.css
@@ -1,6 +1,5 @@
html {
- /* Not these hacks again. */
- font-size: calc(1vmin + 1vw);
+ font-size: clamp(10px, 2vw, 18px);
}
html.js .noscript {
From 333df2bcb7f5433116de655e024c9dd4febb7b5f Mon Sep 17 00:00:00 2001
From: gravel
Date: Thu, 26 Jan 2023 22:24:20 +0000
Subject: [PATCH 9/9] Unify Join URL interactivity
---
output/styles2.css | 21 ++++++++-------------
sites/+components/tbl_communities.php | 5 ++---
2 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/output/styles2.css b/output/styles2.css
index 4500fac..29a11cb 100644
--- a/output/styles2.css
+++ b/output/styles2.css
@@ -51,23 +51,18 @@ header {
font-size: .8em;
}
-.join_url.nojs_mobile {
- display: none;
-}
-
-/* Apply margin against copy button. */
-html.js .join_url {
+.join_url {
+ /* Apply margin against copy button or link. */
+ /* URL now guaranteed to have interactive element to right when present. */
margin-right: 1em;
}
-@media (max-width: 850px) {
- .join_url {
- display: none;
- }
- /* Show backup link only when button is not available. */
- html:not(.js) .join_url.nojs_mobile {
- display: inline;
+@media (max-width: 950px) {
+ /* Only current width breakpoint; */
+ /* Would follow w4 and precede w6. */
+ .show-from-w5 {
+ display: none;
}
}
diff --git a/sites/+components/tbl_communities.php b/sites/+components/tbl_communities.php
index 772ed66..9292b15 100644
--- a/sites/+components/tbl_communities.php
+++ b/sites/+components/tbl_communities.php
@@ -62,10 +62,9 @@
|
|