all repos — honk @ 51747f54012e779a0354077d3dd883655adb896a

my fork of honk

a touch more chat style
Ted Unangst tedu@tedunangst.com
Thu, 14 May 2020 23:34:08 -0400
commit

51747f54012e779a0354077d3dd883655adb896a

parent

b9df16bbcfedd8eb3a7a03326dc8bdcd1fe803bb

2 files changed, 21 insertions(+), 2 deletions(-)

jump to
M views/chatter.htmlviews/chatter.html

@@ -19,10 +19,14 @@ {{ $target := "" }}

{{ range . }} {{ if eq $target "" }} {{ $target = .Target }} -<p>chatter: {{ .Target }} +<p class="chattarget"> +chatter: {{ .Target }} {{ end }} +<div class="chat"> <p> -{{ .Handle }}: {{ .HTML }} +<span class="chatstamp">{{ .Date.Format "15:04" }} {{ .Handle }}:</span> +{{ .HTML }} +</div> {{ end }} <form action="/sendchonk" method="POST"> <input type="hidden" name="CSRF" value="{{ $chonkcsrf }}">
M views/style.cssviews/style.css

@@ -188,6 +188,21 @@ padding-top: 0;

overflow: hidden; } +.chat { + border-bottom: 0.5px solid var(--fg-subtle); + padding-left: 1em; +} +.chat p { + margin-top: 0.2em; + margin-bottom: 0.2em; +} +.chattarget { + border-bottom: 1px solid var(--fg-subtle); +} +.chatstamp { + margin-left: -1em; +} + .honk #honkform { padding: 1em; border: 1px solid var(--fg);