@carbon/grid 11.29.0-rc.0 → 11.30.0-rc.0
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 +4 -4
- package/scss/_css-grid.scss +24 -6
- package/scss/_inlined/_css-grid.scss +24 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/grid",
|
|
3
3
|
"description": "Grid for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.30.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@carbon/layout": "^11.28.0
|
|
38
|
+
"@carbon/layout": "^11.28.0",
|
|
39
39
|
"@ibm/telemetry-js": "^1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@carbon/cli": "^11.23.0
|
|
42
|
+
"@carbon/cli": "^11.23.0",
|
|
43
43
|
"rimraf": "^6.0.0"
|
|
44
44
|
},
|
|
45
45
|
"eyeglass": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"sassDir": "scss",
|
|
49
49
|
"needs": "^1.3.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "7b6d921583ff275baace5baa66da9d9b31740fa8"
|
|
52
52
|
}
|
package/scss/_css-grid.scss
CHANGED
|
@@ -138,14 +138,30 @@
|
|
|
138
138
|
|
|
139
139
|
// Narrow
|
|
140
140
|
.#{$prefix}--css-grid--narrow {
|
|
141
|
-
--cds-grid-gutter-start:
|
|
141
|
+
--cds-grid-gutter-start: 0rem; /* stylelint-disable-line length-zero-no-unit */
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
// Condensed
|
|
145
145
|
.#{$prefix}--css-grid--condensed {
|
|
146
146
|
--cds-grid-gutter: #{$grid-gutter-condensed};
|
|
147
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
148
|
-
|
|
147
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
148
|
+
$grid-gutter-condensed,
|
|
149
|
+
2
|
|
150
|
+
)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// -----------------------------------------------------------------------------
|
|
154
|
+
// Alignment
|
|
155
|
+
// -----------------------------------------------------------------------------
|
|
156
|
+
|
|
157
|
+
// Start
|
|
158
|
+
.#{$prefix}--css-grid--start {
|
|
159
|
+
margin-inline-start: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// End
|
|
163
|
+
.#{$prefix}--css-grid--end {
|
|
164
|
+
margin-inline-end: 0;
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
// -----------------------------------------------------------------------------
|
|
@@ -171,7 +187,7 @@
|
|
|
171
187
|
}
|
|
172
188
|
|
|
173
189
|
.#{$prefix}--subgrid--narrow {
|
|
174
|
-
--cds-grid-gutter-start:
|
|
190
|
+
--cds-grid-gutter-start: 0rem; /* stylelint-disable-line length-zero-no-unit */
|
|
175
191
|
--cds-grid-gutter-end: #{math.div($grid-gutter, 2)};
|
|
176
192
|
--cds-grid-column-hang: #{math.div($grid-gutter, 2)};
|
|
177
193
|
}
|
|
@@ -179,8 +195,10 @@
|
|
|
179
195
|
.#{$prefix}--subgrid--condensed {
|
|
180
196
|
--cds-grid-gutter-start: #{math.div($grid-gutter-condensed, 2)};
|
|
181
197
|
--cds-grid-gutter-end: #{math.div($grid-gutter-condensed, 2)};
|
|
182
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
183
|
-
|
|
198
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
199
|
+
$grid-gutter-condensed,
|
|
200
|
+
2
|
|
201
|
+
)};
|
|
184
202
|
}
|
|
185
203
|
|
|
186
204
|
// -----------------------------------------------------------------------------
|
|
@@ -138,14 +138,30 @@
|
|
|
138
138
|
|
|
139
139
|
// Narrow
|
|
140
140
|
.#{$prefix}--css-grid--narrow {
|
|
141
|
-
--cds-grid-gutter-start:
|
|
141
|
+
--cds-grid-gutter-start: 0rem; /* stylelint-disable-line length-zero-no-unit */
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
// Condensed
|
|
145
145
|
.#{$prefix}--css-grid--condensed {
|
|
146
146
|
--cds-grid-gutter: #{$grid-gutter-condensed};
|
|
147
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
148
|
-
|
|
147
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
148
|
+
$grid-gutter-condensed,
|
|
149
|
+
2
|
|
150
|
+
)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// -----------------------------------------------------------------------------
|
|
154
|
+
// Alignment
|
|
155
|
+
// -----------------------------------------------------------------------------
|
|
156
|
+
|
|
157
|
+
// Start
|
|
158
|
+
.#{$prefix}--css-grid--start {
|
|
159
|
+
margin-inline-start: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// End
|
|
163
|
+
.#{$prefix}--css-grid--end {
|
|
164
|
+
margin-inline-end: 0;
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
// -----------------------------------------------------------------------------
|
|
@@ -171,7 +187,7 @@
|
|
|
171
187
|
}
|
|
172
188
|
|
|
173
189
|
.#{$prefix}--subgrid--narrow {
|
|
174
|
-
--cds-grid-gutter-start:
|
|
190
|
+
--cds-grid-gutter-start: 0rem; /* stylelint-disable-line length-zero-no-unit */
|
|
175
191
|
--cds-grid-gutter-end: #{math.div($grid-gutter, 2)};
|
|
176
192
|
--cds-grid-column-hang: #{math.div($grid-gutter, 2)};
|
|
177
193
|
}
|
|
@@ -179,8 +195,10 @@
|
|
|
179
195
|
.#{$prefix}--subgrid--condensed {
|
|
180
196
|
--cds-grid-gutter-start: #{math.div($grid-gutter-condensed, 2)};
|
|
181
197
|
--cds-grid-gutter-end: #{math.div($grid-gutter-condensed, 2)};
|
|
182
|
-
--cds-grid-column-hang: #{math.div($grid-gutter, 2) -
|
|
183
|
-
|
|
198
|
+
--cds-grid-column-hang: #{math.div($grid-gutter, 2) - math.div(
|
|
199
|
+
$grid-gutter-condensed,
|
|
200
|
+
2
|
|
201
|
+
)};
|
|
184
202
|
}
|
|
185
203
|
|
|
186
204
|
// -----------------------------------------------------------------------------
|