a touch more chat style

This commit is contained in:
Ted Unangst 2020-05-14 23:34:08 -04:00
parent b7ec6b50d8
commit 040dc26a4d
2 changed files with 21 additions and 2 deletions

View File

@ -19,10 +19,14 @@
{{ 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 }}">

View File

@ -188,6 +188,21 @@ input[type=file] {
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);