diff --git a/src/main/css/snippets/overrides.css b/src/main/css/snippets/overrides.css index 9982f41..7ab8578 100644 --- a/src/main/css/snippets/overrides.css +++ b/src/main/css/snippets/overrides.css @@ -25,19 +25,41 @@ h6 { /* pico.css: Reduce `article` margins */ article { - --block-spacing-vertical: 0; - margin-bottom: 3rem; + margin: calc(var(--block-spacing-vertical) / 2) 0; + + padding-top: calc(var(--block-spacing-vertical) / 2); + padding-bottom: calc(var(--block-spacing-vertical) / 2); +} + +article > header, +article > footer { + padding-top: calc(var(--block-spacing-vertical) / 2); + padding-bottom: calc(var(--block-spacing-vertical) / 2); } article > header { - padding: 2rem; + margin-top: calc(var(--block-spacing-vertical) / -2); + margin-bottom: calc(var(--block-spacing-vertical) / 2); } -article > header hgroup { +article > footer { + margin-bottom: calc(var(--block-spacing-vertical) / -2); + margin-top: calc(var(--block-spacing-vertical) / 2); +} + +article > header > hgroup, +article > header > h1, +article > header > h2, +article > header > h3, +article > header > h4, +article > header > h5, +article > header > h6, +article > footer > hgroup, +article > footer > h1, +article > footer > h2, +article > footer > h3, +article > footer > h4, +article > footer > h5, +article > footer > h6 { margin-bottom: 0; } - -article > .article-contents { - margin-top: 1rem; - margin-bottom: 3rem; -} diff --git a/src/test/index.html b/src/test/index.html index 1d48677..6abd9d0 100644 --- a/src/test/index.html +++ b/src/test/index.html @@ -53,35 +53,35 @@

These are some more contents.

These are the page contents.

-

Test

-

Here is some text you may want to read.

-

Test

-

Here is some text you may want to read.

+
+
+
+

Log in

+

Already have an account? Welcome back!

+
+
+
+
+ Congrats! + +
-

Test

-

Here is some text you may want to read.

+
+ + + -
Test
-

Here is some text you may want to read.

+ + + +
-
Test
-

Here is some text you may want to read.

- -

Test

-

Here is some text you may want to read.

- -

Test

-

Here is some text you may want to read.

- -

Test

-

Here is some text you may want to read.

- -

Test

-

Here is some text you may want to read.

- -

Test

-

Here is some text you may want to read.

+
+ +
+
+
@@ -92,10 +92,13 @@