summaryrefslogtreecommitdiff
path: root/assets/css/screen.css
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-09-04 02:02:45 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-09-04 02:02:45 +0200
commit546e4813da6a02665d649cabbf80c2f9402b0f25 (patch)
treebff215a402b9b71c9cc20f53790d8da888c84913 /assets/css/screen.css
parentfa1677f9bf1410c74129eea429bd713553a051d4 (diff)
Support downloading of attachments.
* assets/css/screen.css (.attachment:before): Add rule. * assets/img/file.svg: New file. * mumi/web/controller.scm (controller): Handle attachment route. * mumi/web/download.scm: New file. * mumi/web/view/utils.scm (display-multipart-chunk): Move into... (display-message-body): ...this procedure; adjust to include attachment download links. * mumi/web/view/html.scm (issue-page): Adjust.
Diffstat (limited to 'assets/css/screen.css')
-rw-r--r--assets/css/screen.css9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/css/screen.css b/assets/css/screen.css
index 1517a56..79dd0a3 100644
--- a/assets/css/screen.css
+++ b/assets/css/screen.css
@@ -151,6 +151,15 @@ table {
.multipart.text-x-patch {
}
+.attachment:before {
+ background-image: url('/img/file.svg');
+ background-size: 1rem;
+ display: inline-block;
+ height: 1rem;
+ width: 1rem;
+ content: "";
+}
+
.message .from .address {
font-weight: bold;
}