@carbon/styles 1.113.0 → 1.114.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/css/styles.css +2167 -536
- package/css/styles.min.css +1 -1
- package/index.scss +2 -1
- package/package.json +9 -9
- package/scss/__tests__/__snapshots__/border-radius-test.js.snap +24 -0
- package/scss/__tests__/__snapshots__/colors-test.js.snap +1 -1
- package/scss/__tests__/__snapshots__/config-test.js.snap +1 -1
- package/scss/__tests__/__snapshots__/spacing-test.js.snap +1 -1
- package/scss/__tests__/__snapshots__/type-test.js.snap +1 -1
- package/scss/__tests__/border-radius-test.js +31 -0
- package/scss/_border-radius.scss +10 -0
- package/scss/components/EditInPlace/_edit-in-place.scss +188 -0
- package/scss/components/EditInPlace/_index.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +91 -0
- package/scss/components/FullPageError/_index.scss +11 -0
- package/scss/components/InterstitialScreen/_index.scss +11 -0
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +181 -0
- package/scss/components/OptionsTile/_index.scss +11 -0
- package/scss/components/OptionsTile/_options-tile.scss +240 -0
- package/scss/components/__tests__/button-test.js +27 -0
- package/scss/components/__tests__/data-table-test.js +43 -1
- package/scss/components/__tests__/file-uploader.js +30 -0
- package/scss/components/__tests__/overflow-menu-test.js +40 -1
- package/scss/components/__tests__/structured-list-test.js +38 -1
- package/scss/components/__tests__/tag-test.js +1 -2
- package/scss/components/__tests__/text-input-test.js +1 -1
- package/scss/components/__tests__/treeview-test.js +60 -1
- package/scss/components/_index.scss +9 -1
- package/scss/components/big-number/_big-number.scss +164 -0
- package/scss/components/big-number/_index.scss +11 -0
- package/scss/components/button/_button.scss +0 -1
- package/scss/components/card/_card.scss +37 -12
- package/scss/components/coachmark/_coachmark-beacon.scss +159 -0
- package/scss/components/coachmark/_coachmark-tagline.scss +142 -0
- package/scss/components/coachmark/_coachmark.scss +56 -0
- package/scss/components/coachmark/_index.scss +17 -0
- package/scss/components/data-table/_data-table.scss +140 -110
- package/scss/components/data-table/expandable/_data-table-expandable.scss +86 -59
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +10 -8
- package/scss/components/date-picker/_date-picker-next.scss +20 -20
- package/scss/components/date-picker/_date-picker.scss +5 -3
- package/scss/components/date-picker/_flatpickr.scss +46 -28
- package/scss/components/file-uploader/_file-uploader.scss +23 -10
- package/scss/components/loading/_loading.scss +2 -1
- package/scss/components/overflow-menu/_overflow-menu.scss +12 -6
- package/scss/components/pagination/_pagination.scss +12 -0
- package/scss/components/pagination-nav/_pagination-nav.scss +5 -3
- package/scss/components/scroll-gradient/_index.scss +11 -0
- package/scss/components/scroll-gradient/_scroll-gradient.scss +107 -0
- package/scss/components/slider/_slider.scss +38 -15
- package/scss/components/structured-list/_structured-list.scss +27 -20
- package/scss/components/tabs/_tabs.scss +11 -0
- package/scss/components/tag/_mixins.scss +9 -5
- package/scss/components/tag/_tag.scss +44 -26
- package/scss/components/text-input/_text-input.scss +11 -7
- package/scss/components/treeview/_treeview.scss +52 -33
- package/scss/components/ui-shell/side-nav/_side-nav.scss +58 -42
- package/scss/components/ui-shell/switcher/_switcher.scss +7 -5
- package/scss/components/user-avatar/_index.scss +11 -0
- package/scss/components/user-avatar/_user-avatar.scss +160 -0
package/index.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2018,
|
|
2
|
+
// Copyright IBM Corp. 2018, 2026
|
|
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.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@forward 'scss/config';
|
|
9
9
|
@forward 'scss/spacing';
|
|
10
|
+
@forward 'scss/border-radius';
|
|
10
11
|
@forward 'scss/colors' hide $white;
|
|
11
12
|
@forward 'scss/motion';
|
|
12
13
|
@forward 'scss/type';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.114.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.
|
|
44
|
-
"@carbon/feature-flags": "^1.
|
|
45
|
-
"@carbon/grid": "^11.
|
|
46
|
-
"@carbon/layout": "^11.
|
|
47
|
-
"@carbon/motion": "^11.
|
|
48
|
-
"@carbon/themes": "^11.
|
|
49
|
-
"@carbon/type": "^11.
|
|
43
|
+
"@carbon/colors": "^11.57.0",
|
|
44
|
+
"@carbon/feature-flags": "^1.8.0",
|
|
45
|
+
"@carbon/grid": "^11.61.0",
|
|
46
|
+
"@carbon/layout": "^11.58.0",
|
|
47
|
+
"@carbon/motion": "^11.51.0",
|
|
48
|
+
"@carbon/themes": "^11.80.0",
|
|
49
|
+
"@carbon/type": "^11.66.0",
|
|
50
50
|
"@ibm/plex": "6.4.1",
|
|
51
51
|
"@ibm/plex-mono": "2.5.0",
|
|
52
52
|
"@ibm/plex-sans": "1.1.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7518c84ffd00f22434fe19d83119692c12fccb2f"
|
|
79
79
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`@carbon/styles/scss/border-radius Public API 1`] = `
|
|
4
|
+
{
|
|
5
|
+
"variables": {
|
|
6
|
+
"border-radius": {
|
|
7
|
+
"border-radius-00": "0px",
|
|
8
|
+
"border-radius-02": "0.125rem",
|
|
9
|
+
"border-radius-04": "0.25rem",
|
|
10
|
+
"border-radius-08": "0.5rem",
|
|
11
|
+
"border-radius-16": "1rem",
|
|
12
|
+
"border-radius-24": "1.5rem",
|
|
13
|
+
"border-radius-max": "999999px",
|
|
14
|
+
},
|
|
15
|
+
"border-radius-00": "0px",
|
|
16
|
+
"border-radius-02": "0.125rem",
|
|
17
|
+
"border-radius-04": "0.25rem",
|
|
18
|
+
"border-radius-08": "0.5rem",
|
|
19
|
+
"border-radius-16": "1rem",
|
|
20
|
+
"border-radius-24": "1.5rem",
|
|
21
|
+
"border-radius-max": "999999px",
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @jest-environment node
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
12
|
+
const { SassRenderer } = require('@carbon/test-utils/scss');
|
|
13
|
+
|
|
14
|
+
const { render } = SassRenderer.create(__dirname);
|
|
15
|
+
|
|
16
|
+
describe('@carbon/styles/scss/border-radius', () => {
|
|
17
|
+
test('Public API', async () => {
|
|
18
|
+
const { get } = await render(`
|
|
19
|
+
@use 'sass:meta';
|
|
20
|
+
@use '../border-radius';
|
|
21
|
+
|
|
22
|
+
$_: get('api', (
|
|
23
|
+
variables: meta.module-variables('border-radius'),
|
|
24
|
+
));
|
|
25
|
+
`);
|
|
26
|
+
|
|
27
|
+
const { value: api } = get('api');
|
|
28
|
+
|
|
29
|
+
expect(api).toMatchSnapshot();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2026
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward '@carbon/layout/scss/border-radius' show $border-radius,
|
|
9
|
+
$border-radius-00, $border-radius-02, $border-radius-04, $border-radius-08,
|
|
10
|
+
$border-radius-16, $border-radius-24, $border-radius-max;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2022, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '../../config' as *;
|
|
9
|
+
@use '../../theme' as *;
|
|
10
|
+
@use '../../type' as *;
|
|
11
|
+
@use '../../spacing' as *;
|
|
12
|
+
@use '../../motion' as *;
|
|
13
|
+
|
|
14
|
+
/// EditInPlace styles
|
|
15
|
+
/// @access public
|
|
16
|
+
/// @group edit-in-place
|
|
17
|
+
@mixin edit-in-place {
|
|
18
|
+
$block-class: #{$prefix}--edit-in-place;
|
|
19
|
+
$carbon-input: #{$prefix}--text-input;
|
|
20
|
+
|
|
21
|
+
.#{$block-class} {
|
|
22
|
+
--#{$block-class}--size: #{$spacing-07};
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
background: transparent;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$block-class}--sm {
|
|
31
|
+
--#{$block-class}--size: #{$spacing-08};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.#{$block-class}--md {
|
|
35
|
+
--#{$block-class}--size: #{$spacing-09};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.#{$block-class}--lg {
|
|
39
|
+
--#{$block-class}--size: #{$spacing-10};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$block-class}__toggletip-wrapper {
|
|
43
|
+
display: block;
|
|
44
|
+
inline-size: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$block-class}__toggletip-wrapper .#{$prefix}--toggletip-button {
|
|
48
|
+
display: block;
|
|
49
|
+
inline-size: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$block-class}:hover {
|
|
53
|
+
background: $field-01;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$block-class}:hover .#{$block-class}__btn-edit,
|
|
57
|
+
.#{$block-class}__btn-edit.#{$block-class}__btn-edit--always-visible {
|
|
58
|
+
visibility: visible;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.#{$block-class}__btn-edit {
|
|
62
|
+
visibility: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$block-class}--invalid {
|
|
66
|
+
border: 2px solid $support-error;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.#{$block-class}--focused {
|
|
70
|
+
background: $field-01;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Show outline on entire component when input has focus
|
|
74
|
+
.#{$block-class}--focused:has(.#{$block-class}__text-input:focus) {
|
|
75
|
+
outline: 2px solid $focus;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Remove border when focused to avoid double border with outline
|
|
79
|
+
.#{$block-class}--invalid.#{$block-class}--focused {
|
|
80
|
+
border: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.#{$block-class}__text-input {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.#{$block-class}--inherit-type .#{$block-class}__text-input {
|
|
88
|
+
/* match font of container */
|
|
89
|
+
font-size: inherit;
|
|
90
|
+
font-weight: inherit;
|
|
91
|
+
letter-spacing: inherit;
|
|
92
|
+
line-height: inherit;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.#{$block-class}__text-input-label {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.#{$block-class}__warning-icon {
|
|
100
|
+
margin: auto $spacing-03;
|
|
101
|
+
color: $support-error;
|
|
102
|
+
inline-size: $spacing-05;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.#{$block-class}__warning-text {
|
|
106
|
+
@include type-style('label-01');
|
|
107
|
+
|
|
108
|
+
color: $support-error;
|
|
109
|
+
|
|
110
|
+
margin-block-start: $spacing-03;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// overrides
|
|
114
|
+
.#{$block-class}__text-input.#{$carbon-input} {
|
|
115
|
+
border: none;
|
|
116
|
+
background: transparent;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
outline: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Remove outline when not in edit mode
|
|
122
|
+
.#{$block-class}:not(.#{$block-class}--focused)
|
|
123
|
+
.#{$block-class}__text-input.#{$carbon-input}:focus,
|
|
124
|
+
.#{$block-class}:not(.#{$block-class}--focused)
|
|
125
|
+
.#{$block-class}__text-input.#{$carbon-input}:active {
|
|
126
|
+
outline: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.#{$block-class}__toolbar {
|
|
130
|
+
--toolbar-width: var(--#{$block-class}--size);
|
|
131
|
+
--toolbar-width-focussed: calc(2 * var(--#{$block-class}--size));
|
|
132
|
+
|
|
133
|
+
// animation div
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-self: stretch;
|
|
136
|
+
inline-size: var(--toolbar-width);
|
|
137
|
+
|
|
138
|
+
.#{$prefix}--btn.#{$prefix}--btn--icon-only:not(#{$prefix}-icon-button) {
|
|
139
|
+
padding: 0;
|
|
140
|
+
min-block-size: unset;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Match button heights to input heights for each size and make them square
|
|
145
|
+
.#{$block-class}__toolbar
|
|
146
|
+
.#{$prefix}--btn.#{$prefix}--btn--icon-only:not(#{$prefix}-icon-button) {
|
|
147
|
+
block-size: var(--#{$block-class}--size);
|
|
148
|
+
inline-size: var(--#{$block-class}--size);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.#{$block-class}__toolbar #{$prefix}-icon-button::part(button) {
|
|
152
|
+
padding: $spacing-02;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.#{$block-class}--invalid .#{$block-class}__toolbar {
|
|
156
|
+
// width of invalid icon is always $spacing-07 ($spacing-05 + 2 * $spacing-03 margin)
|
|
157
|
+
--toolbar-width: calc(var(--#{$block-class}--size) + #{$spacing-07});
|
|
158
|
+
--toolbar-width-focussed: calc(
|
|
159
|
+
2 * var(--#{$block-class}--size) + #{$spacing-07}
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@keyframes edit-in-place-slide-in {
|
|
164
|
+
0% {
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
inline-size: var(--toolbar-width);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
99% {
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
inline-size: var(--toolbar-width-focussed);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
100% {
|
|
175
|
+
overflow: visible;
|
|
176
|
+
inline-size: var(--toolbar-width-focussed);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.#{$block-class}--focused:not(.#{$block-class}--readonly)
|
|
181
|
+
.#{$block-class}__toolbar {
|
|
182
|
+
overflow: initial;
|
|
183
|
+
|
|
184
|
+
animation: edit-in-place-slide-in $duration-moderate-01
|
|
185
|
+
motion(entrance, productive);
|
|
186
|
+
inline-size: var(--toolbar-width-focussed);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2022, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'edit-in-place';
|
|
9
|
+
@use 'edit-in-place';
|
|
10
|
+
|
|
11
|
+
@include edit-in-place.edit-in-place;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2024, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '../../config' as *;
|
|
9
|
+
@use '../../theme' as *;
|
|
10
|
+
@use '../../type' as *;
|
|
11
|
+
@use '../../spacing' as *;
|
|
12
|
+
@use '../../breakpoint' as *;
|
|
13
|
+
|
|
14
|
+
/// FullPageError styles
|
|
15
|
+
/// @access public
|
|
16
|
+
/// @group full-page-error
|
|
17
|
+
@mixin full-page-error {
|
|
18
|
+
.#{$prefix}--full-page-error {
|
|
19
|
+
block-size: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$prefix}--full-page-error__container {
|
|
23
|
+
margin: 0 $spacing-06;
|
|
24
|
+
block-size: 100%;
|
|
25
|
+
|
|
26
|
+
@include breakpoint-down(md) {
|
|
27
|
+
margin: 0 $spacing-03;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$prefix}--full-page-error__grid {
|
|
32
|
+
block-size: 100%;
|
|
33
|
+
padding-block: $spacing-07;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.#{$prefix}--full-page-error__column {
|
|
37
|
+
padding: 0;
|
|
38
|
+
|
|
39
|
+
@include breakpoint(lg) {
|
|
40
|
+
padding: 0 $spacing-07 0 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.#{$prefix}--full-page-error__svg-container {
|
|
45
|
+
display: flex;
|
|
46
|
+
padding: $spacing-03 $spacing-03 $spacing-11 $spacing-03;
|
|
47
|
+
block-size: 100%;
|
|
48
|
+
|
|
49
|
+
@include breakpoint(md) {
|
|
50
|
+
padding: auto $spacing-03 $spacing-11;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.#{$prefix}--full-page-error__label,
|
|
55
|
+
.#{$prefix}--full-page-error__title {
|
|
56
|
+
@include type-style('fluid-heading-05', true);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.#{$prefix}--full-page-error__label {
|
|
60
|
+
display: block;
|
|
61
|
+
color: $text-error;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.#{$prefix}--full-page-error__title {
|
|
65
|
+
margin-block-end: $spacing-09;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.#{$prefix}--full-page-error__description {
|
|
69
|
+
@include type-style('body-02');
|
|
70
|
+
|
|
71
|
+
margin-block-end: $spacing-07;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.#{$prefix}--full-page-error__body {
|
|
75
|
+
@include type-style('body-02');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// safari rendering fix
|
|
79
|
+
.#{$prefix}--full-page-error__svg-container
|
|
80
|
+
svg.#{$prefix}--full-page-error__svg {
|
|
81
|
+
inline-size: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// svg theme styles
|
|
85
|
+
.#{$prefix}--full-page-error__svg-container
|
|
86
|
+
svg.#{$prefix}--full-page-error__svg
|
|
87
|
+
path {
|
|
88
|
+
fill: $background;
|
|
89
|
+
stroke: $border-inverse;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2024, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'full-page-error';
|
|
9
|
+
@use 'full-page-error';
|
|
10
|
+
|
|
11
|
+
@include full-page-error.full-page-error;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2024, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'interstitial-screen';
|
|
9
|
+
@use 'interstitial-screen';
|
|
10
|
+
|
|
11
|
+
@include interstitial-screen.interstitial-screen;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2024, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
/* stylelint-disable declaration-no-important */
|
|
9
|
+
|
|
10
|
+
@use '../../config' as *;
|
|
11
|
+
@use '../../theme' as *;
|
|
12
|
+
@use '../../type' as *;
|
|
13
|
+
@use '../../spacing' as *;
|
|
14
|
+
@use '../../breakpoint' as *;
|
|
15
|
+
|
|
16
|
+
/// InterstitialScreen styles
|
|
17
|
+
/// @access public
|
|
18
|
+
/// @group interstitial-screen
|
|
19
|
+
@mixin interstitial-screen {
|
|
20
|
+
$block-class: #{$prefix}--interstitial-screen;
|
|
21
|
+
$carousel-item: #{$prefix}--carousel__item;
|
|
22
|
+
|
|
23
|
+
.#{$block-class} {
|
|
24
|
+
$block: &;
|
|
25
|
+
|
|
26
|
+
&--body {
|
|
27
|
+
overflow: hidden auto;
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
background-color: $background;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--progress {
|
|
35
|
+
overflow: auto;
|
|
36
|
+
margin-block-end: $spacing-04;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__carousel {
|
|
40
|
+
block-size: 100%;
|
|
41
|
+
|
|
42
|
+
.#{$carousel-item} {
|
|
43
|
+
flex: 0 0 100%;
|
|
44
|
+
scroll-snap-align: start;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&--internal-body {
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
margin: 0 !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--content {
|
|
54
|
+
block-size: 100%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// HEADER
|
|
58
|
+
&--internal-header {
|
|
59
|
+
position: relative;
|
|
60
|
+
background-color: $background;
|
|
61
|
+
margin-block-end: 0 !important;
|
|
62
|
+
padding-block-start: $spacing-06 !important;
|
|
63
|
+
padding-inline-start: $spacing-07 !important;
|
|
64
|
+
|
|
65
|
+
@include breakpoint-down(md) {
|
|
66
|
+
padding-inline: $spacing-05 !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:empty {
|
|
70
|
+
min-block-size: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.#{$block-class}--titleContainer {
|
|
74
|
+
margin-block-end: $spacing-05;
|
|
75
|
+
|
|
76
|
+
h1 {
|
|
77
|
+
@include type-style('productive-heading-04');
|
|
78
|
+
|
|
79
|
+
margin-block-end: $spacing-03;
|
|
80
|
+
|
|
81
|
+
&:empty {
|
|
82
|
+
padding: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
h2 {
|
|
87
|
+
@include type-style('productive-heading-03');
|
|
88
|
+
|
|
89
|
+
&:empty {
|
|
90
|
+
padding: 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--has-title {
|
|
96
|
+
background: $layer-01;
|
|
97
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
98
|
+
|
|
99
|
+
#{$block}--progress {
|
|
100
|
+
margin-block-start: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// FOOTER
|
|
106
|
+
&--footer {
|
|
107
|
+
background: $background;
|
|
108
|
+
border-block-start: 1px solid $border-subtle-01;
|
|
109
|
+
inline-size: 100%;
|
|
110
|
+
|
|
111
|
+
@include breakpoint-down(md) {
|
|
112
|
+
block-size: auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// ButtonSet wrapper
|
|
116
|
+
.#{$prefix}--btn-set {
|
|
117
|
+
display: flex;
|
|
118
|
+
justify-content: flex-end;
|
|
119
|
+
inline-size: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// On small screens, split width equally among all buttons
|
|
123
|
+
@include breakpoint-down(md) {
|
|
124
|
+
.#{$prefix}--btn#{$block}--prev-btn,
|
|
125
|
+
.#{$prefix}--btn#{$block}--next-btn,
|
|
126
|
+
.#{$prefix}--btn#{$block}--start-btn,
|
|
127
|
+
.#{$prefix}--btn#{$block}--skip-btn {
|
|
128
|
+
flex: 1 1 0;
|
|
129
|
+
inline-size: auto;
|
|
130
|
+
max-inline-size: none;
|
|
131
|
+
min-inline-size: 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// On larger screens, fixed widths for action buttons, flexible skip
|
|
136
|
+
@include breakpoint(md) {
|
|
137
|
+
.#{$prefix}--btn#{$block}--prev-btn,
|
|
138
|
+
.#{$prefix}--btn#{$block}--next-btn,
|
|
139
|
+
.#{$prefix}--btn#{$block}--start-btn {
|
|
140
|
+
flex: 0 0 auto;
|
|
141
|
+
inline-size: calc($spacing-11 * 3);
|
|
142
|
+
max-inline-size: 15rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.#{$prefix}--btn#{$block}--skip-btn {
|
|
146
|
+
flex: 1 1 auto;
|
|
147
|
+
max-inline-size: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.#{$prefix}--inline-loading {
|
|
152
|
+
position: absolute;
|
|
153
|
+
inline-size: $spacing-07;
|
|
154
|
+
inset-block-start: 0;
|
|
155
|
+
inset-inline-end: 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&--footer-controls {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: row;
|
|
162
|
+
margin-inline-start: auto;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// FULL SCREEN
|
|
166
|
+
&--full-screen {
|
|
167
|
+
position: fixed;
|
|
168
|
+
inset-block-start: 0;
|
|
169
|
+
inset-inline: 0;
|
|
170
|
+
|
|
171
|
+
#{$block}--container {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
padding: 0;
|
|
175
|
+
margin: 0;
|
|
176
|
+
block-size: 100vh;
|
|
177
|
+
max-inline-size: 100vw;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2021, 2026
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'options-tile';
|
|
9
|
+
@use 'options-tile';
|
|
10
|
+
|
|
11
|
+
@include options-tile.options-tile;
|