semantic-forms 4.0.1 → 4.0.2
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/package.json +3 -3
- package/semanticForms.css +8 -1
- package/semanticForms.js +1 -0
- package/semanticForms.scss +10 -2
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": "4.0.
|
|
11
|
+
"version": "4.0.2",
|
|
12
12
|
"files": [
|
|
13
13
|
"semanticForms.css",
|
|
14
14
|
"semanticForms.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"eslint": "9.10.0",
|
|
23
23
|
"eslint-plugin-html": "8.1.1",
|
|
24
|
-
"nodemon": "3.1.
|
|
25
|
-
"sass": "1.
|
|
24
|
+
"nodemon": "3.1.6",
|
|
25
|
+
"sass": "1.79.1",
|
|
26
26
|
"serve": "14.2.3",
|
|
27
27
|
"standard": "17.1.2"
|
|
28
28
|
},
|
package/semanticForms.css
CHANGED
|
@@ -93,13 +93,20 @@ form.semanticForms dl dd {
|
|
|
93
93
|
position: relative;
|
|
94
94
|
}
|
|
95
95
|
form.semanticForms dl dd:not(.checkboxes, .radios) {
|
|
96
|
-
display: flex;
|
|
97
96
|
gap: 10px;
|
|
98
97
|
max-width: 100%;
|
|
99
98
|
}
|
|
100
99
|
form.semanticForms dl dd:not(.checkboxes, .radios):not(.singleCheckbox) {
|
|
100
|
+
display: flex;
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
}
|
|
103
|
+
form.semanticForms dl dd:not(.checkboxes, .radios).singleCheckbox {
|
|
104
|
+
display: grid;
|
|
105
|
+
grid-template-columns: min-content 1fr;
|
|
106
|
+
}
|
|
107
|
+
form.semanticForms dl dd:not(.checkboxes, .radios).singleCheckbox > :not(input[type=checkbox], label) {
|
|
108
|
+
grid-column: 1/-1;
|
|
109
|
+
}
|
|
103
110
|
form.semanticForms dl dd.checkboxes ul, form.semanticForms dl dd.radios ul {
|
|
104
111
|
display: flex;
|
|
105
112
|
flex-direction: column;
|
package/semanticForms.js
CHANGED
package/semanticForms.scss
CHANGED
|
@@ -92,7 +92,6 @@ form.semanticForms {
|
|
|
92
92
|
background: var(--nestedInput);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
dl {
|
|
@@ -105,14 +104,23 @@ form.semanticForms {
|
|
|
105
104
|
position: relative;
|
|
106
105
|
|
|
107
106
|
&:not(.checkboxes, .radios) {
|
|
108
|
-
display: flex;
|
|
109
107
|
gap: 10px;
|
|
110
108
|
max-width: 100%;
|
|
111
109
|
|
|
112
110
|
// places all items within the <dd> horizontally
|
|
113
111
|
&:not(.singleCheckbox) {
|
|
112
|
+
display: flex;
|
|
114
113
|
flex-direction: column;
|
|
115
114
|
}
|
|
115
|
+
|
|
116
|
+
&.singleCheckbox {
|
|
117
|
+
display: grid;
|
|
118
|
+
grid-template-columns: min-content 1fr;
|
|
119
|
+
|
|
120
|
+
& > :not(input[type='checkbox'], label) {
|
|
121
|
+
grid-column: 1 / -1;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
&.checkboxes ul, &.radios ul {
|