Skip to content

Commit

Permalink
Adjust box margins and title font
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 11, 2024
1 parent 399c097 commit a9327aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions core/src/main/resources/render/theme/global.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
:root {
/* Quarkdown properties */
/* Quarkdown exposed properties */
--qd-background-color: inherit;
--qd-main-color: inherit;
--qd-link-color: inherit;
--qd-main-font: inherit;
--qd-main-font-size: 1em;
--qd-heading-font: inherit;
--qd-block-margin: 32px;
--qd-box-margin-multiplier: 1.5; /* --qd-block-margin * this = box vertical margin */
--qd-box-heading-font: var(--qd-main-font);

/* Reveal properties are inherited */
/* Reveal properties */
--r-background-color: var(--qd-background-color);
--r-main-color: var(--qd-main-color);
--r-link-color: var(--qd-link-color);
Expand Down Expand Up @@ -118,14 +120,18 @@ code.focus-lines .hljs-ln-line:not(.focused) {

.box {
width: 100%;
margin-top: var(--qd-block-margin);
margin-bottom: var(--qd-block-margin);
margin-top: calc(var(--qd-box-margin-multiplier) * var(--qd-block-margin));
margin-bottom: calc(var(--qd-box-margin-multiplier) * var(--qd-block-margin));
}

.box > header p {
margin: 0;
}

.box > header h4 {
font-family: var(--qd-box-heading-font);
}

.box > .box-content {
padding: 12px;
}
Expand Down
1 change: 1 addition & 0 deletions core/src/main/resources/render/theme/layout/beamer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--qd-main-font: "Source Sans Pro", sans-serif;
--qd-heading-font: "Fira Sans", sans-serif;
--qd-block-margin: 32px;
--qd-box-margin-multiplier: 1.2;
}

.reveal .slides > section {
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/resources/render/theme/layout/minimal.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ table tr th:last-child {
}

.box {
border-radius: 8px;
border-radius: 10px;
}

.box > header {
font-size: 0.7em;
font-size: 0.6em;
padding: 12px;
border-radius: 8px 8px 0 0;
}
Expand Down

0 comments on commit a9327aa

Please sign in to comment.