From dd96dd0b5a903f43b48f0afcf416649138a48d41 Mon Sep 17 00:00:00 2001 From: Markus Siering Date: Sat, 25 Dec 2021 16:01:19 +0100 Subject: [PATCH] feat(labels): add optional font weight which can be set separately from the standard font weight to put emphasis on the form labels if needed. closes #79 --- scss/content/_form.scss | 4 ++++ scss/themes/default/_styles.scss | 3 +++ 2 files changed, 7 insertions(+) diff --git a/scss/content/_form.scss b/scss/content/_form.scss index 7ec39774..d0a12778 100644 --- a/scss/content/_form.scss +++ b/scss/content/_form.scss @@ -131,6 +131,10 @@ fieldset legend { margin-bottom: calc(var(--spacing) * 0.25); } +label { + font-weight: var(--form-label-font-weight, var(--font-weight)); +} + // Blocks, 100% input:not([type="checkbox"]):not([type="radio"]), select, diff --git a/scss/themes/default/_styles.scss b/scss/themes/default/_styles.scss index d53d7c8e..2e1c5a91 100644 --- a/scss/themes/default/_styles.scss +++ b/scss/themes/default/_styles.scss @@ -58,6 +58,9 @@ --form-element-spacing-vertical: 0.75rem; --form-element-spacing-horizontal: 1rem; + // Font weight for form labels + --form-label-font-weight: var(--font-weight); + // Transitions --transition: 0.2s ease-in-out; }