summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2024-02-24 06:39:59 +0000
committerGravatar grunfink2024-02-24 06:39:59 +0000
commit8126fb97ce1636e027a5858e72cf6d1d1d62670f (patch)
treeaf0c23df0a6c7285bd5057501a5683179d442558
parentMerge pull request 'utils.c: *default_srv_config: add configuration for min_a... (diff)
parentdefault css: also darken <input> and <textarea> (diff)
downloadsnac2-8126fb97ce1636e027a5858e72cf6d1d1d62670f.tar.gz
snac2-8126fb97ce1636e027a5858e72cf6d1d1d62670f.tar.xz
snac2-8126fb97ce1636e027a5858e72cf6d1d1d62670f.zip
Merge pull request 'html.c: html_user_body: snac-property: Put &nbsp; (empty space) instead of <br> & other' (#142) from Yonle/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/142
-rw-r--r--doc/style.css2
-rw-r--r--html.c2
-rw-r--r--utils.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/style.css b/doc/style.css
index b1f2163..a133db6 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -26,7 +26,7 @@ pre { overflow-x: scroll; }
26.snac-footer { margin-top: 2em; font-size: 75% } 26.snac-footer { margin-top: 2em; font-size: 75% }
27.snac-poll-result { margin-left: auto; margin-right: auto; } 27.snac-poll-result { margin-left: auto; margin-right: auto; }
28@media (prefers-color-scheme: dark) { 28@media (prefers-color-scheme: dark) {
29 body { background-color: #000; color: #fff; } 29 body, input, textarea { background-color: #000; color: #fff; }
30 a { color: #7799dd } 30 a { color: #7799dd }
31 a:visited { color: #aa99dd } 31 a:visited { color: #aa99dd }
32} 32}
diff --git a/html.c b/html.c
index e1df7e9..eff356e 100644
--- a/html.c
+++ b/html.c
@@ -820,7 +820,7 @@ static xs_html *html_user_body(snac *user, int read_only)
820 xs_html_attr("class", "snac-property-name"), 820 xs_html_attr("class", "snac-property-name"),
821 xs_html_text(k)), 821 xs_html_text(k)),
822 xs_html_text(":"), 822 xs_html_text(":"),
823 xs_html_sctag("br", NULL), 823 xs_html_raw("&nbsp;"),
824 xs_html_tag("span", 824 xs_html_tag("span",
825 xs_html_attr("class", "snac-property-value"), 825 xs_html_attr("class", "snac-property-value"),
826 value), 826 value),
diff --git a/utils.c b/utils.c
index 69d3e29..d8cebdc 100644
--- a/utils.c
+++ b/utils.c
@@ -66,7 +66,7 @@ static const char *default_css =
66 ".snac-footer { margin-top: 2em; font-size: 75% }\n" 66 ".snac-footer { margin-top: 2em; font-size: 75% }\n"
67 ".snac-poll-result { margin-left: auto; margin-right: auto; }\n" 67 ".snac-poll-result { margin-left: auto; margin-right: auto; }\n"
68 "@media (prefers-color-scheme: dark) { \n" 68 "@media (prefers-color-scheme: dark) { \n"
69 " body { background-color: #000; color: #fff; }\n" 69 " body, input, textarea { background-color: #000; color: #fff; }\n"
70 " a { color: #7799dd }\n" 70 " a { color: #7799dd }\n"
71 " a:visited { color: #aa99dd }\n" 71 " a:visited { color: #aa99dd }\n"
72 "}\n" 72 "}\n"