Skip to content

Commit

Permalink
Move label styles from reset to form.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Apr 23, 2024
1 parent b1ecbbe commit 2a809d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 0 additions & 9 deletions assets/sass/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,22 +62,13 @@ select {
max-width: 100%;
}

label {
display: block;
font-weight: var(--fw-bold);
}

[type='search'] {
@include respond-to(s) {
// Correct the odd appearance in Safari on desktop.
-webkit-appearance: textfield;
}
}

// Text-level semantics
//
// The elements in this section give semantics to inline text.

// Code

code,
Expand Down
7 changes: 5 additions & 2 deletions assets/sass/base/forms/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ select {
@include margin-block(0 1);
}

// Mark field as required if needed.
label {
display: block;
font-weight: var(--fw-bold);

// Mark field as required if needed.
&:has(+ :required) {
&::after {
content: '*';
Expand All @@ -23,7 +26,7 @@ label {
}
}

// Set max text line width in main for readability.
// Set max text line width for readability.
input,
label,
textarea,
Expand Down

0 comments on commit 2a809d9

Please sign in to comment.