diff --git a/src/main/css/snippets/common.css b/src/main/css/snippets/common.css index 9e8dde9..c4c4f77 100644 --- a/src/main/css/snippets/common.css +++ b/src/main/css/snippets/common.css @@ -35,21 +35,6 @@ a[target="_blank"]::after { } } -/* Input with button next to it */ -.input-with-button { - display: flex; -} - -.input-with-button > *:first-child { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-with-button > *:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - /* Container with table of contents */ @media (min-width: 576px) { .container-with-toc { diff --git a/src/main/css/snippets/overrides.css b/src/main/css/snippets/overrides.css index c55c995..9982f41 100644 --- a/src/main/css/snippets/overrides.css +++ b/src/main/css/snippets/overrides.css @@ -1,11 +1,4 @@ -/* Make arrow next to dropdown visible */ -select { - -webkit-appearance: menulist; - -moz-appearance: menulist; - appearance: auto; -} - -/* Set spacing to half that of pico.css */ +/* pico.css: Halve header margins */ h1 { --typography-spacing-vertical: 1.5rem; } @@ -29,3 +22,22 @@ h5 { h6 { --typography-spacing-vertical: 0.75rem; } + +/* pico.css: Reduce `article` margins */ +article { + --block-spacing-vertical: 0; + margin-bottom: 3rem; +} + +article > header { + padding: 2rem; +} + +article > header hgroup { + margin-bottom: 0; +} + +article > .article-contents { + margin-top: 1rem; + margin-bottom: 3rem; +} diff --git a/src/main/js/template.js b/src/main/js/template.js index 43aadcb..96894cd 100644 --- a/src/main/js/template.js +++ b/src/main/js/template.js @@ -225,4 +225,4 @@ doAfterLoad(() => { // Export to namespace -window.fwdekker = {stringToHtml, $, $a, doAfterLoad, nav, footer}; +window.fwdekker = {stringToHtml, $, $a, doAfterLoad};