From 96ea76bd5984e4f11c9807ec481e1ed15deccd69 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Fri, 28 Aug 2020 18:17:23 -0400 Subject: feat(panettone): Add styling for blockquotes 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 --- web/panettone/src/css.lisp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/panettone') 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" -- cgit 1.4.1