From 9ed49dde283db82302e4be624e8ce6286373bf0a Mon Sep 17 00:00:00 2001 From: navaneethsnair1 Date: Fri, 26 Jul 2024 14:07:28 +0530 Subject: [PATCH] asciidocs blockquotes to render correctly --- .../content/_assets/css/guide-common.scss | 15 +++++++++++ src/main/content/_assets/css/post.scss | 26 ++++++++++++++++++- src/main/content/antora_ui/src/css/doc.css | 1 - 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/main/content/_assets/css/guide-common.scss b/src/main/content/_assets/css/guide-common.scss index bd4c7cb287..cbe3b2ea9a 100644 --- a/src/main/content/_assets/css/guide-common.scss +++ b/src/main/content/_assets/css/guide-common.scss @@ -569,3 +569,18 @@ right: 10px; top: 5px; } + +.quoteblock { + background: #fafafa; + color: #5d5d5d; + padding: .25rem 2rem 1.25rem; + blockquote { + margin-top: 1rem; + } + .attribution { + color: #8e8e8e; + } + .paragraph { + font-style: italic; + } +} \ No newline at end of file diff --git a/src/main/content/_assets/css/post.scss b/src/main/content/_assets/css/post.scss index fe1103c3a1..85e4fce67d 100644 --- a/src/main/content/_assets/css/post.scss +++ b/src/main/content/_assets/css/post.scss @@ -540,4 +540,28 @@ iframe{ div.sectionbody div.ulist > ul > li p{ font-size: 16px; -} \ No newline at end of file +} + +.quoteblock{ + display: table; + margin: auto; + blockquote{ + &:before{ + content: "\201c"; + float: left; + font-family: Arial, Helvetica, sans-serif; + font-size: 2.5em; + font-weight: 700; + line-height: .6em; + margin-left: -.6em; + } + margin-left: 22px; + margin-right: 0; + text-align: justify; + } + .attribution{ + text-align: right; + font-style: italic; + margin-right: 0.5ex; + } +} \ No newline at end of file diff --git a/src/main/content/antora_ui/src/css/doc.css b/src/main/content/antora_ui/src/css/doc.css index 17ceaea685..e83eddac28 100644 --- a/src/main/content/antora_ui/src/css/doc.css +++ b/src/main/content/antora_ui/src/css/doc.css @@ -320,7 +320,6 @@ .doc .quoteblock { background: var(--quote-background); - border-left: 5px solid var(--quote-border-color); color: var(--quote-font-color); padding: 0.25rem 2rem 1.25rem; }