mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
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
This commit is contained in:
parent
e7ffe74a05
commit
dd96dd0b5a
2 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue