From 5221beb3a26658dfa22cf2d005d3eeb2b8020767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 4 Sep 2020 15:24:36 +0200 Subject: [PATCH] add blockquote style --- chloro/phyll/static/css/style.scss | 5 +++++ chloro/phyll/static/js/chloro.js | 1 + 2 files changed, 6 insertions(+) diff --git a/chloro/phyll/static/css/style.scss b/chloro/phyll/static/css/style.scss index 164c2df..f4d4f7a 100644 --- a/chloro/phyll/static/css/style.scss +++ b/chloro/phyll/static/css/style.scss @@ -141,6 +141,11 @@ main { margin: 0.5em 0; } } + blockquote { + background: #eeeefd; + padding: 0.1em 1em; + clip-path: polygon(0px 0px, 94.27% 2px, 99.63% 2.65%, 98.39% 97.48%, 10% 100%, 0% 100%, 0px 0px); + } } .post-list { diff --git a/chloro/phyll/static/js/chloro.js b/chloro/phyll/static/js/chloro.js index b70fa29..816d022 100644 --- a/chloro/phyll/static/js/chloro.js +++ b/chloro/phyll/static/js/chloro.js @@ -4,6 +4,7 @@ {name: 'code', tag: 'PRE', klass: 'screen'}, {name: 'figure', special: 'img', tag: 'DIV', subtag: true, klass: 'figure'}, {name: 'note', tag: 'DIV', subtag: true, klass: 'note'}, + {name: 'quote', tag: 'BLOCKQUOTE', subtag: true, klass: 'quote'}, ], input_event: function(event) { var sel = document.getSelection(); -- 2.39.2