From ec0c4fde79b135bd1d889332a85d01561fd945f2 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 9 Apr 2023 13:28:29 +0800 Subject: [PATCH] Update Asciidoctor styling --- assets/scss/asciidoctor.scss | 12 ++++++++++-- assets/scss/extend.scss | 8 -------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/scss/asciidoctor.scss b/assets/scss/asciidoctor.scss index 644dff7..85ec9a7 100644 --- a/assets/scss/asciidoctor.scss +++ b/assets/scss/asciidoctor.scss @@ -44,7 +44,7 @@ sup.footnote { } [class$="block"], -:is(.admonitionblock, .dialogblock) { +:where(.admonitionblock, .dialogblock, .listingblock, .literalblock) { margin: 1rem 0 0; .title > code { @@ -60,7 +60,7 @@ p.tableblock { margin: unset; } -*:not(.listingblock, .openblock) { +*:not(.listingblock, .literalblock, .openblock) { > .attribution, > .title { background: var(--foreground); @@ -276,3 +276,11 @@ p { margin-left: auto; } } + +@media all and (max-width: 860px) { + .imageblock { + > .content { + width: 100% !important; + } + } +} diff --git a/assets/scss/extend.scss b/assets/scss/extend.scss index 0a16520..5f77b4c 100644 --- a/assets/scss/extend.scss +++ b/assets/scss/extend.scss @@ -162,11 +162,3 @@ code[data-lang] { color: unset; } } - -@media all and (max-width: 860px) { - .imageblock { - > .content { - width: 100% !important; - } - } -}