@carbon/ibmdotcom-styles 2.24.0 → 2.26.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/dist/ibm-dotcom-styles.css +51 -49
- package/dist/ibm-dotcom-styles.min.css +2 -2
- package/package.json +2 -2
- package/scss/components/background-media/_background-media.scss +10 -0
- package/scss/components/card-section-offset/_card-section-offset.scss +14 -1
- package/scss/components/carousel/_carousel.scss +7 -1
- package/scss/components/image/_image.scss +3 -2
- package/scss/components/link-list/_link-list.scss +2 -2
- package/scss/components/quote/_quote.scss +50 -34
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.
|
|
4
|
+
"version": "2.26.0-rc.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": "
|
|
51
|
+
"gitHead": "2bb6159f2a0e79c36286ccdc3de5a0e77fb54d49"
|
|
52
52
|
}
|
|
@@ -69,6 +69,16 @@
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
.#{$prefix}--background-media--gradient--right-to-left {
|
|
73
|
+
@include breakpoint(lg) {
|
|
74
|
+
background-image: linear-gradient(
|
|
75
|
+
to left,
|
|
76
|
+
$background 25%,
|
|
77
|
+
rgba(255, 255, 255, 0) 75%
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
72
82
|
.#{$prefix}--background-media--gradient--top-to-bottom {
|
|
73
83
|
@include breakpoint(lg) {
|
|
74
84
|
background-image: linear-gradient(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
*
|
|
4
|
-
* Copyright IBM Corp. 2020,
|
|
4
|
+
* Copyright IBM Corp. 2020, 2025
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -106,6 +106,19 @@
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
:host(:dir(rtl)) {
|
|
110
|
+
::slotted([slot='heading']) {
|
|
111
|
+
margin-right: 1rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
::slotted([slot='action']) {
|
|
115
|
+
//important needed because <a slot="action" style="display: contents;"> in AEM has an inline style
|
|
116
|
+
/* stylelint-disable declaration-no-important */
|
|
117
|
+
display: block !important;
|
|
118
|
+
margin-right: 1rem !important;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
109
122
|
// Print styles
|
|
110
123
|
@media print {
|
|
111
124
|
.#{$prefix}--card-section-offset__content,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
// @license
|
|
3
3
|
//
|
|
4
|
-
// Copyright IBM Corp. 2020,
|
|
4
|
+
// Copyright IBM Corp. 2020, 2025
|
|
5
5
|
//
|
|
6
6
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
7
7
|
// LICENSE file in the root directory of this source tree.
|
|
@@ -64,6 +64,12 @@
|
|
|
64
64
|
vertical-align: middle;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
::slotted(#{$c4d-prefix}-callout-quote:not(:first-child)) {
|
|
68
|
+
@include breakpoint(md) {
|
|
69
|
+
margin-inline-start: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
67
73
|
.#{$prefix}--carousel__scroll-container {
|
|
68
74
|
position: relative;
|
|
69
75
|
overflow: hidden;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
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.
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
:host(#{$c4d-prefix}-image)[heading] {
|
|
66
66
|
display: block;
|
|
67
67
|
margin-block: $spacing-07;
|
|
68
|
-
max-inline-size: to-rem(640px);
|
|
69
68
|
|
|
70
69
|
@include breakpoint(md) {
|
|
71
70
|
margin-block: $spacing-07;
|
|
@@ -140,6 +139,8 @@
|
|
|
140
139
|
color: $text-helper;
|
|
141
140
|
|
|
142
141
|
margin-block-start: $spacing-03;
|
|
142
|
+
|
|
143
|
+
max-inline-size: to-rem(640px);
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
:host(#{$c4d-prefix}-image[lightbox-contrast='dark']) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
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.
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
.#{$prefix}--link {
|
|
88
88
|
display: flex;
|
|
89
89
|
align-content: flex-start;
|
|
90
|
-
padding: $spacing-
|
|
90
|
+
padding: $spacing-03 0;
|
|
91
91
|
gap: $spacing-03;
|
|
92
92
|
inline-size: 100%;
|
|
93
93
|
|
|
@@ -191,55 +191,71 @@
|
|
|
191
191
|
display: inline-block;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
//Hiding bubble-pointer as bubble-quote is mobible only
|
|
194
195
|
.#{$prefix}-bubble-quote {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
background: #f4f4f4;
|
|
200
|
-
margin-block-end: 3.81rem; /* match svg pointer height */
|
|
201
|
-
margin-inline: 0;
|
|
196
|
+
.bubble-pointer {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
202
200
|
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
//Bubble-quote variation is mobile only
|
|
202
|
+
@include breakpoint-down(md) {
|
|
203
|
+
.#{$prefix}-bubble-quote {
|
|
204
|
+
position: relative;
|
|
205
|
+
padding: 2.5rem;
|
|
206
|
+
border: 1px solid #8d8d8d;
|
|
207
|
+
border-radius: 0.25rem;
|
|
208
|
+
background: #f4f4f4;
|
|
209
|
+
margin-block-end: 3.81rem; /* match svg pointer height */
|
|
205
210
|
margin-inline: 16px;
|
|
206
211
|
max-inline-size: calc(100% - 32px);
|
|
207
|
-
}
|
|
208
212
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
213
|
+
.bubble-pointer {
|
|
214
|
+
--fill: #f4f4f4;
|
|
215
|
+
--stroke: #8d8d8d;
|
|
212
216
|
|
|
213
|
-
|
|
214
|
-
inset-block-start: 100%;
|
|
215
|
-
inset-inline-start: 2rem;
|
|
217
|
+
position: absolute;
|
|
216
218
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
inset-
|
|
219
|
+
display: block;
|
|
220
|
+
inset-block-start: 100%;
|
|
221
|
+
inset-inline-start: 2rem;
|
|
220
222
|
}
|
|
221
|
-
}
|
|
222
223
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
.bubble-pointer-fill {
|
|
225
|
+
fill: var(--fill);
|
|
226
|
+
}
|
|
226
227
|
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
.bubble-pointer-stroke {
|
|
229
|
+
stroke: var(--stroke);
|
|
230
|
+
}
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
@include breakpoint-down(md) {
|
|
235
|
+
:host([appearance='bubble-quote']),
|
|
236
|
+
:host([appearance='card']) {
|
|
237
|
+
span.cds--quote__mark[part~='mark--opening'] {
|
|
238
|
+
z-index: 1;
|
|
239
|
+
inset-block-start: 2.5rem;
|
|
240
|
+
inset-inline-start: 2.8rem;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
237
244
|
|
|
238
|
-
|
|
239
|
-
|
|
245
|
+
@include breakpoint-down(md) {
|
|
246
|
+
:host([appearance='bubble-quote'])[mark-type='corner-bracket'],
|
|
247
|
+
:host([appearance='card'])[mark-type='corner-bracket'] {
|
|
248
|
+
span.cds--quote__mark[part~='mark--opening'] {
|
|
249
|
+
inset-inline-start: 2.2rem;
|
|
240
250
|
}
|
|
241
|
-
|
|
242
|
-
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@include breakpoint-up(md) {
|
|
255
|
+
:host([appearance='bubble-quote'])[mark-type='corner-bracket'],
|
|
256
|
+
:host([appearance='card'])[mark-type='corner-bracket'] {
|
|
257
|
+
span.cds--quote__mark[part~='mark--opening'] {
|
|
258
|
+
inset-inline-start: -1.125rem;
|
|
243
259
|
}
|
|
244
260
|
}
|
|
245
261
|
}
|