Skip to content

Commit fa36498

Browse files
committed
release: version 2025.2.5
1 parent 1af49fc commit fa36498

10 files changed

+46
-32
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ If you feel awesome and want to support us in a small way, please consider starr
4141
<td><img src="https://img.shields.io/npm/v/style-forge.base" alt="npm"></td>
4242
<td>Basic styles and foundational components of the project.</td>
4343
</tr>
44+
<tr>
45+
<td>form</td>
46+
<td><a href="https://github.com/Style-Forge/form" target="_blank">GitHub</a></td>
47+
<td><a href="https://npmjs.com/package/style-forge.form" target="_blank">NPM</a></td>
48+
<td><img src="https://img.shields.io/npm/v/style-forge.form" alt="npm"></td>
49+
<td>Styles and components for creating forms.</td>
50+
</tr>
4451
<tr>
4552
<td>helpers</td>
4653
<td><a href="https://github.com/Style-Forge/helpers" target="_blank">GitHub</a></td>
@@ -49,19 +56,12 @@ If you feel awesome and want to support us in a small way, please consider starr
4956
<td>Utility functions and helpers for the project.</td>
5057
</tr>
5158
<tr>
52-
<td>└ media</td>
59+
<td>└&nbsp;media</td>
5360
<td><a href="https://github.com/Style-Forge/media" target="_blank">GitHub</a></td>
5461
<td><a href="https://npmjs.com/package/style-forge.media" target="_blank">NPM</a></td>
5562
<td><img src="https://img.shields.io/npm/v/style-forge.media" alt="npm"></td>
5663
<td>Comprehensive CSS media query helpers for responsive web design.</td>
5764
</tr>
58-
<tr>
59-
<td>form</td>
60-
<td><a href="https://github.com/Style-Forge/form" target="_blank">GitHub</a></td>
61-
<td><a href="https://npmjs.com/package/style-forge.form" target="_blank">NPM</a></td>
62-
<td><img src="https://img.shields.io/npm/v/style-forge.form" alt="npm"></td>
63-
<td>Styles and components for creating forms.</td>
64-
</tr>
6565
<tr>
6666
<td>themes</td>
6767
<td><a href="https://github.com/Style-Forge/themes" target="_blank">GitHub</a></td>

form.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "style-forge.form",
3-
"version": "2025.1.31",
3+
"version": "2025.2.5",
44
"description": "Style-Forge.Form: versatile library for easy form creation, validation, styling, and submission in web apps.",
55
"type": "module",
66
"main": "form.css",

src/button.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
text-decoration: none;
2020
text-transform: none;
2121

22-
border-radius: var(--sf-radius);
22+
border-radius: 3px;
2323

24-
height: 32px;
24+
min-height: var(--sf-input-hight);
2525

2626
padding: var(--sf-elm-py) var(--sf-elm-px);
2727

@@ -46,8 +46,8 @@ a.sf-button:not([href]),
4646
/* /// */
4747

4848
html.var .sf-button {
49-
border-radius: 3px;
5049
padding: 8px;
50+
min-height: 32px;
5151
}
5252

5353
html.var .sf-button:not([class*='sf-c-']) {

src/file.css

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
width: auto;
1212
max-width: 100%;
13+
min-height: var(--sf-input-hight);
1314

1415
overflow: hidden;
1516
white-space: nowrap;
@@ -33,9 +34,9 @@
3334
background: hsl(var(--sf-c-form-bg) / 20%);
3435
border: 1px solid hsl(var(--sf-c-form-bd) / 20%);
3536

36-
height: 32px;
37+
min-height: var(--sf-input-hight);
3738

38-
border-radius: var(--sf-radius);
39+
border-radius: 3px;
3940
}
4041
.sf-input[type='file']:focus-visible { outline: none }
4142
.sf-input[type='file']:focus-visible::file-selector-button {
@@ -55,13 +56,14 @@
5556

5657
html.var .sf-input[type='file'] {
5758
padding: 0; /* required */
59+
min-height: 32px;
5860
}
5961
html.var .sf-input[type='file']::file-selector-button {
6062
color: hsl(0, 0%, 10%);
6163
background: hsla(0, 0%, 100%, 0.2);
6264
border: 1px solid hsla(0, 0%, 10%, 0.2);
6365

64-
border-radius: 3px;
66+
min-height: 32px;
6567
}
6668
html.var .sf-input[type='file']:focus-visible::file-selector-button { outline: 1px solid hsl(200, 100%, 60%) }
6769

src/input.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
outline: none;
2727

2828
width: 100%;
29-
height: 32px;
29+
min-height: var(--sf-input-hight);
3030

31-
padding: var(--sf-elm-py) var(--sf-elm-px);
31+
padding: calc(var(--sf-elm-py) * 0.25) var(--sf-elm-px);
3232

3333
box-sizing: border-box;
3434
vertical-align: top;
@@ -81,7 +81,10 @@
8181

8282
/* /// */
8383

84-
html.var .sf-input { padding: 8px }
84+
html.var .sf-input {
85+
padding: 4px 8px;
86+
min-height: 32px;
87+
}
8588

8689
html.var .sf-input:not([class*='sf-c-']) {
8790
color: hsl(0, 0%, 10%);

src/select.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
.sf-select:not([multiple]) {
31-
height: 32px;
31+
min-height: var(--sf-input-hight);
3232
padding: 0 var(--sf-elm-px);
3333
border-width: 0 0 1px;
3434
}
@@ -50,7 +50,10 @@
5050

5151
/* /// */
5252

53-
html.var .sf-select:not([multiple]) { padding: 0 0 0 8px }
53+
html.var .sf-select:not([multiple]) {
54+
padding: 0 0 0 8px;
55+
min-height: 32px;
56+
}
5457
html.var .sf-select { padding: 8px 0 8px 8px }
5558

5659
html.var .sf-select:not([class*='sf-c-']) {

src/textarea.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
padding: var(--sf-elm-py) var(--sf-elm-px);
1919

20-
border-radius: var(--sf-radius);
20+
border-radius: 3px;
2121

2222
resize: vertical;
2323

@@ -52,8 +52,6 @@ html.var .sf-textarea {
5252
min-height: calc((1.499535em + 2px + 0.5em) * 4);
5353

5454
padding: 8px;
55-
56-
border-radius: 3px;
5755
}
5856

5957
html.var .sf-textarea:not([class*='sf-c-']) {

src/validate.css

+12-6
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
padding-bottom: 0.5em;
1313
}
1414

15-
.sf-description { display: block }
16-
.sf-invalid, .sf-valid { display: none }
15+
html .sf-description { display: block }
16+
html .sf-invalid, html .sf-valid { display: none }
1717

18-
.show.sf-description, .show.sf-invalid, .show.sf-valid { display: block }
19-
.hide.sf-description, .hide.sf-invalid, .hide.sf-valid { display: none }
18+
.show.sf-description, .show.sf-invalid, .show.sf-valid { display: block !important }
19+
.hide.sf-description, .hide.sf-invalid, .hide.sf-valid { display: none !important }
2020

2121
.sf-invalid { color: hsl(var(--sf-c-form-error)) }
2222
.sf-valid:not(.sf-description) { color: hsl(var(--sf-c-form-txt)) }
@@ -96,5 +96,11 @@ html.var .validates:invalid:required { border-bottom-color: hsl(39, 100%, 50%) }
9696
html.var .validates:invalid:focus { border-bottom-color: hsl(0, 100%, 60%) }
9797

9898
/* html.grid display: block (down) */
99-
html.grid .sf-description { display: block }
100-
html.grid .sf-invalid, html.grid .sf-valid { display: none }
99+
html.var.grid .sf-description { display: block }
100+
html.var.grid .sf-invalid, html.var.grid .sf-valid { display: none }
101+
102+
html.var.grid .validates:focus ~ .sf-description { display: none }
103+
html.var.grid .validates:focus ~ .validates ~ .sf-description { display: block }
104+
105+
html.var.grid .validates input[type='checkbox'] ~ .sf-invalid { display: block }
106+
html.var.grid .validates input[type='checkbox']:checked ~ .sf-invalid { display: none }

src/var.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
:root {
2-
--sf-radius: 3px;
2+
--sf-input-width: 32px;
3+
--sf-input-hight: 32px;
4+
35
--sf-disabled: 0.4;
46
--sf-elm-py: 0.5em;
57
--sf-elm-px: 0.5em;

0 commit comments

Comments
 (0)