summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-27 21:48:31 -0400
committerJune McEnroe <june@causal.agency>2020-04-27 21:48:31 -0400
commit24f17289311b5f3271f873ab05fec322dd03166a (patch)
treeee5a9a81424c41c2c072f476bd558fff49d5fa8a
parentClean up export.c (diff)
downloadbubger-24f17289311b5f3271f873ab05fec322dd03166a.tar.gz
bubger-24f17289311b5f3271f873ab05fec322dd03166a.zip
Style groups in recipients
Can't actually test this oops.
-rw-r--r--default.html7
-rw-r--r--html.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/default.html b/default.html
index fefc9c7..7059e61 100644
--- a/default.html
+++ b/default.html
@@ -70,6 +70,13 @@ ul.recipient li:not(:last-child)::after {
 	content: ', ';
 	margin-right: 1ch;
 }
+ul.recipient li.group > address::after {
+	content: ': ';
+}
+ul.recipient li.group::after {
+	content: '; ';
+	margin-right: 1ch;
+}
 address.from::before {
 	content: 'From: ';
 }
diff --git a/html.c b/html.c
index ff08357..bdbc59c 100644
--- a/html.c
+++ b/html.c
@@ -31,9 +31,9 @@ static int htmlAddress(FILE *file, const char *class, struct Address addr) {
 		);
 	} else if (addr.mailbox) {
 		template = TEMPLATE(
-			<li>
-				<address class="[class] group">[mailbox]</address>
-				<ul class="group">
+			<li class="group">
+				<address class="[class]">[mailbox]</address>
+				<ul>
 		);
 	} else {
 		template = TEMPLATE(