diff options
-rw-r--r-- | lib/render-msg.js | 3 | ||||
-rw-r--r-- | static/styles.css | 7 |
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; |