From 70cee7dbf62084b2ee105802db1697c7108bb480 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Mon, 28 Oct 2024 23:44:40 +0200 Subject: [PATCH] Tweak the shadow of code blocks --- src/public/stylesheets/style.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index 4d012f0c3..5b2b31c4b 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -810,8 +810,14 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href .ck-content pre { border: 0; border-radius: 6px; - box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2); + box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(0, 0, 0, 0.2); padding: 0 !important; + margin-top: 2px !important; +} + +html .note-detail-editable-text :not(figure, .include-note):first-child { + /* Create some space for the top-side shadow */ + margin-top: 1px !important; } .ck.ck-editor__editable pre[data-language]::after {