From f878d0bd703002a083f3024df062f58d4c07bd14 Mon Sep 17 00:00:00 2001 From: Giorgio Garofalo Date: Tue, 15 Oct 2024 22:42:46 +0200 Subject: [PATCH] Adjust box internal padding --- core/src/main/resources/render/theme/global.css | 7 +++++-- core/src/main/resources/render/theme/layout/beamer.css | 1 - core/src/main/resources/render/theme/layout/latex.css | 5 ----- core/src/main/resources/render/theme/layout/minimal.css | 1 - 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/core/src/main/resources/render/theme/global.css b/core/src/main/resources/render/theme/global.css index e30016fc..ed788382 100644 --- a/core/src/main/resources/render/theme/global.css +++ b/core/src/main/resources/render/theme/global.css @@ -60,6 +60,9 @@ --qd-important-foreground-color: rgb(145, 34, 34); --qd-important-background-color: color-mix(in srgb, var(--qd-important-foreground-color) 5%, transparent); + /* Boxes */ + --qd-box-section-padding: 12px 16px; /* Padding of box sections (header and content) */ + /* Reveal properties */ --r-background-color: var(--qd-background-color); --r-main-color: var(--qd-main-color); @@ -418,8 +421,8 @@ code.focus-lines .hljs-ln-line:not(.focused), margin: 0; } -.box > .box-content { - padding: 12px; +.box > header, .box > .box-content { + padding: var(--qd-box-section-padding); } .box > .box-content > *:first-child, diff --git a/core/src/main/resources/render/theme/layout/beamer.css b/core/src/main/resources/render/theme/layout/beamer.css index 746e6c64..1ea6ab0f 100644 --- a/core/src/main/resources/render/theme/layout/beamer.css +++ b/core/src/main/resources/render/theme/layout/beamer.css @@ -87,7 +87,6 @@ pre code { } .box > header { - padding: 12px; border-radius: 8px 8px 0 0; } diff --git a/core/src/main/resources/render/theme/layout/latex.css b/core/src/main/resources/render/theme/layout/latex.css index 2415264c..70d6280f 100644 --- a/core/src/main/resources/render/theme/layout/latex.css +++ b/core/src/main/resources/render/theme/layout/latex.css @@ -171,14 +171,9 @@ blockquote .attribution { } .box > header { - padding: 12px; border-radius: 6px 6px 0 0; } -.box > .box-content, .box > header { - padding-left: 16px; -} - .box.box { border-color: var(--qd-callout-box-header-color); } diff --git a/core/src/main/resources/render/theme/layout/minimal.css b/core/src/main/resources/render/theme/layout/minimal.css index f18ff4bb..8596219f 100644 --- a/core/src/main/resources/render/theme/layout/minimal.css +++ b/core/src/main/resources/render/theme/layout/minimal.css @@ -93,7 +93,6 @@ figure figcaption { .box > header { font-size: 0.6em; - padding: 12px; border-radius: 8px 8px 0 0; }