@carbon/ibm-products-styles 2.55.0 → 2.56.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/css/index-full-carbon.css +9105 -9158
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +1150 -1565
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +2837 -4774
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +2250 -1875
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/package.json +14 -14
- package/scss/components/APIKeyModal/_api-key-modal.scss +7 -7
- package/scss/components/APIKeyModal/_carbon-imports.scss +5 -5
- package/scss/components/AboutModal/_about-modal.scss +13 -13
- package/scss/components/AboutModal/_carbon-imports.scss +2 -2
- package/scss/components/ActionBar/_action-bar.scss +2 -2
- package/scss/components/ActionBar/_carbon-imports.scss +2 -2
- package/scss/components/ActionSet/_action-set.scss +9 -10
- package/scss/components/ActionSet/_carbon-imports.scss +2 -2
- package/scss/components/AddSelect/_add-select.scss +43 -40
- package/scss/components/AddSelect/_carbon-imports.scss +10 -10
- package/scss/components/BigNumbers/_big-numbers.scss +26 -20
- package/scss/components/BigNumbers/_carbon-imports.scss +2 -2
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +8 -6
- package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +3 -3
- package/scss/components/ButtonMenu/_button-menu.scss +3 -3
- package/scss/components/ButtonMenu/_carbon-imports.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +1 -1
- package/scss/components/Card/_carbon-imports.scss +2 -2
- package/scss/components/Card/_card.scss +23 -22
- package/scss/components/Carousel/_carousel.scss +5 -6
- package/scss/components/Cascade/_cascade.scss +2 -2
- package/scss/components/Checklist/_carbon-imports.scss +1 -1
- package/scss/components/Checklist/_checklist.scss +23 -24
- package/scss/components/Coachmark/_carbon-imports.scss +1 -1
- package/scss/components/Coachmark/_coachmark-dragbar.scss +1 -1
- package/scss/components/Coachmark/_coachmark-overlay.scss +34 -27
- package/scss/components/Coachmark/_coachmark-tagline.scss +18 -15
- package/scss/components/Coachmark/_coachmark.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +17 -17
- package/scss/components/CoachmarkButton/_coachmark-button.scss +1 -1
- package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +1 -1
- package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +5 -5
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +4 -4
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +11 -11
- package/scss/components/ComboButton/_combo-button.scss +13 -9
- package/scss/components/ConditionBuilder/_condition-builder.scss +11 -12
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +10 -10
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -30
- package/scss/components/CreateFullPage/_carbon-imports.scss +6 -6
- package/scss/components/CreateFullPage/_create-full-page.scss +36 -26
- package/scss/components/CreateInfluencer/_carbon-imports.scss +1 -1
- package/scss/components/CreateInfluencer/_create-influencer.scss +5 -2
- package/scss/components/CreateModal/_carbon-imports.scss +3 -3
- package/scss/components/CreateModal/_create-modal.scss +15 -14
- package/scss/components/CreateSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/CreateSidePanel/_create-side-panel.scss +5 -5
- package/scss/components/CreateTearsheet/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +22 -20
- package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +8 -8
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +33 -32
- package/scss/components/Datagrid/_datagrid.scss +12 -8
- package/scss/components/Datagrid/styles/_datagrid.scss +135 -120
- package/scss/components/Datagrid/styles/_draggableElement.scss +11 -11
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +1 -1
- package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -3
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +7 -7
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -13
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +62 -63
- package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -16
- package/scss/components/Datagrid/styles/_useNestedTable.scss +10 -7
- package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -6
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +6 -6
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +11 -11
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +9 -9
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +29 -29
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +10 -9
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +6 -8
- package/scss/components/DecoratorBase/_decorator-base.scss +11 -11
- package/scss/components/DelimitedList/_delimited-list.scss +1 -1
- package/scss/components/DescriptionList/_description-list.scss +9 -9
- package/scss/components/EditInPlace/_carbon-imports.scss +2 -2
- package/scss/components/EditInPlace/_edit-in-place.scss +8 -7
- package/scss/components/EditSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/EditSidePanel/_edit-side-panel.scss +4 -4
- package/scss/components/EditTearsheet/_carbon-imports.scss +9 -0
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +20 -21
- package/scss/components/EditTearsheet/_index-with-carbon.scss +9 -0
- package/scss/components/EmptyStates/_carbon-imports.scss +2 -2
- package/scss/components/EmptyStates/_empty-state.scss +12 -10
- package/scss/components/ExampleComponent/_carbon-imports.scss +1 -1
- package/scss/components/ExportModal/_carbon-imports.scss +6 -6
- package/scss/components/ExportModal/_export-modal.scss +6 -6
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-group.scss +4 -6
- package/scss/components/FilterPanel/_filter-panel-label.scss +1 -1
- package/scss/components/FilterPanel/_filter-panel-search.scss +8 -6
- package/scss/components/FilterPanel/_filter-panel.scss +1 -2
- package/scss/components/FilterSummary/_filter-summary.scss +9 -9
- package/scss/components/FullPageError/_full-page-error.scss +8 -9
- package/scss/components/GetStartedCard/_get-started-card.scss +12 -14
- package/scss/components/Guidebanner/_guidebanner.scss +37 -36
- package/scss/components/HTTPErrors/_carbon-imports.scss +1 -1
- package/scss/components/HTTPErrors/_http-errors.scss +11 -11
- package/scss/components/ImportModal/_carbon-imports.scss +4 -4
- package/scss/components/ImportModal/_import-modal.scss +12 -13
- package/scss/components/InlineTip/_inline-tip.scss +26 -25
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +43 -44
- package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +2 -2
- package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +2 -2
- package/scss/components/Nav/_nav.scss +32 -37
- package/scss/components/NonLinearReading/_non-linear-reading.scss +11 -7
- package/scss/components/NotificationsPanel/_carbon-imports.scss +3 -3
- package/scss/components/NotificationsPanel/_notifications-panel.scss +50 -40
- package/scss/components/OptionsTile/_carbon-imports.scss +1 -1
- package/scss/components/OptionsTile/_options-tile.scss +23 -25
- package/scss/components/PageHeader/_carbon-imports.scss +4 -4
- package/scss/components/PageHeader/_page-header.scss +109 -105
- package/scss/components/ProductiveCard/_productive-card.scss +11 -12
- package/scss/components/RemoveModal/_carbon-imports.scss +3 -3
- package/scss/components/RemoveModal/_remove-modal.scss +4 -4
- package/scss/components/Saving/_carbon-imports.scss +2 -2
- package/scss/components/Saving/_saving.scss +2 -2
- package/scss/components/ScrollGradient/_scroll-gradient.scss +18 -18
- package/scss/components/SidePanel/_animations.scss +78 -0
- package/scss/components/SidePanel/_carbon-imports.scss +1 -1
- package/scss/components/SidePanel/_side-panel.scss +154 -65
- package/scss/components/SimpleHeader/_simple-header.scss +3 -3
- package/scss/components/StatusIcon/_status-icon.scss +1 -1
- package/scss/components/StatusIndicator/_carbon-imports.scss +2 -2
- package/scss/components/StatusIndicator/_status-indicator.scss +11 -11
- package/scss/components/StringFormatter/_carbon-imports.scss +1 -1
- package/scss/components/StringFormatter/_string-formatter.scss +6 -7
- package/scss/components/TagOverflow/_tag-overflow.scss +14 -15
- package/scss/components/TagSet/_carbon-imports.scss +5 -5
- package/scss/components/TagSet/_tag-set.scss +13 -14
- package/scss/components/Tearsheet/_carbon-imports.scss +2 -2
- package/scss/components/Tearsheet/_tearsheet.scss +55 -41
- package/scss/components/Toolbar/_carbon-imports.scss +1 -1
- package/scss/components/Toolbar/_toolbar.scss +11 -11
- package/scss/components/TooltipTrigger/_tooltip-trigger.scss +2 -2
- package/scss/components/TruncatedList/_truncated-list.scss +8 -2
- package/scss/components/UserAvatar/_carbon-imports.scss +1 -1
- package/scss/components/UserAvatar/_user-avatar.scss +6 -16
- package/scss/components/UserProfileImage/_carbon-imports.scss +1 -1
- package/scss/components/UserProfileImage/_color-map.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +5 -4
- package/scss/components/WebTerminal/_carbon-imports.scss +2 -2
- package/scss/components/WebTerminal/_web-terminal.scss +11 -11
- package/scss/components/_index-released-only-with-carbon.scss +1 -0
- package/scss/components/_index-with-carbon.scss +1 -0
- package/scss/global/decorators/_side-panel-decorator.scss +3 -3
- package/scss/global/styles/_display-box.scss +19 -19
- package/scss/global/styles/_mixins.scss +3 -3
- package/scss/index-full-carbon.scss +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
// Standard imports.
|
|
9
9
|
@use '@carbon/styles/scss/type';
|
|
10
|
-
@use '@carbon/
|
|
10
|
+
@use '@carbon/styles/scss/components/button/tokens' as *;
|
|
11
11
|
@use '@carbon/styles/scss/spacing' as *;
|
|
12
12
|
@use '../../global/styles/project-settings' as c4p-settings;
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--saving;
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.#{$block-class}__error-icon {
|
|
21
|
-
margin-
|
|
21
|
+
margin-inline-end: $spacing-05;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.#{$block-class}__error-icon svg {
|
|
@@ -16,20 +16,20 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
|
|
16
16
|
.#{$block-class} {
|
|
17
17
|
position: relative;
|
|
18
18
|
display: flex;
|
|
19
|
-
width: inherit;
|
|
20
|
-
height: inherit;
|
|
21
19
|
align-items: stretch;
|
|
22
20
|
justify-content: stretch;
|
|
21
|
+
block-size: inherit;
|
|
22
|
+
inline-size: inherit;
|
|
23
23
|
}
|
|
24
24
|
.#{$block-class}__content {
|
|
25
25
|
overflow: auto;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
block-size: inherit;
|
|
27
|
+
inline-size: 100%;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.#{$block-class}__content-children {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
block-size: 100%;
|
|
32
|
+
inline-size: 100%;
|
|
33
33
|
}
|
|
34
34
|
// All gradients
|
|
35
35
|
.#{$block-class}__start-vertical,
|
|
@@ -44,29 +44,29 @@ $block-class: #{c4p-settings.$pkg-prefix}--scroll-gradient;
|
|
|
44
44
|
|
|
45
45
|
// Vertical start
|
|
46
46
|
.#{$block-class}--y-scrollable .#{$block-class}__start-vertical {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
block-size: $spacing-09;
|
|
48
|
+
inset-block-start: 0;
|
|
49
|
+
inset-inline-start: 0;
|
|
50
50
|
}
|
|
51
51
|
// Vertical end
|
|
52
52
|
.#{$block-class}--y-scrollable .#{$block-class}__end-vertical {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
block-size: $spacing-09;
|
|
54
|
+
inset-block-end: 0;
|
|
55
|
+
inset-inline-start: 0;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// Horizontal start
|
|
59
59
|
.#{$block-class}--x-scrollable .#{$block-class}__start-horizontal {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
inline-size: $spacing-09;
|
|
61
|
+
inset-block-start: 0;
|
|
62
|
+
inset-inline-start: 0;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// Horizontal end
|
|
66
66
|
.#{$block-class}--x-scrollable .#{$block-class}__end-horizontal {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
inline-size: $spacing-09;
|
|
68
|
+
inset-block-start: 0;
|
|
69
|
+
inset-inline-end: 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// Vertical start states
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2025, 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
|
+
@keyframes side-panel-entrance-reduced {
|
|
9
|
+
0% {
|
|
10
|
+
opacity: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
100% {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@keyframes side-panel-exit-reduced {
|
|
19
|
+
0% {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
100% {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes side-panel-entrance-right {
|
|
29
|
+
0% {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
32
|
+
transform: translateX(var(--panel-transform));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
transform: translateX(0);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@keyframes side-panel-entrance-left {
|
|
42
|
+
0% {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
45
|
+
transform: translateX(calc(var(--panel-transform) * -1));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
100% {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
transform: translateX(0);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes side-panel-exit-right {
|
|
55
|
+
0% {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
transform: translateX(0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
100% {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
63
|
+
transform: translateX(var(--panel-transform));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@keyframes side-panel-exit-left {
|
|
68
|
+
0% {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: translateX(0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
100% {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
76
|
+
transform: translateX(calc(var(--panel-transform) * -1));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2020,
|
|
2
|
+
// Copyright IBM Corp. 2020, 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.
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@use '../../global/styles/project-settings' as c4p-settings;
|
|
22
22
|
@use '../../global/styles/mixins' as *;
|
|
23
23
|
@use './side-panel-variables' as *;
|
|
24
|
+
@use './animations' as *;
|
|
24
25
|
|
|
25
26
|
// SidePanel uses the following IBM Products components:
|
|
26
27
|
// ActionSet
|
|
@@ -29,42 +30,53 @@
|
|
|
29
30
|
$block-class: #{c4p-settings.$pkg-prefix}--side-panel;
|
|
30
31
|
$action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
31
32
|
|
|
33
|
+
@property --panel-transform {
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 320px;
|
|
36
|
+
syntax: '<integer>';
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
@mixin setPanelSize($size: map.get($side-panel-sizes, md)) {
|
|
33
40
|
/* any value is single value list */
|
|
34
|
-
|
|
41
|
+
inline-size: list.nth($size, 1);
|
|
35
42
|
@if list.length($size) > 1 {
|
|
36
|
-
min-
|
|
43
|
+
min-inline-size: list.nth($size, 2);
|
|
37
44
|
}
|
|
38
45
|
|
|
39
|
-
max-
|
|
46
|
+
max-inline-size: 100%;
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
@mixin setDividerStyles() {
|
|
43
50
|
position: absolute;
|
|
44
|
-
bottom: 0;
|
|
45
|
-
left: 0;
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 1px;
|
|
48
51
|
background-color: $border-subtle-02;
|
|
52
|
+
block-size: 1px;
|
|
49
53
|
content: '';
|
|
54
|
+
inline-size: 100%;
|
|
55
|
+
inset-block-end: 0;
|
|
56
|
+
inset-inline-start: 0;
|
|
50
57
|
opacity: var(--#{$block-class}--scroll-animation-progress);
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
@mixin setCommonTitleStyles() {
|
|
54
61
|
display: -webkit-box;
|
|
55
62
|
overflow: hidden;
|
|
56
|
-
/* stylelint-disable-next-line carbon/layout-use -- custom css property set below */
|
|
57
|
-
padding-right: var(--#{$block-class}--title-padding-right);
|
|
58
63
|
-webkit-box-orient: vertical;
|
|
59
64
|
-webkit-line-clamp: 2;
|
|
65
|
+
/* stylelint-disable-next-line carbon/layout-use -- custom css property set below */
|
|
66
|
+
padding-inline-end: var(--#{$block-class}--title-padding-right);
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
.#{$block-class}--scrolls {
|
|
63
70
|
overflow: auto;
|
|
64
71
|
overflow-x: hidden;
|
|
72
|
+
@supports (overflow-inline: hidden) {
|
|
73
|
+
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
74
|
+
overflow-inline: hidden;
|
|
75
|
+
}
|
|
65
76
|
}
|
|
66
77
|
|
|
67
78
|
.#{$block-class} {
|
|
79
|
+
--panel-transform: 320px;
|
|
68
80
|
--#{$block-class}--title-stop: #{$spacing-05};
|
|
69
81
|
--#{$block-class}--scroll-animation-progress: 0;
|
|
70
82
|
--#{$block-class}--title-padding-right: #{$spacing-07};
|
|
@@ -72,14 +84,25 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
72
84
|
|
|
73
85
|
position: fixed;
|
|
74
86
|
z-index: utilities.z('modal');
|
|
75
|
-
top: $spacing-09;
|
|
76
87
|
display: grid;
|
|
77
|
-
height: calc(100% - 3rem);
|
|
78
88
|
box-sizing: border-box;
|
|
79
89
|
background-color: $layer-01;
|
|
90
|
+
block-size: calc(100% - 3rem);
|
|
80
91
|
color: $text-primary;
|
|
81
92
|
/* if the title does not scroll then we have a child scrolling section. */
|
|
82
93
|
grid-template-rows: auto 1fr auto; /* titles content and actions */
|
|
94
|
+
inset-block-start: $spacing-09;
|
|
95
|
+
|
|
96
|
+
transform: translateX(0);
|
|
97
|
+
transition-behavior: allow-discrete;
|
|
98
|
+
transition-duration: $duration-moderate-01;
|
|
99
|
+
transition-property: display, opacity, transform;
|
|
100
|
+
|
|
101
|
+
@starting-style {
|
|
102
|
+
opacity: 0;
|
|
103
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
104
|
+
transform: translateX(var(--panel-transform));
|
|
105
|
+
}
|
|
83
106
|
|
|
84
107
|
@each $size, $size_value in $side-panel-sizes {
|
|
85
108
|
&.#{$block-class}--#{$size} {
|
|
@@ -87,6 +110,61 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
87
110
|
}
|
|
88
111
|
}
|
|
89
112
|
|
|
113
|
+
&.#{$block-class}--open.#{$block-class}--right-placement {
|
|
114
|
+
animation: side-panel-entrance-right $duration-moderate-01
|
|
115
|
+
motion(entrance, productive) forwards;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// animation only set for older browsers that do not support `transition-behavior: allow-discrete;`
|
|
119
|
+
&.#{$block-class}--open.#{$block-class}--left-placement {
|
|
120
|
+
animation: side-panel-entrance-left $duration-moderate-01
|
|
121
|
+
motion(entrance, productive) forwards;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// animation only set for older browsers that do not support `transition-behavior: allow-discrete;`
|
|
125
|
+
&.#{$block-class}--closing.#{$block-class}--right-placement {
|
|
126
|
+
animation: side-panel-exit-right $duration-moderate-01
|
|
127
|
+
motion(exit, productive) forwards;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.#{$block-class}--closing.#{$block-class}--left-placement {
|
|
131
|
+
animation: side-panel-exit-left $duration-moderate-01
|
|
132
|
+
motion(exit, productive) forwards;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@supports (transition-behavior: allow-discrete) {
|
|
136
|
+
&.#{$block-class}--closing {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
139
|
+
transform: translateX(var(--panel-transform, 320px));
|
|
140
|
+
transition-duration: $duration-moderate-01;
|
|
141
|
+
}
|
|
142
|
+
&.#{$block-class}--closing.#{$block-class}--left-placement {
|
|
143
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
144
|
+
transform: translateX(calc(-1 * var(--panel-transform, 320px)));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
@media (prefers-reduced-motion) {
|
|
149
|
+
/* styles to apply if a user's device settings are set to reduced motion */
|
|
150
|
+
&.#{$block-class}--open {
|
|
151
|
+
animation: side-panel-entrance-reduced $duration-moderate-01
|
|
152
|
+
motion(exit, productive) forwards;
|
|
153
|
+
@starting-style {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
transform: translateX(0);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
&.#{$block-class}--closing {
|
|
159
|
+
animation: side-panel-exit-reduced $duration-moderate-01
|
|
160
|
+
motion(exit, productive) forwards;
|
|
161
|
+
@starting-style {
|
|
162
|
+
opacity: 1;
|
|
163
|
+
transform: translateX(0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
90
168
|
&.#{$block-class}--animated-title {
|
|
91
169
|
grid-template-rows: 1fr auto; /* titles and content (actions are external to this element) */
|
|
92
170
|
}
|
|
@@ -101,21 +179,22 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
101
179
|
}
|
|
102
180
|
|
|
103
181
|
.#{$block-class}__actions-container {
|
|
104
|
-
|
|
182
|
+
inline-size: 100%;
|
|
105
183
|
}
|
|
106
184
|
&.#{$block-class}--right-placement {
|
|
107
|
-
|
|
108
|
-
|
|
185
|
+
border-inline-start: 1px solid $border-subtle-02;
|
|
186
|
+
inset-inline-end: 0;
|
|
109
187
|
}
|
|
110
188
|
&.#{$block-class}--left-placement {
|
|
111
|
-
|
|
112
|
-
|
|
189
|
+
border-inline-end: 1px solid $border-subtle-02;
|
|
190
|
+
inset-inline-start: 0;
|
|
113
191
|
}
|
|
114
192
|
&.#{$block-class}.#{$block-class}--has-slug,
|
|
115
193
|
&.#{$block-class}.#{$block-class}--has-ai-label,
|
|
116
194
|
&.#{$block-class}.#{$block-class}--has-decorator {
|
|
117
195
|
border-color: transparent;
|
|
118
|
-
box-shadow:
|
|
196
|
+
box-shadow:
|
|
197
|
+
inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
119
198
|
0 4px 10px 2px $ai-drop-shadow;
|
|
120
199
|
}
|
|
121
200
|
|
|
@@ -124,15 +203,17 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
124
203
|
|
|
125
204
|
position: sticky;
|
|
126
205
|
z-index: 4;
|
|
127
|
-
/* stylelint-disable-next-line carbon/layout-use */
|
|
128
|
-
top: calc(-1px * var(--#{$block-class}--scroll-animation-distance));
|
|
129
|
-
min-height: $spacing-08;
|
|
130
206
|
padding: $spacing-05;
|
|
131
|
-
padding-bottom: 0;
|
|
132
207
|
background-color: $layer-01;
|
|
208
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
209
|
+
inset-block-start: calc(
|
|
210
|
+
-1px * var(--#{$block-class}--scroll-animation-distance)
|
|
211
|
+
);
|
|
212
|
+
min-block-size: $spacing-08;
|
|
213
|
+
padding-block-end: 0;
|
|
133
214
|
|
|
134
215
|
&.#{$block-class}__header--has-title {
|
|
135
|
-
min-
|
|
216
|
+
min-block-size: auto;
|
|
136
217
|
}
|
|
137
218
|
|
|
138
219
|
&:has(.#{$block-class}__subtitle-text),
|
|
@@ -142,14 +223,14 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
142
223
|
|
|
143
224
|
&:has(.#{$block-class}__navigation-back-button),
|
|
144
225
|
&.#{$block-class}__header--has-navigation-back {
|
|
145
|
-
padding-
|
|
226
|
+
padding-block-start: $spacing-07;
|
|
146
227
|
}
|
|
147
228
|
|
|
148
229
|
&:has(
|
|
149
230
|
.#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
|
|
150
231
|
),
|
|
151
232
|
&.#{$block-class}__header--has-navigation-back.#{c4p-settings.$carbon-prefix}--btn--md {
|
|
152
|
-
padding-
|
|
233
|
+
padding-block-start: $spacing-08;
|
|
153
234
|
}
|
|
154
235
|
|
|
155
236
|
/* stylelint-disable-next-line max-nesting-depth */
|
|
@@ -161,7 +242,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
161
242
|
|
|
162
243
|
&.#{$block-class}__header--no-title-animation {
|
|
163
244
|
position: relative;
|
|
164
|
-
|
|
245
|
+
inset-block-start: 0;
|
|
165
246
|
}
|
|
166
247
|
|
|
167
248
|
&.#{$block-class}__header--no-title-animation::before {
|
|
@@ -170,26 +251,26 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
170
251
|
|
|
171
252
|
&.#{$block-class}__header--reduced-motion {
|
|
172
253
|
z-index: 5;
|
|
173
|
-
border-
|
|
174
|
-
margin-
|
|
254
|
+
border-block-end: 1px solid $border-subtle-02;
|
|
255
|
+
margin-block-end: $spacing-05;
|
|
175
256
|
}
|
|
176
257
|
|
|
177
258
|
&.#{$block-class}__header--reduced-motion.#{$block-class}__header--no-title-animation {
|
|
178
|
-
border-
|
|
179
|
-
margin-
|
|
259
|
+
border-block-end: 0;
|
|
260
|
+
margin-block-end: 0;
|
|
180
261
|
}
|
|
181
262
|
|
|
182
263
|
&.#{$block-class}__header--on-detail-step
|
|
183
264
|
.#{$block-class}__navigation-back-button.#{c4p-settings.$carbon-prefix}--btn--md
|
|
184
265
|
~ .#{$block-class}__collapsed-title-text {
|
|
185
|
-
|
|
266
|
+
inset-block-start: $spacing-06;
|
|
186
267
|
}
|
|
187
268
|
|
|
188
269
|
&.#{$block-class}__header--on-detail-step:not(
|
|
189
270
|
.#{$block-class}__header--has-title
|
|
190
271
|
) {
|
|
191
|
-
height: calc(#{$spacing-08} + #{$spacing-02});
|
|
192
272
|
padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
|
|
273
|
+
block-size: calc(#{$spacing-08} + #{$spacing-02});
|
|
193
274
|
}
|
|
194
275
|
|
|
195
276
|
&:not(.#{$block-class}__header--has-title)::before {
|
|
@@ -222,13 +303,13 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
222
303
|
.#{$block-class}__title {
|
|
223
304
|
position: sticky;
|
|
224
305
|
z-index: 4;
|
|
225
|
-
|
|
226
|
-
top: var(--#{$block-class}--title-stop);
|
|
306
|
+
background-color: $layer-01;
|
|
227
307
|
|
|
228
308
|
/* border-bottom used instead of padding which wrapped text shows through */
|
|
229
|
-
border-
|
|
309
|
+
border-block-end: var(--#{$block-class}--title-padding-bottom) solid
|
|
230
310
|
transparent;
|
|
231
|
-
|
|
311
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
|
312
|
+
inset-block-start: var(--#{$block-class}--title-stop);
|
|
232
313
|
}
|
|
233
314
|
|
|
234
315
|
.#{$block-class}__title-text {
|
|
@@ -255,8 +336,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
255
336
|
@include type.type-style('label-01');
|
|
256
337
|
|
|
257
338
|
overflow: hidden;
|
|
258
|
-
padding-right: var(--#{$block-class}--title-padding-right);
|
|
259
339
|
opacity: calc(1 - var(--#{$block-class}--scroll-animation-progress));
|
|
340
|
+
padding-inline-end: var(--#{$block-class}--title-padding-right);
|
|
260
341
|
text-overflow: ellipsis;
|
|
261
342
|
white-space: nowrap;
|
|
262
343
|
}
|
|
@@ -266,7 +347,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
266
347
|
@include setCommonTitleStyles();
|
|
267
348
|
|
|
268
349
|
position: absolute;
|
|
269
|
-
|
|
350
|
+
inset-block-start: 0;
|
|
270
351
|
opacity: var(--#{$block-class}--scroll-animation-progress);
|
|
271
352
|
}
|
|
272
353
|
|
|
@@ -283,12 +364,13 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
283
364
|
@include type.type-style('body-compact-01');
|
|
284
365
|
|
|
285
366
|
overflow: hidden;
|
|
286
|
-
padding-right: var(--#{$block-class}--title-padding-right);
|
|
287
|
-
padding-bottom: $spacing-05;
|
|
288
367
|
|
|
289
368
|
-webkit-box-orient: vertical;
|
|
290
369
|
-webkit-line-clamp: 3;
|
|
370
|
+
line-clamp: 3;
|
|
291
371
|
opacity: calc(1 - var(--#{$block-class}--scroll-animation-progress));
|
|
372
|
+
padding-block-end: $spacing-05;
|
|
373
|
+
padding-inline-end: var(--#{$block-class}--title-padding-right);
|
|
292
374
|
}
|
|
293
375
|
|
|
294
376
|
.#{$block-class}__header--no-title-animation .#{$block-class}__subtitle-text {
|
|
@@ -297,22 +379,21 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
297
379
|
}
|
|
298
380
|
|
|
299
381
|
.#{$block-class}__title-text + .#{$block-class}__subtitle-text {
|
|
300
|
-
padding-
|
|
382
|
+
padding-block-start: $spacing-05;
|
|
301
383
|
}
|
|
302
384
|
.#{$block-class}__inner-content {
|
|
303
|
-
padding: $spacing-05;
|
|
304
|
-
padding-top: 0;
|
|
385
|
+
padding: 0 $spacing-05 $spacing-05;
|
|
305
386
|
}
|
|
306
387
|
|
|
307
388
|
.#{$block-class}__inner-content--no-animated-title {
|
|
308
|
-
padding-
|
|
389
|
+
padding-block-start: $spacing-05;
|
|
309
390
|
}
|
|
310
391
|
|
|
311
392
|
.#{$block-class}__header:has(.#{$block-class}__action-toolbar)
|
|
312
393
|
+ .#{$block-class}__inner-content,
|
|
313
394
|
.#{$block-class}__header--has-action-toolbar
|
|
314
395
|
+ .#{$block-class}__inner-content {
|
|
315
|
-
padding-
|
|
396
|
+
padding-block-start: $spacing-03;
|
|
316
397
|
}
|
|
317
398
|
|
|
318
399
|
&.#{$block-class}--has-slug .#{$block-class}--scrolls,
|
|
@@ -320,7 +401,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
320
401
|
&.#{$block-class}--has-decorator .#{$block-class}--scrolls {
|
|
321
402
|
@include utilities.ai-popover-gradient('default', 0, 'layer');
|
|
322
403
|
|
|
323
|
-
box-shadow:
|
|
404
|
+
box-shadow:
|
|
405
|
+
inset 0 -80px 70px -65px $ai-inner-shadow,
|
|
324
406
|
0 4px 10px 2px $ai-drop-shadow;
|
|
325
407
|
}
|
|
326
408
|
|
|
@@ -334,26 +416,26 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
334
416
|
}
|
|
335
417
|
|
|
336
418
|
.#{$block-class}__action-toolbar-leading-button {
|
|
337
|
-
margin-
|
|
419
|
+
margin-inline-end: $spacing-03;
|
|
338
420
|
}
|
|
339
421
|
|
|
340
422
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button {
|
|
341
423
|
position: fixed;
|
|
342
424
|
z-index: 5;
|
|
343
|
-
|
|
344
|
-
|
|
425
|
+
inset-block-start: 0;
|
|
426
|
+
inset-inline-start: 0;
|
|
345
427
|
}
|
|
346
428
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__navigation-back-button,
|
|
347
429
|
.#{c4p-settings.$carbon-prefix}--btn.#{$block-class}__close-button {
|
|
348
430
|
display: flex;
|
|
349
|
-
width: $spacing-07;
|
|
350
|
-
height: $spacing-07;
|
|
351
431
|
align-items: center;
|
|
352
432
|
justify-content: center;
|
|
353
433
|
padding: 0;
|
|
354
434
|
/* stylelint-disable-next-line declaration-property-value-disallowed-list */
|
|
355
435
|
background-color: unset;
|
|
436
|
+
block-size: $spacing-07;
|
|
356
437
|
color: $text-primary;
|
|
438
|
+
inline-size: $spacing-07;
|
|
357
439
|
min-block-size: 0;
|
|
358
440
|
|
|
359
441
|
/* stylelint-disable-next-line max-nesting-depth */
|
|
@@ -367,8 +449,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
367
449
|
|
|
368
450
|
.#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__navigation-back-button,
|
|
369
451
|
.#{c4p-settings.$carbon-prefix}--btn--md.#{$block-class}__close-button {
|
|
370
|
-
|
|
371
|
-
|
|
452
|
+
block-size: $spacing-08;
|
|
453
|
+
inline-size: $spacing-08;
|
|
372
454
|
}
|
|
373
455
|
|
|
374
456
|
.#{$block-class}__slug-and-close,
|
|
@@ -376,9 +458,9 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
376
458
|
.#{$block-class}__decorator-and-close {
|
|
377
459
|
position: absolute;
|
|
378
460
|
z-index: 10; /* must be higher than title container border bottom */
|
|
379
|
-
top: 0;
|
|
380
|
-
right: 0;
|
|
381
461
|
display: flex;
|
|
462
|
+
inset-block-start: 0;
|
|
463
|
+
inset-inline-end: 0;
|
|
382
464
|
|
|
383
465
|
/* stylelint-disable-next-line max-nesting-depth */
|
|
384
466
|
@media (prefers-reduced-motion) {
|
|
@@ -388,20 +470,20 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
388
470
|
|
|
389
471
|
.#{$block-class}__actions-container {
|
|
390
472
|
position: sticky; // stick to bottom
|
|
391
|
-
bottom: 0;
|
|
392
|
-
border-top: 1px solid $border-subtle-02;
|
|
393
473
|
background-color: $layer-01;
|
|
474
|
+
border-block-start: 1px solid $border-subtle-02;
|
|
475
|
+
inset-block-end: 0;
|
|
394
476
|
|
|
395
477
|
&.#{$action-set-block-class}--2xl {
|
|
396
478
|
.#{$action-set-block-class}__action-button {
|
|
397
|
-
|
|
398
|
-
max-
|
|
479
|
+
inline-size: 100%;
|
|
480
|
+
max-inline-size: 100%;
|
|
399
481
|
}
|
|
400
482
|
|
|
401
483
|
@include breakpoint(md) {
|
|
402
484
|
flex-direction: row;
|
|
403
485
|
.#{$action-set-block-class}__action-button {
|
|
404
|
-
|
|
486
|
+
inline-size: 25%;
|
|
405
487
|
}
|
|
406
488
|
}
|
|
407
489
|
|
|
@@ -410,7 +492,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
410
492
|
|
|
411
493
|
.#{$action-set-block-class}__action-button.#{$action-set-block-class}__action-button {
|
|
412
494
|
// extra class needed to override default size
|
|
413
|
-
|
|
495
|
+
block-size: var(--#{$block-class}--actions-height);
|
|
414
496
|
}
|
|
415
497
|
}
|
|
416
498
|
&.#{$block-class}.#{$block-class}--xs
|
|
@@ -455,13 +537,13 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
455
537
|
.#{$block-class}__visually-hidden {
|
|
456
538
|
position: absolute;
|
|
457
539
|
overflow: hidden;
|
|
458
|
-
width: 1px;
|
|
459
|
-
height: 1px;
|
|
460
540
|
padding: 0;
|
|
461
541
|
border: 0;
|
|
462
542
|
// stylelint-disable-next-line carbon/layout-use
|
|
463
543
|
margin: -1px;
|
|
544
|
+
block-size: 1px;
|
|
464
545
|
clip: rect(0, 0, 0, 0);
|
|
546
|
+
inline-size: 1px;
|
|
465
547
|
visibility: inherit;
|
|
466
548
|
white-space: nowrap;
|
|
467
549
|
}
|
|
@@ -469,12 +551,19 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
|
469
551
|
.#{$block-class}__overlay {
|
|
470
552
|
position: fixed;
|
|
471
553
|
z-index: utilities.z('overlay');
|
|
472
|
-
|
|
473
|
-
|
|
554
|
+
animation: side-panel-overlay-entrance $duration-moderate-01
|
|
555
|
+
motion(entrance, productive) forwards;
|
|
474
556
|
background-color: $overlay;
|
|
557
|
+
block-size: 100%;
|
|
558
|
+
inline-size: 100%;
|
|
475
559
|
inset: 0;
|
|
476
560
|
}
|
|
477
561
|
|
|
562
|
+
.#{$block-class}__overlay--closing {
|
|
563
|
+
animation: side-panel-overlay-exit $duration-moderate-01
|
|
564
|
+
motion(exit, productive) forwards;
|
|
565
|
+
}
|
|
566
|
+
|
|
478
567
|
/* stylelint-disable-next-line carbon/theme-token-use */
|
|
479
568
|
.#{$block-class}--has-slug + .#{$block-class}__overlay,
|
|
480
569
|
.#{$block-class}--has-ai-label + .#{$block-class}__overlay,
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
$block-class: #{$pkg-prefix}--simple-header;
|
|
15
15
|
|
|
16
16
|
.#{$block-class} {
|
|
17
|
-
width: 100%;
|
|
18
17
|
padding: $spacing-04 $spacing-07;
|
|
19
|
-
border-bottom: 1px solid $border-subtle-01;
|
|
20
18
|
background-color: $layer-01;
|
|
19
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
20
|
+
inline-size: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.#{$block-class}__title {
|
|
@@ -26,7 +26,7 @@ $block-class: #{$pkg-prefix}--simple-header;
|
|
|
26
26
|
|
|
27
27
|
.#{$block-class}__breadcrumbs + .#{$block-class}__title {
|
|
28
28
|
// add margin top to the title if breadcrumbs exist
|
|
29
|
-
margin-
|
|
29
|
+
margin-block-start: $spacing-02;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.#{$block-class}__breadcrumbs .#{$carbon-prefix}--breadcrumb-item,
|