about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-28T22·17-0400
committerglittershark <grfn@gws.fyi>2020-08-29T01·47+0000
commit96ea76bd5984e4f11c9807ec481e1ed15deccd69 (patch)
tree6849e5e37c743b5bebb6e284386314c63cea5272 /web
parent9e118c6d69cfe69f1d133bd6de76c949fda23c1a (diff)
feat(panettone): Add styling for blockquotes r/1734
Style blockquotes (which show up in rendered markdown) similarly to how
github does, by rendering a 5px-wide margin to the left with some
padding.

Fixes: #48
Change-Id: I79aa3b6cda5d928885c2cc36f504009232252c17
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1869
Tested-by: BuildkiteCI
Reviewed-by: eta <eta@theta.eu.org>
Diffstat (limited to 'web')
-rw-r--r--web/panettone/src/css.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/panettone/src/css.lisp b/web/panettone/src/css.lisp
index 40fa854eda16..1a1536c3f0f3 100644
--- a/web/panettone/src/css.lisp
+++ b/web/panettone/src/css.lisp
@@ -40,6 +40,12 @@
      :outline "none"
      :border "none")))
 
+(defparameter markdown-styles
+  `((blockquote
+     :border-left "5px" "solid" ,color/light-gray
+     :padding-left "1rem"
+     :margin-left "0rem")))
+
 (defparameter issue-list-styles
   `((.issue-list
      :list-style-type "none"
@@ -156,6 +162,7 @@
     ,@issue-list-styles
     ,@issue-styles
     ,@issue-history-styles
+    ,@markdown-styles
 
     (body
      :font-family "sans-serif"