Style for block reasons

merge-requests/30/head
Bob Mottram 2022-11-23 15:31:29 +00:00
parent 6ea7ea623f
commit b7dae9c543
18 changed files with 26 additions and 2 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;
--block-reason-color: lightgreen;
--verified-site-color: lightgreen; --verified-site-color: lightgreen;
--cw-color: #dddddd; --cw-color: #dddddd;
--cw-style: normal; --cw-style: normal;
@ -296,6 +297,10 @@ mark {
color: var(--diff-remove); color: var(--diff-remove);
} }
.blockreason {
color: var(--block-reason-color);
}
.accesskeys { .accesskeys {
border: 0; border: 0;
width: 100%; width: 100%;

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "white", "code-color": "white",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"diff-add": "#111", "diff-add": "#111",

View File

@ -221,6 +221,7 @@
"pageslist-color": "#dddddd", "pageslist-color": "#dddddd",
"pageslist-selected-color": "white", "pageslist-selected-color": "white",
"main-fg-color": "#dddddd", "main-fg-color": "#dddddd",
"block-reason-color": "lightgreen",
"day-number": "#dddddd", "day-number": "#dddddd",
"day-number2": "#bbbbbb", "day-number2": "#bbbbbb",
"cw-color": "#dddddd", "cw-color": "#dddddd",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"diff-add": "#111", "diff-add": "#111",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "white", "verified-site-color": "white",
"code-color": "blue", "code-color": "blue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,5 +1,6 @@
{ {
"verified-site-color": "lightgreen", "block-reason-color": "green",
"verified-site-color": "green",
"diff-add": "#111", "diff-add": "#111",
"diff-remove": "#333", "diff-remove": "#333",
"code-color": "blue", "code-color": "blue",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"diff-add": "#111", "diff-add": "#111",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "lightblue", "code-color": "lightblue",
"pwa-theme-color": "apple-mobile-web-app-status-bar-style", "pwa-theme-color": "apple-mobile-web-app-status-bar-style",

View File

@ -1,4 +1,5 @@
{ {
"block-reason-color": "lightgreen",
"verified-site-color": "lightgreen", "verified-site-color": "lightgreen",
"code-color": "blue", "code-color": "blue",
"font-size-header": "18px", "font-size-header": "18px",

View File

@ -460,7 +460,10 @@ def html_moderation_info(translate: {}, base_dir: str,
_get_global_block_reason(line, _get_global_block_reason(line,
blocking_reasons_filename) blocking_reasons_filename)
if reason: if reason:
blocked_str += line + ' ' + reason + '\n' blocked_str += \
line + ' ' + \
'<span class="blockreason">' + \
reason + '</span>\n'
continue continue
blocked_str += line + '\n' blocked_str += line + '\n'
info_form += '<div class="container">\n' info_form += '<div class="container">\n'