From bc0c2f99fd41da73b5f47b94d4635ece378620e0 Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Thu, 19 Aug 2021 12:55:02 -0300 Subject: theme news, fix mod page --- static/css/themes/default.css | 33 +++++++++++++++++++++++++++++++++ static/css/themes/gruvbox.css | 32 +++++++++++++++++++++++++++++++- static/index.html | 20 +++++++++----------- static/manage.html | 6 +++--- static/nadmin.html | 8 ++++---- 5 files changed, 80 insertions(+), 19 deletions(-) (limited to 'static') diff --git a/static/css/themes/default.css b/static/css/themes/default.css index 07e960e..7f3d1a8 100644 --- a/static/css/themes/default.css +++ b/static/css/themes/default.css @@ -20,6 +20,10 @@ body.nsfw { color: #820404 } +h1, h2, h3, h4, h5, h6 { + color: #af0a0f; +} + .popup-box { border: 4px solid #d3caf0; background-color: #eff5ff; @@ -123,3 +127,32 @@ a.reply { z-index: 9; display: block; } + +/* TODO: rename */ +.box2 { + border: 4px solid #f0e2d9; + background-color: #f9f9e0; +} + +.newsbox { + padding: 25px; + border: 4px solid #f0e2d9; + background-color: #f9f9e0; +} + +.newsbox h2 { + margin: 0; + padding: 0; +} + +.newsbox-news { + text-align: left; + margin-left: 25px; + margin-top: 25px; + padding: 25px; +} + +.newsbox-news p, +.newsbox-news h3 { + margin: 0; +} diff --git a/static/css/themes/gruvbox.css b/static/css/themes/gruvbox.css index ff9c596..fb40267 100644 --- a/static/css/themes/gruvbox.css +++ b/static/css/themes/gruvbox.css @@ -15,7 +15,7 @@ body { background: #282828; color: #ebdbb2; - font-family: Iosevka, monospace, sans-serif; + font-family: monospace, sans-serif; font-size: 0.9em; } @@ -108,3 +108,33 @@ input[type="text"] { z-index: 9; display: block; } + +/* TODO: rename */ +.box2 { + border: 4px solid #928374; + background-color: #3c3836; +} + +.newsbox { + padding: 25px; + border: 4px solid #928374; + background-color: #3c3836; +} + +.newsbox h2 { + margin: 0; + padding: 0; +} + +.newsbox-news { + text-align: left; + background-color: #504945; + margin-left: 25px; + margin-top: 25px; + padding: 25px; +} + +.newsbox-news p, +.newsbox-news h3 { + margin: 0; +} diff --git a/static/index.html b/static/index.html index 4b175f6..96edb23 100644 --- a/static/index.html +++ b/static/index.html @@ -46,24 +46,22 @@ {{ end }} {{ if .NewsItems }} -
- -

{{ .PreferredUsername }} News

- +
+

{{ .PreferredUsername }} News

{{ range $i, $e := .NewsItems }} -
- - + {{ end }}
-
{{ if $.Board.ModCred }}[Delete] {{end}} - {{unixtoreadable $e.Time}} - {{$e.Title}} -

{{$e.Content}}

+
+

{{unixtoreadable $e.Time}} - {{$e.Title}}{{ if $.Board.ModCred }} [Delete] {{end}}

+
+ +

{{$e.Content}}

{{ end }} -
+

Current known instances

(always use a proxy) diff --git a/static/manage.html b/static/manage.html index 3bd621b..dc25468 100644 --- a/static/manage.html +++ b/static/manage.html @@ -20,7 +20,7 @@ {{ $board := .Board }} {{ $key := .Key }} {{ if .IsLocal }} -