From 04c3e6cada11b75e6d1abef969018263be2b9925 Mon Sep 17 00:00:00 2001
From: gravel
Date: Sun, 21 May 2023 15:46:29 +0000
Subject: [PATCH] Increase tap target size & min font size
---
output/index.css | 16 +++++---
sites/index.php | 100 +++++++++++++++++++++++------------------------
2 files changed, 61 insertions(+), 55 deletions(-)
diff --git a/output/index.css b/output/index.css
index df7b61a4..41ec5728 100644
--- a/output/index.css
+++ b/output/index.css
@@ -1,12 +1,13 @@
:root {
--body-margin: 8px; /* Default value in browsers */
--max-font-size-unitless: 18;
+ --min-font-size-unitless: 12;
/* Measurements of the width of all columns
except name and description on smaller screens */
- --collapsed-static-column-width-px: 400px;
+ --collapsed-static-column-width-px: 300px;
--collapsed-static-column-width: calc(
- ( 400 / var(--max-font-size-unitless) ) * 1rem
+ ( 300 / var(--max-font-size-unitless) ) * 1rem
);
/* Measurements of the width of all columns
@@ -44,7 +45,7 @@
}
html {
- font-size: clamp(10px, 2vw, var(--max-font-size-unitless) * 1px);
+ font-size: clamp(12px, 2vw, var(--max-font-size-unitless) * 1px);
}
body {
@@ -244,6 +245,11 @@ header {
text-overflow: ellipsis;
}
+.td_name-inner {
+ /* Block padding for inline element does not change flow, only clickbox */
+ padding-block: calc( var(--cell-padding-v) );
+}
+
.td_language {
text-align: center;
font-size: 1.5em;
@@ -403,7 +409,7 @@ footer p {
footer nav a {
display: inline-block;
- margin: .25em;
+ padding: .5em;
white-space: nowrap;
}
@@ -651,6 +657,6 @@ footer nav a {
@media (max-width: 500px) {
:root {
/* ! For when descriptions don't wrap and 100vw doesn't work. */
- --dynamic-columns-width: 15rem;
+ --dynamic-columns-width: 10rem;
}
}
diff --git a/sites/index.php b/sites/index.php
index 78dc2fbd..3703c7f3 100644
--- a/sites/index.php
+++ b/sites/index.php
@@ -91,27 +91,27 @@
.
- This site is not affiliated with
- Oxen Privacy Tech Foundation.
-
- Communities shown are fetched automatically from
- various sources.
-
-
- We make an attempt to hide communities containing
- objectionable or illegal content, but
- you should still proceed with caution.
-
-
- Proceed with caution when joining unofficial communities.
- As JavaScript is disabled, no communities are filtered from the list.
-
+ This site is not affiliated with
+ Oxen Privacy Tech Foundation.
+
+ Communities shown are fetched automatically from
+ various sources.
+
+
+ We make an attempt to hide communities containing
+ objectionable or illegal content, but
+ you should still proceed with caution.
+
+
+ Proceed with caution when joining unofficial communities.
+ As JavaScript is disabled, no communities are filtered from the list.
+