From 85245c1382fa65c7309106ac3359e4835e107f0a Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 00:02:29 +0200 Subject: feat(design): create margin base to have a consistant block separation and rename index into log --- design/style.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'design/style.css') diff --git a/design/style.css b/design/style.css index 0e97ab4..cc22c2a 100644 --- a/design/style.css +++ b/design/style.css @@ -10,6 +10,8 @@ --content-width: 700px; --deco-width: 900px; + --base-margin: 1.5rem; + font-size: 20px; } @@ -44,17 +46,17 @@ h1 { h2 { font-size: 1.66rem; - margin-top: 2.5rem; + margin-top: calc(var(--base-margin) + 1rem); } h3 { font-size: 1.33rem; - margin-top: 2rem; + margin-top: calc(var(--base-margin) + 0.5rem); } p { - margin-bottom: 1.5rem; + margin-bottom: var(--base-margin); } a { @@ -80,7 +82,7 @@ b { ul, ol { margin-top: -0.5rem; - margin-bottom: 1rem; + margin-bottom: var(--base-margin - 0.5rem); margin-left: 1rem; list-style-position: outside; @@ -156,10 +158,8 @@ code { pre { border: var(--color-light) 2px solid; - margin-bottom: 1.5rem; + margin: 0 -1rem var(--base-margin) -1rem; padding: 0.5rem 1rem; - margin-left: -1rem; - margin-right: -1rem; & code { padding: 0; -- cgit v1.2.3