From 847d84f32e3dce445192ffb6576516ff6d7a199d Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Fri, 14 Aug 2020 13:50:51 +0100
Subject: [PATCH] Smaller font for tox address
---
daemon.py | 2 +-
epicyon-profile.css | 27 +++++++++++++++++++--------
webinterface.py | 2 +-
3 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/daemon.py b/daemon.py
index 12fabc6b9..ab6b3ef82 100644
--- a/daemon.py
+++ b/daemon.py
@@ -1258,7 +1258,7 @@ class PubServer(BaseHTTPRequestHandler):
"theme_color": "grey",
"orientation": "portrait-primary",
"categories": ["microblog", "fediverse", "activitypub"],
- "screenshots" : [
+ "screenshots": [
{
"src": "/mobile.jpg",
"sizes": "418x851",
diff --git a/epicyon-profile.css b/epicyon-profile.css
index 1b28d39a6..2848c2981 100644
--- a/epicyon-profile.css
+++ b/epicyon-profile.css
@@ -26,6 +26,8 @@
--font-size4: 22px;
--font-size5: 20px;
--font-size-pgp-key: 16px;
+ --font-size-pgp-key2: 11px;
+ --font-size-tox: 8px;
--text-entry-foreground: #ccc;
--text-entry-background: #111;
--time-color: #aaa;
@@ -116,11 +118,6 @@ a:link {
float: right;
}
-.ssbaddr {
- font-size: var(--font-size-pgp-key);
- font-family: Arial, Helvetica, sans-serif;
-}
-
.about {
font-size: var(--font-size5);
font-family: Arial, Helvetica, sans-serif;
@@ -850,8 +847,15 @@ aside .toggle-inside li {
}
@media screen and (min-width: 400px) {
+ .toxaddr {
+ font-size: var(--font-size-tox);
+ font-family: Arial, Helvetica, sans-serif;
+ }
+ .ssbaddr {
+ font-size: var(--font-size-pgp-key);
+ font-family: Arial, Helvetica, sans-serif;
+ }
.pgp {
- width: 79ch;
font-size: var(--font-size-pgp-key);
color: var(--main-link-color);
background: var(--link-bg-color);
@@ -1260,9 +1264,16 @@ aside .toggle-inside li {
}
@media screen and (max-width: 1000px) {
+ .toxaddr {
+ font-size: var(--font-size-tox);
+ font-family: Arial, Helvetica, sans-serif;
+ }
+ .ssbaddr {
+ font-size: var(--font-size-pgp-key2);
+ font-family: Arial, Helvetica, sans-serif;
+ }
.pgp {
- width: 40ch;
- font-size: var(--font-size-pgp-key);
+ font-size: var(--font-size-pgp-key2);
color: var(--main-link-color);
background: var(--link-bg-color);
font-family: 'monospace';
diff --git a/webinterface.py b/webinterface.py
index 206cca1bd..c1e7af23e 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -2681,7 +2681,7 @@ def htmlProfile(defaultTimeline: str,
ssbAddress + '
\n'
if toxAddress:
donateSection += \
- 'Tox: