semantic-forms 5.3.4 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/semantic-forms.css +18 -4
- package/docs/statics/pages/fullDemo.html +22 -1
- package/package.json +5 -5
- package/semanticForms.scss +19 -4
package/CHANGELOG.md
CHANGED
package/dist/semantic-forms.css
CHANGED
|
@@ -1245,21 +1245,23 @@ form.semanticForms:not(.semanticFormsActive) dd input[type=button]:not(.clear, .
|
|
|
1245
1245
|
padding: 10px 10px 20px 10px;
|
|
1246
1246
|
margin-bottom: 15px;
|
|
1247
1247
|
}
|
|
1248
|
-
.semanticForms fieldset fieldset {
|
|
1248
|
+
.semanticForms fieldset fieldset, .semanticForms fieldset details {
|
|
1249
1249
|
background-color: var(--semanticFormsNestedFieldsetBgColor);
|
|
1250
1250
|
border: var(--semanticFormsNestedFieldsetBorder);
|
|
1251
1251
|
margin: 0;
|
|
1252
1252
|
}
|
|
1253
1253
|
.semanticForms fieldset fieldset input:not([type=submit], [type=reset], [type=button], [type=image], [type=checkbox], [type=radio]),
|
|
1254
1254
|
.semanticForms fieldset fieldset select,
|
|
1255
|
-
.semanticForms fieldset fieldset textarea
|
|
1255
|
+
.semanticForms fieldset fieldset textarea, .semanticForms fieldset details input:not([type=submit], [type=reset], [type=button], [type=image], [type=checkbox], [type=radio]),
|
|
1256
|
+
.semanticForms fieldset details select,
|
|
1257
|
+
.semanticForms fieldset details textarea {
|
|
1256
1258
|
background-color: var(--semanticFormsNestedInputBgColor);
|
|
1257
1259
|
}
|
|
1258
1260
|
.semanticForms details {
|
|
1259
1261
|
box-sizing: border-box;
|
|
1260
1262
|
position: relative;
|
|
1261
|
-
background-color: var(--
|
|
1262
|
-
border: var(--
|
|
1263
|
+
background-color: var(--semanticFormsFormSubBgColor);
|
|
1264
|
+
border: 1px var(--semanticFormsSubBorderColor) solid;
|
|
1263
1265
|
border-radius: var(--semanticFormsBorderRadius);
|
|
1264
1266
|
display: flex;
|
|
1265
1267
|
flex-direction: column;
|
|
@@ -1329,6 +1331,18 @@ form.semanticForms:not(.semanticFormsActive) dd input[type=button]:not(.clear, .
|
|
|
1329
1331
|
margin-top: 15px;
|
|
1330
1332
|
margin-bottom: 15px;
|
|
1331
1333
|
}
|
|
1334
|
+
.semanticForms details details,
|
|
1335
|
+
.semanticForms details fieldset {
|
|
1336
|
+
margin-top: 10px;
|
|
1337
|
+
background-color: var(--semanticFormsNestedFieldsetBgColor);
|
|
1338
|
+
border: var(--semanticFormsNestedFieldsetBorder);
|
|
1339
|
+
}
|
|
1340
|
+
.semanticForms details details[open] summary::before {
|
|
1341
|
+
transform: rotate(90deg);
|
|
1342
|
+
}
|
|
1343
|
+
.semanticForms details details:not([open]) summary::before {
|
|
1344
|
+
transform: rotate(0deg);
|
|
1345
|
+
}
|
|
1332
1346
|
.semanticForms dl {
|
|
1333
1347
|
display: grid;
|
|
1334
1348
|
grid-template-columns: repeat(auto-fit, minmax(var(--semanticFormsInputMinWidth), 1fr));
|
|
@@ -943,7 +943,7 @@
|
|
|
943
943
|
</details>
|
|
944
944
|
|
|
945
945
|
<details>
|
|
946
|
-
<summary>Another detail element with a nested fieldset</summary>
|
|
946
|
+
<summary>Another detail element with a nested fieldset and details element</summary>
|
|
947
947
|
<dl>
|
|
948
948
|
<div>
|
|
949
949
|
<dt><label for="another-detail-input-1">Detail input</label></dt>
|
|
@@ -961,9 +961,30 @@
|
|
|
961
961
|
</div>
|
|
962
962
|
</dl>
|
|
963
963
|
</fieldset>
|
|
964
|
+
|
|
965
|
+
<details>
|
|
966
|
+
<summary>Some details</summary>
|
|
967
|
+
<dl>
|
|
968
|
+
<div>
|
|
969
|
+
<dt><label for="another-detail-input-3">Nested detail input</label></dt>
|
|
970
|
+
<dd><input type="text" name="another-detail-input-3" id="another-detail-input-3"></dd>
|
|
971
|
+
</div>
|
|
972
|
+
</dl>
|
|
973
|
+
</details>
|
|
964
974
|
</details>
|
|
965
975
|
</fieldset>
|
|
966
976
|
|
|
977
|
+
<details>
|
|
978
|
+
<summary>Standalone details</summary>
|
|
979
|
+
|
|
980
|
+
<dl>
|
|
981
|
+
<div>
|
|
982
|
+
<dt><label for="another-detail-input-4">Nested detail input 2</label></dt>
|
|
983
|
+
<dd><input type="text" name="another-detail-input-4" id="another-detail-input-4"></dd>
|
|
984
|
+
</div>
|
|
985
|
+
</dl>
|
|
986
|
+
</details>
|
|
987
|
+
|
|
967
988
|
<fieldset id="buttons">
|
|
968
989
|
<legend>Buttons</legend>
|
|
969
990
|
<dl>
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/rooseveltframework/semantic-forms/graphs/contributors"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
-
"version": "5.3.
|
|
11
|
+
"version": "5.3.5",
|
|
12
12
|
"files": [
|
|
13
13
|
"dist",
|
|
14
14
|
"semanticForms.scss",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"readmeFilename": "README.md",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
33
|
-
"@playwright/test": "1.
|
|
34
|
-
"eslint": "
|
|
35
|
-
"eslint-plugin-html": "8.1.
|
|
33
|
+
"@playwright/test": "1.58.2",
|
|
34
|
+
"eslint": "10.0.0",
|
|
35
|
+
"eslint-plugin-html": "8.1.4",
|
|
36
36
|
"express": "5.2.1",
|
|
37
37
|
"nodemon": "3.1.11",
|
|
38
38
|
"nyc": "17.1.0",
|
|
39
|
-
"sass": "1.
|
|
39
|
+
"sass": "1.97.3",
|
|
40
40
|
"http-server": "14.1.1",
|
|
41
41
|
"standard": "17.1.2",
|
|
42
42
|
"webpack-cli": "6.0.1"
|
package/semanticForms.scss
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
padding: 10px 10px 20px 10px;
|
|
16
16
|
margin-bottom: 15px;
|
|
17
17
|
|
|
18
|
-
// nested fieldsets are darkened
|
|
19
|
-
fieldset {
|
|
18
|
+
// nested fieldsets and details are darkened
|
|
19
|
+
fieldset, details {
|
|
20
20
|
background-color: var(--semanticFormsNestedFieldsetBgColor);
|
|
21
21
|
border: var(--semanticFormsNestedFieldsetBorder);
|
|
22
22
|
margin: 0;
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
details {
|
|
34
34
|
box-sizing: border-box; // ensure sizings match across browsers
|
|
35
35
|
position: relative;
|
|
36
|
-
background-color: var(--
|
|
37
|
-
border: var(--
|
|
36
|
+
background-color: var(--semanticFormsFormSubBgColor);
|
|
37
|
+
border: 1px var(--semanticFormsSubBorderColor) solid;
|
|
38
38
|
border-radius: var(--semanticFormsBorderRadius);
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
@@ -118,6 +118,21 @@
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
details details,
|
|
122
|
+
details fieldset {
|
|
123
|
+
margin-top: 10px;
|
|
124
|
+
background-color: var(--semanticFormsNestedFieldsetBgColor);
|
|
125
|
+
border: var(--semanticFormsNestedFieldsetBorder);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
details details[open] summary::before {
|
|
129
|
+
transform: rotate(90deg);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
details details:not([open]) summary::before {
|
|
133
|
+
transform: rotate(0deg);
|
|
134
|
+
}
|
|
135
|
+
|
|
121
136
|
dl {
|
|
122
137
|
display: grid;
|
|
123
138
|
grid-template-columns: repeat(auto-fit, minmax(var(--semanticFormsInputMinWidth), 1fr));
|