@carbon/ibmdotcom-styles 1.58.0 → 1.59.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-styles",
3
3
  "description": "Carbon for IBM.com Styles",
4
- "version": "1.58.0",
4
+ "version": "1.59.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -54,5 +54,5 @@
54
54
  "node-sass": "^8.0.0",
55
55
  "require-dir": "^1.2.0"
56
56
  },
57
- "gitHead": "b3c53496b8863b2b27dfbfea9606b1097161690f"
57
+ "gitHead": "198bdef4ac7666807a6cab98dc8fda7307899b95"
58
58
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2022
2
+ * Copyright IBM Corp. 2016, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -66,7 +66,7 @@
66
66
  &__img {
67
67
  position: absolute;
68
68
  height: 100%;
69
- top: 0;
69
+ inset-block-start: 0;
70
70
  }
71
71
  }
72
72
  }
@@ -86,8 +86,8 @@
86
86
 
87
87
  :host(#{$dds-prefix}-card-group-item),
88
88
  :host(#{$dds-prefix}-card-group-card-link-item) {
89
- padding-bottom: 1px;
90
- padding-right: 1px;
89
+ padding-block-end: 1px;
90
+ padding-inline-end: 1px;
91
91
 
92
92
  &[border] {
93
93
  border: none;
@@ -122,7 +122,7 @@
122
122
 
123
123
  &[pattern-background] {
124
124
  .#{$prefix}--card {
125
- border-bottom: 1px solid $ui-03;
125
+ border-block-end: 1px solid $ui-03;
126
126
  }
127
127
 
128
128
  .#{$prefix}--card,
@@ -142,10 +142,7 @@
142
142
  content: '';
143
143
  position: absolute;
144
144
  z-index: 2;
145
- top: 0;
146
- left: 0;
147
- bottom: 0;
148
- right: 0;
145
+ inset: 0;
149
146
  outline: 2px solid $focus;
150
147
  outline-offset: -2px;
151
148
  pointer-events: none;
@@ -186,8 +183,8 @@
186
183
  // `@include carbon--make-row()` has negative margin adjustment assuming that it's placed in Carbon grid.
187
184
  // Such adjustment has adverse effect when card group is placed in non-Carbon-grid,
188
185
  // but keeps it for React for backward-compatibility reason.
189
- margin-left: calc(-1 * #{$carbon--grid-gutter} / 2);
190
- margin-right: calc(-1 * #{$carbon--grid-gutter} / 2);
186
+ margin-inline-start: calc(-1 * #{$carbon--grid-gutter} / 2);
187
+ margin-inline-end: calc(-1 * #{$carbon--grid-gutter} / 2);
191
188
 
192
189
  position: relative;
193
190
  &::after {
@@ -196,8 +193,8 @@
196
193
  width: 100%;
197
194
  height: 100%;
198
195
  position: absolute;
199
- left: 0;
200
- top: 0;
196
+ inset-inline-start: 0;
197
+ inset-block-start: 0;
201
198
  pointer-events: none;
202
199
  box-shadow: inset 0 0 0 1px $ui-background;
203
200
  }
@@ -207,11 +204,11 @@
207
204
  padding: 0;
208
205
  background: $decorative-01;
209
206
 
210
- border-right: 1px solid $decorative-01;
211
- border-top: 1px solid $decorative-01;
207
+ border-inline-end: 1px solid $decorative-01;
208
+ border-block-start: 1px solid $decorative-01;
212
209
 
213
210
  &:last-of-type {
214
- border-right: 0;
211
+ border-inline-end: 0;
215
212
  width: calc(100% - 1px);
216
213
  }
217
214
 
@@ -224,12 +221,12 @@
224
221
  :host(#{$dds-prefix}-card-group)[grid-mode='narrow'],
225
222
  .#{$prefix}--card-group--narrow {
226
223
  @include carbon--breakpoint('sm') {
227
- padding-top: $carbon--spacing-03;
224
+ padding-block-start: $carbon--spacing-03;
228
225
  gap: $carbon--spacing-03;
229
226
  }
230
227
 
231
228
  @include carbon--breakpoint('md') {
232
- padding-top: $carbon--spacing-05;
229
+ padding-block-start: $carbon--spacing-05;
233
230
  gap: $carbon--spacing-05;
234
231
  }
235
232
 
@@ -259,10 +256,7 @@
259
256
  content: '';
260
257
  position: absolute;
261
258
  z-index: 2;
262
- top: 0;
263
- left: 0;
264
- bottom: 0;
265
- right: 0;
259
+ inset: 0;
266
260
  box-shadow: inset 0 0 0 2px $focus;
267
261
  pointer-events: none;
268
262
  }
@@ -279,23 +273,23 @@
279
273
  .#{$prefix}--card-group__cards__col {
280
274
  padding: 0;
281
275
  border: 1px solid $decorative-01;
282
- border-bottom: 0;
276
+ border-block-end: 0;
283
277
  }
284
278
 
285
279
  .#{$prefix}--card-group__cards__col:last-of-type {
286
- border-bottom: 1px solid $decorative-01;
287
- padding-right: 0;
280
+ border-block-end: 1px solid $decorative-01;
281
+ padding-inline-end: 0;
288
282
  }
289
283
 
290
284
  @include carbon--breakpoint('md') {
291
285
  .#{$prefix}--card-group__cards__col {
292
- border-bottom: 0;
293
- border-right: 0;
286
+ border-block-end: 0;
287
+ border-inline-end: 0;
294
288
  }
295
289
 
296
290
  .#{$prefix}--card-group__cards__col:nth-child(2n),
297
291
  .#{$prefix}--card-group__cards__col:last-of-type {
298
- border-right: 1px solid $decorative-01;
292
+ border-inline-end: 1px solid $decorative-01;
299
293
  }
300
294
 
301
295
  .#{$prefix}--card-group__cards__col:last-of-type:not(:nth-child(2n)) {
@@ -303,7 +297,7 @@
303
297
  }
304
298
 
305
299
  .#{$prefix}--card-group__cards__col:nth-last-of-type(-n + 2) {
306
- border-bottom: 1px solid $decorative-01;
300
+ border-block-end: 1px solid $decorative-01;
307
301
  height: calc(100% + 1px);
308
302
  }
309
303
  }
@@ -311,19 +305,19 @@
311
305
  @include carbon--breakpoint('lg') {
312
306
  .#{$prefix}--card-group__cards__col:nth-child(2n),
313
307
  .#{$prefix}--card-group__cards__col:nth-last-of-type(-n + 2) {
314
- border-bottom: 0;
315
- border-right: 0;
308
+ border-block-end: 0;
309
+ border-inline-end: 0;
316
310
  height: auto;
317
311
  }
318
312
 
319
313
  .#{$prefix}--card-group__cards__col:nth-child(3n),
320
314
  .#{$prefix}--card-group__cards__col:last-of-type {
321
- border-right: 1px solid $decorative-01;
315
+ border-inline-end: 1px solid $decorative-01;
322
316
  width: calc(100% + 1px);
323
317
  }
324
318
 
325
319
  .#{$prefix}--card-group__cards__col:nth-last-of-type(-n + 3) {
326
- border-bottom: 1px solid $decorative-01;
320
+ border-block-end: 1px solid $decorative-01;
327
321
  height: calc(100% + 1px);
328
322
  }
329
323