Skip to content

Commit 924ae40

Browse files
committed
Changed --sf-txt-small to --sf-fz-small
Added :where `validates`
1 parent 961d5d6 commit 924ae40

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

src/switch.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ label.sf-switch input[type='checkbox'] ~ *
7676
.sf-switch.multiple .sf-switch-toggle span {
7777
display: block;
7878

79-
font-size: var(--sf-txt-small);
79+
font-size: var(--sf-fz-small);
8080
text-align: center;
8181

8282
min-width: 2rem;
@@ -112,6 +112,6 @@ label.sf-switch input[type='checkbox'] ~ *
112112
.sf-switch.multiple.vert .sf-switch-toggle { flex-flow: column }
113113

114114
.sf-switch.multiple .sf-switch-description {
115-
font-size: var(--sf-txt-small);
115+
font-size: var(--sf-fz-small);
116116
margin: 0;
117117
}

src/validate.css

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
.sf-description,
2-
.sf-invalid,
3-
.sf-valid
4-
{
1+
:where(.sf-description, .sf-invalid, .sf-valid) {
52
display: none;
63
color: hsl(var(--sf-form-c-txt) / 40%);
74

8-
font-size: var(--sf-txt-small);
5+
font-size: var(--sf-fz-small);
96
font-family: inherit;
107
font-weight: 400;
118
line-height: 1;
@@ -15,12 +12,7 @@
1512
margin: 0 0 var(--sf-gap);
1613
}
1714

18-
.validates + .sf-description,
19-
.validates + .sf-invalid,
20-
.validates + .sf-valid
21-
{
22-
margin: 0 0 var(--sf-gap);
23-
}
15+
.validates + :where(.sf-description, .sf-invalid, .sf-valid) { margin: 0 0 var(--sf-gap) }
2416

2517
.sf-description { display: block }
2618

src/var.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
--sf-gap: 0.5em;
33

44
--sf-disabled: 0.4;
5-
--sf-txt-small: 0.75rem;
5+
6+
--sf-fz-small: 0.75rem;
67

78
--sf-form-radius: 0.5em;
89

0 commit comments

Comments
 (0)