mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 16:46:14 -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);
|
margin-bottom: calc(var(--spacing) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-weight: var(--form-label-font-weight, var(--font-weight));
|
||||||
|
}
|
||||||
|
|
||||||
// Blocks, 100%
|
// Blocks, 100%
|
||||||
input:not([type="checkbox"]):not([type="radio"]),
|
input:not([type="checkbox"]):not([type="radio"]),
|
||||||
select,
|
select,
|
||||||
|
|
|
@ -58,6 +58,9 @@
|
||||||
--form-element-spacing-vertical: 0.75rem;
|
--form-element-spacing-vertical: 0.75rem;
|
||||||
--form-element-spacing-horizontal: 1rem;
|
--form-element-spacing-horizontal: 1rem;
|
||||||
|
|
||||||
|
// Font weight for form labels
|
||||||
|
--form-label-font-weight: var(--font-weight);
|
||||||
|
|
||||||
// Transitions
|
// Transitions
|
||||||
--transition: 0.2s ease-in-out;
|
--transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue