aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-05 12:56:27 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-07 16:35:45 -1000
commitea522127885486018de1547de0db04f3d3144eb6 (patch)
tree366a096838a73d8f09f4c256b4dfdca90695eb21
parentd4dfcf4d602dcdaa977d616bcda2dd7a4b8a25c4 (diff)
downloadpatchfoo-ea522127885486018de1547de0db04f3d3144eb6.tar.gz
patchfoo-ea522127885486018de1547de0db04f3d3144eb6.zip
Emphasize content warning more
-rw-r--r--lib/render-msg.js3
-rw-r--r--static/styles.css7
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 9d3e0df..277b419 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -149,7 +149,8 @@ RenderMsg.prototype.wrap = function (content, cb) {
this.issues(done()),
this.c.contentWarning ? [
h('details', [
- h('summary', 'Content warning: ' + mdInline(this.c.contentWarning)),
+ h('summary', h('div.content-warning',
+ 'Content warning: ' + mdInline(this.c.contentWarning))),
content
])
] : content)
diff --git a/static/styles.css b/static/styles.css
index 9ed3a62..886cb1f 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -145,6 +145,13 @@ pre {
padding: 0 .5ex .5ex .5ex;
}
+.content-warning {
+ color: red;
+ border-bottom: 2px dotted red;
+ margin-bottom: 4px;
+ display: inline-block;
+}
+
.composer-actions {
text-align: right;
padding: .2ex .5ex;