From ba6cfe24078546837174abacb8fb16d1cd3e71f0 Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Sun, 11 Aug 2024 19:57:13 +0200 Subject: [PATCH] Group block elements in global theme --- .../main/resources/render/theme/global.css | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/core/src/main/resources/render/theme/global.css b/core/src/main/resources/render/theme/global.css index 1b53984c..11d8c177 100644 --- a/core/src/main/resources/render/theme/global.css +++ b/core/src/main/resources/render/theme/global.css @@ -29,33 +29,24 @@ body { hr { width: 100%; - margin-top: var(--qd-block-margin); - margin-bottom: var(--qd-block-margin); } figure { text-align: center; - margin-top: var(--qd-block-margin); - margin-bottom: var(--qd-block-margin); } h1, h2, h3, h4, h5, h6 { font-family: var(--qd-heading-font); text-transform: none !important; - margin-top: var(--qd-block-margin); - margin-bottom: var(--qd-block-margin); -} - -table { - margin-top: var(--qd-block-margin); - margin-bottom: var(--qd-block-margin); } a { color: var(--qd-link-color); } -pre { +h1, h2, h3, h4, h5, h6, +table, pre, figure, blockquote, +ul, ol, hr, .stack:not(.stack .stack) { margin-top: var(--qd-block-margin); margin-bottom: var(--qd-block-margin); } @@ -96,11 +87,6 @@ code.focus-lines .hljs-ln-line:not(.focused) { display: flex; } -.stack:not(.stack .stack) { - margin-top: var(--qd-block-margin); - margin-bottom: var(--qd-block-margin); -} - .stack-horizontal { flex-direction: row; }