From b6d45e2d06b3915fbf4b92627cfc0e4b9ee7f71f Mon Sep 17 00:00:00 2001 From: intergrav Date: Mon, 09 Jun 2025 23:31:09 +0000 Subject: [PATCH] feat: 1.5 line height i think i'll stick with 1.5 as the default, but you can change it with the --sc-line-height variable. max-width variable has also been changed to --sc-max-width for consistency (this hopefully shouldn't be breaking anything as i doubt anyone is using this stylesheet right now) --- slight.css | 9 +++++---- 1 file(s) changed, 5 insertion(s)(+), 4 deletion(s)(-) diff --git a/slight.css b/slight.css --- a/slight.css +++ b/slight.css @@ -20,7 +20,8 @@ --sc-font: system-ui, sans-serif; --sc-font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace; - --sc-body-max-width: 48rem; /* set to revert to remove limit */ + --sc-line-height: 1.5; /* set to 'revert' to use default */ + --sc-body-max-width: 48rem; /* set to 'revert' to remove limit */ /* unsafe variables - not recommended to customize, may be removed or changed in the future */ --sc-emphasizebd: light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)); @@ -31,7 +32,7 @@ /* 2. typography */ html { font-family: var(--sc-font); - line-height: 1.3; + line-height: var(--sc-line-height); tab-size: 4; } @@ -86,7 +87,7 @@ padding: 0.5rem; } blockquote { - border-left: 4px solid var(--sc-emphasizebd); + border-left: 0.25rem solid var(--sc-emphasizebd); background-color: var(--sc-emphasizebg); padding-left: 1rem; margin-left: 0; @@ -108,7 +109,7 @@ header nav ul li:not(:first-child)::before, footer nav ul li:not(:first-child)::before { content: "•"; - margin: 0 0.25em; + margin: 0 0.25rem; } /* 4. remove max-width when printing */ -- tangled.sh