From 484a7f1fd8305ea395ae46681e17e06ac2d81565 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 28 Sep 2022 17:39:32 +0200 Subject: Added the score for local posts. --- doc/style.css | 20 ++++++++++++++++++++ html.c | 14 +++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 doc/style.css diff --git a/doc/style.css b/doc/style.css new file mode 100644 index 0000000..3e8ae0a --- /dev/null +++ b/doc/style.css @@ -0,0 +1,20 @@ +body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em } +img { max-width: 100% } +.snac-origin { font-size: 85% } +.snac-score { float: right; font-size: 85% } +.snac-top-user { text-align: center; padding-bottom: 2em } +.snac-top-user-name { font-size: 200% } +.snac-top-user-id { font-size: 150% } +.snac-avatar { float: left; height: 2.5em; padding: 0.25em } +.snac-author { font-size: 90% } +.snac-pubdate { color: #a0a0a0; font-size: 90% } +.snac-top-controls { padding-bottom: 1.5em } +.snac-post { border-top: 1px solid #a0a0a0; } +.snac-children { padding-left: 2em; border-left: 1px solid #a0a0a0; } +.snac-textarea { font-family: inherit; width: 95% } +.snac-history { border: 1px solid #606060; border-radius: 3px; margin: 2.5em 0; padding: 0 2em } +.snac-btn-mute { float: right; margin-left: 0.5em } +.snac-btn-follow { float: right; margin-left: 0.5em } +.snac-btn-unfollow { float: right; margin-left: 0.5em } +.snac-btn-delete { float: right; margin-left: 0.5em } +.snac-footer { margin-top: 2em; font-size: 75% } diff --git a/html.c b/html.c index d5af46a..a7ed0b4 100644 --- a/html.c +++ b/html.c @@ -243,7 +243,7 @@ d_char *html_user_header(snac *snac, d_char *s, int local) s = xs_str_cat(s, "\n\n"); /* top nav */ - s = xs_str_cat(s, "