@carbon/ibmdotcom-styles 2.21.0 → 2.23.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": "2.21.0",
4
+ "version": "2.23.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -48,5 +48,5 @@
48
48
  "sass": "~1.84.0",
49
49
  "sass-loader": "^13.0.0"
50
50
  },
51
- "gitHead": "6574e60647f425d56225e0909d80ae894376db99"
51
+ "gitHead": "9604f645e0c57f759fa698ef64a2504b0b244c52"
52
52
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2024
2
+ * Copyright IBM Corp. 2016, 2025
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.
@@ -42,7 +42,9 @@
42
42
  1fr
43
43
  );
44
44
  }
45
+ }
45
46
 
47
+ :host(#{$c4d-prefix}-card-group):not(.is-full-width-template) {
46
48
  @include breakpoint-down(md) {
47
49
  padding-inline: $spacing-05;
48
50
  }
@@ -30,14 +30,20 @@
30
30
  }
31
31
 
32
32
  ::slotted([slot='media']) {
33
- margin-block-start: $spacing-07;
33
+ margin-block-end: $spacing-07;
34
+ margin-inline: -$spacing-05;
35
+
36
+ @include breakpoint-between(md, lg) {
37
+ margin-inline: -$spacing-07;
38
+ }
34
39
 
35
40
  @include breakpoint(md) {
36
- margin-block-start: $spacing-09;
41
+ margin-block-end: $spacing-09;
37
42
  }
38
43
 
39
44
  @include breakpoint(lg) {
40
- margin-block-start: 0;
45
+ margin-block-end: 0;
46
+ margin-inline: 0;
41
47
  }
42
48
  }
43
49
  }
@@ -115,10 +121,6 @@
115
121
  grid-column: 1 / span 4;
116
122
  text-align: start;
117
123
 
118
- &:first-of-type {
119
- margin-inline-end: $spacing-07;
120
- }
121
-
122
124
  &:last-of-type {
123
125
  @include breakpoint(lg) {
124
126
  grid-column: 5 / span 8;
@@ -132,14 +134,12 @@
132
134
  &:first-of-type {
133
135
  @include breakpoint(lg) {
134
136
  grid-column: 1 / span 8;
135
- margin-inline-end: 0;
136
137
  }
137
138
  }
138
139
 
139
140
  &:last-of-type {
140
141
  @include breakpoint(lg) {
141
142
  grid-column: 9 / span 4;
142
- margin-inline-end: $spacing-07;
143
143
  }
144
144
  }
145
145
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2024
2
+ * Copyright IBM Corp. 2016, 2025
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.
@@ -150,6 +150,8 @@ $search-transition-timing: 95ms;
150
150
 
151
151
  &.is-open {
152
152
  box-shadow: 0 2px 6px 0 $shadow;
153
+ /* stylelint-disable-next-line declaration-no-important */
154
+ inline-size: 100vw !important;
153
155
  }
154
156
 
155
157
  &:not(.is-open) {
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2024
2
+ // Copyright IBM Corp. 2022, 2025
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.
@@ -364,4 +364,9 @@
364
364
  transform: translateY(-#{$spacing-05});
365
365
  transition: $duration-fast-02 motion(standard, productive);
366
366
  }
367
+
368
+ :host(.overflowing-right) .overflow-indicator.right,
369
+ :host(.overflowing-left) .overflow-indicator.left {
370
+ opacity: 1;
371
+ }
367
372
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2024
2
+ * Copyright IBM Corp. 2016, 2025
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.
@@ -190,4 +190,63 @@
190
190
 
191
191
  display: inline-block;
192
192
  }
193
+
194
+ .#{$prefix}-bubble-quote {
195
+ position: relative;
196
+ padding: 2.5rem;
197
+ border: 1px solid #8d8d8d;
198
+ border-radius: 0.25rem;
199
+ background: #f4f4f4;
200
+ margin-block-end: 3.81rem; /* match svg pointer height */
201
+ margin-inline: 0;
202
+
203
+ @include breakpoint-down(md) {
204
+ /* mobile inline gutters for the bubble quote */
205
+ margin-inline: 16px;
206
+ max-inline-size: calc(100% - 32px);
207
+ }
208
+
209
+ .bubble-pointer {
210
+ --fill: #f4f4f4;
211
+ --stroke: #8d8d8d;
212
+
213
+ position: absolute;
214
+ inset-block-start: 100%;
215
+ inset-inline-start: 2rem;
216
+
217
+ @include breakpoint-down(md) {
218
+ /* adjusting the pointer top position a bit since the max-inline-size calc changes in mobile. */
219
+ inset-block-start: calc(100% - 1px);
220
+ }
221
+ }
222
+
223
+ .bubble-pointer-fill {
224
+ fill: var(--fill);
225
+ }
226
+
227
+ .bubble-pointer-stroke {
228
+ stroke: var(--stroke);
229
+ }
230
+ }
231
+
232
+ :host([mark-type='bubble-quote']) {
233
+ span.cds--quote__mark[part~='mark--opening'] {
234
+ z-index: 1;
235
+ inset-block-start: 2.5rem;
236
+ inset-inline-start: 0.875rem;
237
+
238
+ @include breakpoint-down(lg) {
239
+ inset-inline-start: 1.25rem;
240
+ }
241
+ @include breakpoint-down(md) {
242
+ inset-inline-start: 2.8rem;
243
+ }
244
+ }
245
+ }
246
+
247
+ /* Mirroing the bubble quote in RTL modes */
248
+ :host([lang='ar']) .#{$prefix}-bubble-quote .bubble-pointer {
249
+ inset-inline: auto 2rem;
250
+ transform: scaleX(-1);
251
+ }
193
252
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2019, 2023
2
+ // Copyright IBM Corp. 2019, 2025
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.
@@ -20,6 +20,13 @@
20
20
  --cols: var(--col-span-#{$colNumber}, 2);
21
21
  --width: calc((var(--cols) / var(--max-cols)) * 100%);
22
22
 
23
+ @include breakpoint-down(md) {
24
+ //Adjusting the mobile column width calculation. We're subtracting 5% of its width in mobile so that the next column 'peeks out' from the right side of the screen, indicating there's more scrollable content.
25
+ --width: calc(
26
+ (var(--cols) / var(--max-cols)) * 100% - var(--mobile-peek, 5%)
27
+ );
28
+ }
29
+
23
30
  flex: 0 0 var(--width);
24
31
 
25
32
  max-inline-size: var(--width);
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2020, 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ @use '@carbon/styles/scss/breakpoint' as *;
11
+
12
+ @mixin scroll-snap-container() {
13
+ overflow: scroll hidden;
14
+ // Width safeguards
15
+ inline-size: 100%;
16
+ max-inline-size: 100vw;
17
+ overscroll-behavior-x: contain;
18
+
19
+ // Extra space for auto-appearing scrollbar
20
+ padding-block: 4px 1rem;
21
+
22
+ // Extra space for css outlines on inner cards
23
+ scroll-snap-type: x mandatory;
24
+ }