Different color for verified sites

main
Bob Mottram 2022-11-09 12:34:48 +00:00
parent 2d7b3e06a2
commit 46553d8223
2 changed files with 19 additions and 5 deletions

View File

@ -35,6 +35,7 @@
--pageslist-color: #dddddd; --pageslist-color: #dddddd;
--pageslist-selected-color: white; --pageslist-selected-color: white;
--main-fg-color: #dddddd; --main-fg-color: #dddddd;
--verified-site-color: green;
--cw-color: #dddddd; --cw-color: #dddddd;
--cw-style: normal; --cw-style: normal;
--cw-weight: bold; --cw-weight: bold;
@ -1126,6 +1127,10 @@ h3 {
user-select: all; user-select: all;
} }
.verified_site {
color: var(--verified-site-color)
}
@media screen and (min-width: 400px) { @media screen and (min-width: 400px) {
body, html { body, html {
background-color: var(--main-bg-color); background-color: var(--main-bg-color);

View File

@ -726,13 +726,18 @@ def html_profile(signing_priv_key_pem: str,
'<button class="donateButton">' + translate['Donate'] + \ '<button class="donateButton">' + translate['Donate'] + \
'</button></a></p>\n' '</button></a></p>\n'
if website_url: if website_url:
donate_section += '<p>' + translate['Website'] + ': ' donate_section += \
'<p>' + translate['Website'] + ': '
if site_is_verified(session, base_dir, http_prefix, if site_is_verified(session, base_dir, http_prefix,
nickname, domain, nickname, domain,
website_url, False, debug): website_url, False, debug):
donate_section += verified_site_checkmark
donate_section += \ donate_section += \
'<a href="' + \ verified_site_checkmark + \
'<a class="verified_site" '
else:
donate_section += '<a '
donate_section += \
'href="' + \
website_url + '" rel="me" tabindex="1">' + \ website_url + '" rel="me" tabindex="1">' + \
website_url + '</a></p>\n' website_url + '</a></p>\n'
if gemini_link: if gemini_link:
@ -750,9 +755,13 @@ def html_profile(signing_priv_key_pem: str,
if site_is_verified(session, base_dir, http_prefix, if site_is_verified(session, base_dir, http_prefix,
nickname, domain, nickname, domain,
blog_address, False, debug): blog_address, False, debug):
donate_section += verified_site_checkmark
donate_section += \ donate_section += \
'<a href="' + \ verified_site_checkmark + \
'<a class="verified_site" '
else:
donate_section += '<a '
donate_section += \
'href="' + \
blog_address + '" rel="me" tabindex="1">' + \ blog_address + '" rel="me" tabindex="1">' + \
blog_address + '</a></p>\n' blog_address + '</a></p>\n'
if xmpp_address: if xmpp_address: