From 2f218cc53baf0cfaf36d546dbf4ae566df6ae0ef Mon Sep 17 00:00:00 2001 From: ninya9k Date: Sun, 18 Jul 2021 04:14:04 +0000 Subject: [PATCH] more distinct tripcodes & camera icon in text-based browsers --- website/templates/chat-iframe.html | 15 ++++++++------- website/templates/comment-iframe.html | 3 ++- website/templates/secret-club.html | 3 ++- website/templates/users-iframe.html | 11 ++++++----- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/website/templates/chat-iframe.html b/website/templates/chat-iframe.html index 00867c5..3e9a91f 100644 --- a/website/templates/chat-iframe.html +++ b/website/templates/chat-iframe.html @@ -38,6 +38,7 @@ } sup {margin-right: 0.125em;font-size: 90%;font-family:monospace;} .tripcode { + font-weight: normal; margin-left: 0.5em; padding: 0 5px; border-radius: 6px; @@ -49,7 +50,7 @@ } .barrier {display:inline-block;margin-right:0.5em;} .message {overflow-wrap:break-word;unicode-bidi:isolate;} - .camera {transform: scaleX(-1);text-shadow: 0px 0px 6px #{{ broadcaster_colour.hex() }};cursor: help;margin-right:0.25em;word-break: keep-all;} + .camera {font-style: normal;transform: scaleX(-1);text-shadow: 0px 0px 6px #{{ broadcaster_colour.hex() }};cursor: help;margin-right:0.25em;word-break: keep-all;} .time {font-size: 80%;color: gray;vertical-align:middle;cursor:default;} {% if include_user_list %} @@ -142,11 +143,11 @@ {% endif %} {{ message['time'] }} 🎥🎥{{ RE_WHITESPACE.sub(chr(160), message['viewer']['nickname'] or default_nickname(message['viewer']['token'])) }}{% with tag = message['viewer']['nickname'] == None and not message['viewer']['broadcaster'] %}{% if tag %}{{ message['viewer']['tag'] }}{% endif %} <{{ message['viewer']['tripcode']['string'] }}> <{{ message['viewer']['tripcode']['string'] }}>
{{ message['markup'] }} {% endif %} @@ -175,7 +176,7 @@
Broadcaster
- 🎥{{ person['nickname'] or default_nickname(person['token']) }}{% if person['tripcode']['string'] %} <{{ person['tripcode']['string'] }}>{% endif %} + 🎥{{ person['nickname'] or default_nickname(person['token']) }}{% if person['tripcode']['string'] %} <{{ person['tripcode']['string'] }}>{% endif %}

@@ -190,7 +191,7 @@
Users watching ({{ len(people['watching']) }})
{% for person in people['watching'] %}
- {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %} + {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %}
{% endfor %} @@ -199,7 +200,7 @@
Users not watching ({{ len(people['not_watching']) }})
{% for person in people['not_watching'] %}
- {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %} + {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %}
{% endfor %} @@ -215,7 +216,7 @@
{% for person in people['banned'] %}
- {{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %} + {{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}
{% endfor %}
diff --git a/website/templates/comment-iframe.html b/website/templates/comment-iframe.html index 397761c..3f12d1e 100644 --- a/website/templates/comment-iframe.html +++ b/website/templates/comment-iframe.html @@ -174,6 +174,7 @@ } #tripcode { + font-weight: normal; padding: 0 5px; border-radius: 6px; font-size: 90%; @@ -230,7 +231,7 @@ {% if viewer['tripcode']['string'] %} diff --git a/website/templates/secret-club.html b/website/templates/secret-club.html index 652d79c..d4d76cf 100644 --- a/website/templates/secret-club.html +++ b/website/templates/secret-club.html @@ -2,6 +2,7 @@ +
@@ -9,7 +10,7 @@
SECRET CLUB
{% if tripcode['string'] %} -
Your tripcode: {{ tripcode['string'] }}
+
Your tripcode: <{{ tripcode['string'] }}>
This tripcode is not allowed in.
{% else %}
Your tripcode: (none)
diff --git a/website/templates/users-iframe.html b/website/templates/users-iframe.html index 8125966..a58380a 100644 --- a/website/templates/users-iframe.html +++ b/website/templates/users-iframe.html @@ -6,7 +6,7 @@ .group {margin-bottom:1.5em;} .group-name {margin-bottom:0.25em;} .person {margin: 0 0 2px 0.5em;} - .camera {transform: scaleX(-1);text-shadow: 0px 0px 6px #{{ broadcaster_colour.hex() }};cursor: help;margin-right:0.25em;} + .camera {font-style: normal;transform: scaleX(-1);text-shadow: 0px 0px 6px #{{ broadcaster_colour.hex() }};cursor: help;margin-right:0.25em;} .name {color:var(--name-color);font-weight: bold;unicode-bidi: isolate;} .name:hover{ background: 4px var(--name-bg-color); @@ -18,6 +18,7 @@ } sup {margin-right: 0.125em;font-size: 90%;font-family:monospace;} .tripcode { + font-weight: normal; margin-left: 0.5em; padding: 0 5px; border-radius: 6px; @@ -75,7 +76,7 @@
Broadcaster
- 🎥{{ person['nickname'] or default_nickname(person['token']) }}{% if person['tripcode']['string'] %} <{{ person['tripcode']['string'] }}>{% endif %} + 🎥{{ person['nickname'] or default_nickname(person['token']) }}{% if person['tripcode']['string'] %} <{{ person['tripcode']['string'] }}>{% endif %}

@@ -90,7 +91,7 @@
Users watching ({{ len(people['watching']) }})
{% for person in people['watching'] %}
- {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %} + {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %}
{% endfor %}
@@ -99,7 +100,7 @@
Users not watching ({{ len(people['not_watching']) }})
{% for person in people['not_watching'] %}
- {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %} + {% if broadcaster %}{% endif %}{{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}{% if person['token'] == token %} (You){% endif %}
{% endfor %} @@ -115,7 +116,7 @@
{% for person in people['banned'] %}
- {{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %} + {{ person['nickname'] or default_nickname(person['token']) }}{% with tag = person['nickname'] == None %}{% if tag %}{{ person['tag'] }}{% endif %}{% if person['tripcode']['string'] %}{% if tag %}{% endif %} <{{ person['tripcode']['string'] }}>{% endif %}{% endwith %}
{% endfor %}