@rossigee/clarity-ui 18.2.1-fixed
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/README.md +29 -0
- package/STYLES.md +1796 -0
- package/accordion/_accordion.clarity.scss +81 -0
- package/accordion/_properties.accordion.scss +45 -0
- package/accordion/_variables.accordion.scss +91 -0
- package/button/_buttons.clarity.scss +374 -0
- package/button/_mixins.buttons.scss +232 -0
- package/button/_properties.buttons.scss +325 -0
- package/button/_properties.toggles.scss +35 -0
- package/button/_variables.buttons.scss +843 -0
- package/button/_variables.toggles.scss +41 -0
- package/button/button-group/_button-group.clarity.scss +193 -0
- package/clr-ui.css +31728 -0
- package/clr-ui.css.map +1 -0
- package/clr-ui.min.css +52 -0
- package/clr-ui.min.css.map +1 -0
- package/collapsible-panel/_mixins.collapsible-panel.scss +189 -0
- package/collapsible-panel/_properties.collapsible-panel.scss +42 -0
- package/collapsible-panel/_variables.collapsible-panel.scss +40 -0
- package/data/_mixins.tables.scss +111 -0
- package/data/_properties.tables.scss +62 -0
- package/data/_tables.clarity.scss +120 -0
- package/data/_variables.tables.scss +42 -0
- package/data/datagrid/_datagrid.clarity.scss +1753 -0
- package/data/datagrid/_mixins.datagrid.scss +102 -0
- package/data/datagrid/_properties.datagrid.scss +90 -0
- package/data/datagrid/_variables.datagrid.scss +96 -0
- package/data/stack-view/_properties.stack-view.scss +50 -0
- package/data/stack-view/_stack-view.clarity.scss +267 -0
- package/data/stack-view/_variables.stack-view.scss +32 -0
- package/data/tree-view/_properties.tree-view.scss +41 -0
- package/data/tree-view/_tree-view.clarity.scss +281 -0
- package/data/tree-view/_variables.tree-view.scss +51 -0
- package/emphasis/alert/_alert.clarity.scss +467 -0
- package/emphasis/alert/_mixins.alert.scss +96 -0
- package/emphasis/alert/_properties.alert.scss +183 -0
- package/emphasis/alert/_variables.alert.scss +502 -0
- package/emphasis/badge/_badges.clarity.scss +61 -0
- package/emphasis/badge/_mixins.bades.scss +34 -0
- package/emphasis/badge/_properties.badges.scss +82 -0
- package/emphasis/badge/_variables.badges.scss +160 -0
- package/emphasis/label/_labels.clarity.scss +175 -0
- package/emphasis/label/_mixins.label.scss +76 -0
- package/emphasis/label/_properties.label.scss +105 -0
- package/emphasis/label/_variables.label.scss +181 -0
- package/forms/combobox/_combobox.clarity.scss +322 -0
- package/forms/combobox/_properties.combobox.scss +45 -0
- package/forms/combobox/_variables.combobox.scss +32 -0
- package/forms/datepicker/_datepicker.clarity.scss +259 -0
- package/forms/datepicker/_mixins.datepicker.scss +90 -0
- package/forms/datepicker/_properties.datepicker.scss +46 -0
- package/forms/datepicker/_variables.datepicker.scss +74 -0
- package/forms/styles/_checkbox.clarity.scss +193 -0
- package/forms/styles/_containers.clarity.scss +228 -0
- package/forms/styles/_datalist.clarity.scss +47 -0
- package/forms/styles/_file-input.clarity.scss +134 -0
- package/forms/styles/_file.clarity.scss +52 -0
- package/forms/styles/_form.clarity.scss +87 -0
- package/forms/styles/_input-group.clarity.scss +118 -0
- package/forms/styles/_input.clarity.scss +78 -0
- package/forms/styles/_mixins.forms.scss +173 -0
- package/forms/styles/_number-input.clarity.scss +58 -0
- package/forms/styles/_password.clarity.scss +26 -0
- package/forms/styles/_properties.forms.scss +121 -0
- package/forms/styles/_radio.clarity.scss +120 -0
- package/forms/styles/_range.clarity.scss +124 -0
- package/forms/styles/_select.clarity.scss +178 -0
- package/forms/styles/_textarea.clarity.scss +77 -0
- package/forms/styles/_toggles.clarity.scss +209 -0
- package/forms/styles/_variables.forms.scss +128 -0
- package/icon/icon.component.scss +242 -0
- package/image/_icons.clarity.scss +101 -0
- package/image/_images.clarity.scss +42 -0
- package/image/_mixins.images.scss +11 -0
- package/layout/_card.clarity.scss +311 -0
- package/layout/_login.clarity.scss +240 -0
- package/layout/_properties.card.scss +36 -0
- package/layout/_properties.login.scss +32 -0
- package/layout/_variables.card.scss +23 -0
- package/layout/_variables.login.scss +22 -0
- package/layout/breadcrumbs/_breadcrumbs.clarity.scss +60 -0
- package/layout/breadcrumbs/_properties.breadcrumbs.scss +18 -0
- package/layout/breadcrumbs/_variables.breadcrumbs.scss +11 -0
- package/layout/grid/_grid.scss +23 -0
- package/layout/grid/grid/_grid.scss +39 -0
- package/layout/grid/mixins/_breakpoint.scss +83 -0
- package/layout/grid/mixins/_clearfix.scss +13 -0
- package/layout/grid/mixins/_grid-framework.scss +91 -0
- package/layout/grid/mixins/_grid.scss +39 -0
- package/layout/grid/utilities/_align.scss +30 -0
- package/layout/grid/utilities/_clearfix.scss +12 -0
- package/layout/grid/utilities/_display.scss +18 -0
- package/layout/grid/utilities/_flex.scss +222 -0
- package/layout/grid/utilities/_float.scss +26 -0
- package/layout/grid/utilities/_visibility.scss +60 -0
- package/layout/main-container/_layout.clarity.scss +87 -0
- package/layout/main-container/_properties.header.scss +39 -0
- package/layout/main-container/_variables.header.scss +32 -0
- package/layout/nav/_header.clarity.scss +40 -0
- package/layout/nav/_links.clarity.scss +84 -0
- package/layout/nav/_mixins.header.scss +332 -0
- package/layout/nav/_mixins.responsive-nav.scss +75 -0
- package/layout/nav/_nav.clarity.scss +100 -0
- package/layout/nav/_properties.nav.scss +27 -0
- package/layout/nav/_properties.responsive-nav.scss +23 -0
- package/layout/nav/_properties.subnav.scss +19 -0
- package/layout/nav/_responsive-nav.clarity.scss +488 -0
- package/layout/nav/_subnav.clarity.scss +48 -0
- package/layout/nav/_variables.nav.scss +13 -0
- package/layout/nav/_variables.responsive-nav.scss +28 -0
- package/layout/nav/_variables.subnav.scss +21 -0
- package/layout/tabs/_mixins.tabs.scss +41 -0
- package/layout/tabs/_properties.tabs.scss +25 -0
- package/layout/tabs/_tabs.clarity.scss +110 -0
- package/layout/tabs/_variables.tabs.scss +17 -0
- package/layout/vertical-nav/_mixins.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_properties.vertical-nav.scss +73 -0
- package/layout/vertical-nav/_variables.vertical-nav.scss +52 -0
- package/layout/vertical-nav/_vertical-nav.clarity.scss +469 -0
- package/main.scss +14 -0
- package/modal/_modal.clarity.scss +362 -0
- package/modal/_properties.modal.scss +45 -0
- package/modal/_variables.modal.scss +38 -0
- package/package.json +15 -0
- package/popover/common/_popover.clarity.scss +28 -0
- package/popover/dropdown/_dropdown.clarity.scss +326 -0
- package/popover/dropdown/_menu-mixins.clarity.scss +132 -0
- package/popover/dropdown/_properties.dropdown.scss +50 -0
- package/popover/dropdown/_variables.dropdown.scss +36 -0
- package/popover/signpost/_properties.signpost.scss +34 -0
- package/popover/signpost/_signposts.clarity.scss +414 -0
- package/popover/signpost/_variables.signpost.scss +21 -0
- package/popover/tooltip/_mixins.tooltip.scss +186 -0
- package/popover/tooltip/_properties.tooltip.scss +28 -0
- package/popover/tooltip/_tooltips.clarity.scss +122 -0
- package/popover/tooltip/_variables.tooltip.scss +20 -0
- package/progress/progress-bars/_progress-bars.clarity.scss +616 -0
- package/progress/progress-bars/_properties.progress-bars.scss +24 -0
- package/progress/progress-bars/_variables.progress-bars.scss +15 -0
- package/progress/progress-bars/utils/_mixins.clarity.scss +18 -0
- package/progress/spinner/_mixins.spinner.scss +30 -0
- package/progress/spinner/_properties.spinner.scss +37 -0
- package/progress/spinner/_spinner.clarity.scss +148 -0
- package/progress/spinner/_variables.spinner.scss +25 -0
- package/stepper/_properties.stepper.scss +29 -0
- package/stepper/_stepper.clarity.scss +184 -0
- package/stepper/_variables.stepper.scss +13 -0
- package/styles/_a11y.scss +14 -0
- package/styles/_close.clarity.scss +60 -0
- package/styles/_components.clarity.scss +183 -0
- package/styles/_mixins.scss +478 -0
- package/styles/_normalize.scss +292 -0
- package/styles/_reboot.clarity.scss +374 -0
- package/styles/_variables.clarity.scss +139 -0
- package/styles/core/base/base.element.scss +97 -0
- package/styles/core/global.scss +12 -0
- package/styles/core/layout/_alignments.scss +18 -0
- package/styles/core/layout/_container.scss +29 -0
- package/styles/core/layout/_display.scss +58 -0
- package/styles/core/layout/_optimize.scss +60 -0
- package/styles/core/layout/_shadow-dom.scss +47 -0
- package/styles/core/layout/_spacing.scss +31 -0
- package/styles/core/layout/_type-grid.scss +66 -0
- package/styles/core/layout/_type-horizontal.scss +33 -0
- package/styles/core/layout/_type-vertical.scss +26 -0
- package/styles/core/layout/mixins/_mixins.alignment.scss +35 -0
- package/styles/core/layout/mixins/_mixins.display.scss +23 -0
- package/styles/core/layout/mixins/_mixins.grid.scss +105 -0
- package/styles/core/layout/mixins/_mixins.scss +106 -0
- package/styles/core/layout/mixins/_mixins.shadow-dom.scss +106 -0
- package/styles/core/layout/mixins/_mixins.type-horizontal.scss +113 -0
- package/styles/core/layout/mixins/_mixins.type-vertical.scss +108 -0
- package/styles/core/module.layout.scss +22 -0
- package/styles/core/module.reset.scss +48 -0
- package/styles/core/module.typography.scss +9 -0
- package/styles/core/theme.dark.scss +266 -0
- package/styles/core/theme.high-contrast.scss +42 -0
- package/styles/core/theme.low-motion.scss +20 -0
- package/styles/core/tokens/_alias-interaction.scss +59 -0
- package/styles/core/tokens/_alias-object-background.scss +14 -0
- package/styles/core/tokens/_alias-object-border.scss +21 -0
- package/styles/core/tokens/_alias-object-container.scss +20 -0
- package/styles/core/tokens/_alias-object-opacity.scss +15 -0
- package/styles/core/tokens/_alias-object-shadow.scss +17 -0
- package/styles/core/tokens/_alias-status.scss +34 -0
- package/styles/core/tokens/_alias-typography.scss +101 -0
- package/styles/core/tokens/_alias-utility.scss +38 -0
- package/styles/core/tokens/_alias-viz-colors.scss +170 -0
- package/styles/core/tokens/_global-animation.scss +32 -0
- package/styles/core/tokens/_global-colors.scss +249 -0
- package/styles/core/tokens/_global-space.scss +52 -0
- package/styles/core/tokens/_internal-scale.scss +14 -0
- package/styles/core/tokens/_properties.tokens.scss +21 -0
- package/styles/core/tokens/_variables.tokens.scss +770 -0
- package/styles/core/typography/_legacy-typography.scss +328 -0
- package/styles/core/typography/_mixins.typography.scss +18 -0
- package/styles/core/typography/_typography.scss +321 -0
- package/styles/variables/_properties.density.scss +223 -0
- package/styles/variables/_properties.global.scss +51 -0
- package/styles/variables/_properties.layout.scss +21 -0
- package/styles/variables/_properties.scss +11 -0
- package/styles/variables/_properties.typography.scss +164 -0
- package/styles/variables/_variables.density.scss +114 -0
- package/styles/variables/_variables.global.scss +82 -0
- package/styles/variables/_variables.layout.scss +37 -0
- package/styles/variables/_variables.scss +11 -0
- package/styles/variables/_variables.typography.scss +156 -0
- package/timeline/_properties.timeline.scss +38 -0
- package/timeline/_timeline.clarity.scss +172 -0
- package/timeline/_variables.timeline.scss +29 -0
- package/typography/_code.scss +36 -0
- package/typography/_font-metropolis.scss +45 -0
- package/typography/_lists.scss +81 -0
- package/typography/_typography.scss +322 -0
- package/utils/animations/_animations.clarity.scss +44 -0
- package/utils/animations/_mixins.animations.scss +33 -0
- package/wizard/_properties.wizard.scss +53 -0
- package/wizard/_variables.wizard.scss +58 -0
- package/wizard/_wizard.clarity.scss +688 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../../styles/mixins';
|
|
9
|
+
@use '../../popover/dropdown/menu-mixins.clarity';
|
|
10
|
+
@use '../variables.tables' as tables-variables;
|
|
11
|
+
@use 'variables.datagrid' as datagrid-variables;
|
|
12
|
+
@use '../../styles/variables/variables.density' as density;
|
|
13
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
14
|
+
|
|
15
|
+
@mixin clr-datagrid-header-bg {
|
|
16
|
+
background-color: tables-variables.$clr-thead-bgcolor;
|
|
17
|
+
}
|
|
18
|
+
@mixin clr-datagrid-popover-shadows {
|
|
19
|
+
box-shadow: datagrid-variables.$clr-datagrid-popovers-box-shadow;
|
|
20
|
+
}
|
|
21
|
+
@mixin datagrid-action-overflow-appearance {
|
|
22
|
+
position: relative;
|
|
23
|
+
background: datagrid-variables.$clr-datagrid-popover-bg-color;
|
|
24
|
+
padding: density.$clr-base-vertical-offset-m density.$clr-base-horizontal-offset-m;
|
|
25
|
+
margin-left: tokens.$cds-global-space-4;
|
|
26
|
+
border-style: solid;
|
|
27
|
+
border-width: tokens.$cds-alias-object-border-width-100;
|
|
28
|
+
border-color: datagrid-variables.$clr-datagrid-popover-border-color;
|
|
29
|
+
|
|
30
|
+
@include clr-datagrid-popover-shadows;
|
|
31
|
+
|
|
32
|
+
border-radius: density.$clr-base-border-radius-s;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
|
|
36
|
+
&::before {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 50%;
|
|
40
|
+
right: 100%;
|
|
41
|
+
|
|
42
|
+
@include mixins.equilateral(0);
|
|
43
|
+
|
|
44
|
+
margin-top: calc(-1 * datagrid-variables.$clr-datagrid-action-arrow-size);
|
|
45
|
+
border-top: datagrid-variables.$clr-datagrid-action-arrow-size solid transparent;
|
|
46
|
+
border-bottom: datagrid-variables.$clr-datagrid-action-arrow-size solid transparent;
|
|
47
|
+
border-right: datagrid-variables.$clr-datagrid-action-arrow-size solid
|
|
48
|
+
datagrid-variables.$clr-datagrid-popover-border-color;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&::after {
|
|
52
|
+
content: '';
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: 50%;
|
|
55
|
+
right: 100%;
|
|
56
|
+
|
|
57
|
+
@include mixins.equilateral(0);
|
|
58
|
+
|
|
59
|
+
margin-top: calc(-1 * datagrid-variables.$clr-datagrid-action-arrow-size + tokens.$cds-global-space-1);
|
|
60
|
+
border-top: calc(datagrid-variables.$clr-datagrid-action-arrow-size - tokens.$cds-global-space-1) solid transparent;
|
|
61
|
+
border-bottom: calc(datagrid-variables.$clr-datagrid-action-arrow-size - tokens.$cds-global-space-1) solid
|
|
62
|
+
transparent;
|
|
63
|
+
border-right: calc(datagrid-variables.$clr-datagrid-action-arrow-size - tokens.$cds-global-space-1) solid
|
|
64
|
+
datagrid-variables.$clr-datagrid-popover-bg-color;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.action-item {
|
|
68
|
+
@include menu-mixins.generate-dropdown-item();
|
|
69
|
+
@include menu-mixins.generate-dropdown-item-height();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@mixin datagrid-action-button-styles(
|
|
73
|
+
$height: tables-variables.$clr-table-cell-height,
|
|
74
|
+
$columnWidth: datagrid-variables.$clr-datagrid-fixed-column-size,
|
|
75
|
+
$iconSize: datagrid-variables.$clr-datagrid-icon-size
|
|
76
|
+
) {
|
|
77
|
+
// Calculates how much padding to set on top/bottom and left/right by dividing the height by the icon size
|
|
78
|
+
$verticalPadding: calc(($height - $iconSize) / 2);
|
|
79
|
+
$horizontalPadding: calc(($columnWidth - $iconSize) / 2);
|
|
80
|
+
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: $height;
|
|
84
|
+
padding: $verticalPadding $horizontalPadding;
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
}
|
|
87
|
+
@mixin datagrid-column-separator($position: right, $selector: 'after', $alignTop: true) {
|
|
88
|
+
&#{':' + $selector} {
|
|
89
|
+
content: '';
|
|
90
|
+
width: datagrid-variables.$clr-datagrid-column-separator-width;
|
|
91
|
+
height: datagrid-variables.$clr-datagrid-column-separator-height;
|
|
92
|
+
position: absolute;
|
|
93
|
+
#{$position}: 0;
|
|
94
|
+
background-color: tables-variables.$clr-table-border-color;
|
|
95
|
+
|
|
96
|
+
@if $alignTop == true {
|
|
97
|
+
top: tokens.$cds-global-space-3;
|
|
98
|
+
} @else {
|
|
99
|
+
align-self: center;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../../styles/mixins';
|
|
9
|
+
@use '../../styles/variables/variables';
|
|
10
|
+
@use 'variables.datagrid' as datagrid-variables;
|
|
11
|
+
@use '../../popover/dropdown/variables.dropdown' as dropdown-variables;
|
|
12
|
+
@use '../variables.tables' as tables-variables;
|
|
13
|
+
@use '../../forms/styles/variables.forms' as forms-variables;
|
|
14
|
+
@use '../../styles/variables/variables.density' as density;
|
|
15
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
16
|
+
|
|
17
|
+
@include mixins.exports('datagrid.properties') {
|
|
18
|
+
@include mixins.root-or-host() {
|
|
19
|
+
--clr-datagrid-column-separator-expandby: #{tokens.$cds-global-space-6};
|
|
20
|
+
--clr-datagrid-action-arrow-size: #{tokens.$cds-global-space-4};
|
|
21
|
+
--clr-datagrid-cell-outline-offset: calc(-1 * #{tokens.$cds-global-space-2});
|
|
22
|
+
--clr-datagrid-compact-margin-top: #{tokens.$cds-global-space-5};
|
|
23
|
+
--clr-datagrid-compact-action-bar-offset: #{mixins.baselinePx(20)};
|
|
24
|
+
|
|
25
|
+
&,
|
|
26
|
+
[clr-density] {
|
|
27
|
+
--clr-datagrid-margin-top: #{density.$clr-base-vertical-offset-l};
|
|
28
|
+
--clr-datagrid-action-bar-offset: #{density.$clr-base-vertical-offset-2xl};
|
|
29
|
+
--clr-datagrid-column-toggle-padding: 0 #{density.$clr-base-horizontal-offset-m};
|
|
30
|
+
--clr-datagrid-detail-pane-content-padding: #{density.$clr-base-vertical-offset-xl}
|
|
31
|
+
#{density.$clr-base-horizontal-offset-xl};
|
|
32
|
+
--clr-datagrid-detail-pane-close-icon-size: #{density.$clr-base-icon-size-l};
|
|
33
|
+
--clr-datagrid-filter-toggle-size: #{density.$clr-base-icon-size-s};
|
|
34
|
+
--clr-datagrid-footer-pagination-gap: #{density.$clr-base-gap-m};
|
|
35
|
+
--clr-datagrid-fixed-column-size: calc(
|
|
36
|
+
#{density.$clr-base-icon-size-s} + (#{density.$clr-base-horizontal-offset-xl} * 2)
|
|
37
|
+
);
|
|
38
|
+
--clr-datagrid-icon-size: #{density.$clr-base-icon-size-s};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&,
|
|
42
|
+
[cds-theme] {
|
|
43
|
+
--clr-datagrid-font-color: #{tokens.$cds-alias-typography-color-500};
|
|
44
|
+
--clr-datagrid-default-border-color: #{tokens.$cds-alias-object-border-color};
|
|
45
|
+
--clr-datagrid-icon-color: #{tokens.$cds-alias-object-interaction-color};
|
|
46
|
+
--clr-datagrid-row-hover-color: #{tokens.$cds-alias-object-interaction-background-hover};
|
|
47
|
+
--clr-datagrid-row-active-color: #{tokens.$cds-alias-object-interaction-background-active};
|
|
48
|
+
--clr-datagrid-action-toggle-color: #{tokens.$cds-alias-object-interaction-color-active};
|
|
49
|
+
--clr-datagrid-pagination-btn-color: #{tokens.$cds-alias-object-interaction-color};
|
|
50
|
+
--clr-datagrid-pagination-btn-disabled-color: #{tokens.$cds-alias-status-disabled};
|
|
51
|
+
--clr-datagrid-pagination-input-border-color: #{tokens.$cds-alias-object-border-color};
|
|
52
|
+
--clr-datagrid-pagination-input-border-focus-color: #{forms-variables.$clr-forms-focused-color};
|
|
53
|
+
--clr-datagrid-popover-bg-color: #{tokens.$cds-alias-object-container-background};
|
|
54
|
+
--clr-datagrid-popover-border-color: #{tokens.$cds-alias-object-border-color};
|
|
55
|
+
--clr-datagrid-popover-font-color: #{tokens.$cds-alias-typography-color-400};
|
|
56
|
+
--clr-datagrid-row-selected: #{tokens.$cds-alias-typography-color-500};
|
|
57
|
+
--clr-datagrid-row-selected-background-color: #{tokens.$cds-alias-object-interaction-background-selected};
|
|
58
|
+
--clr-datagrid-row-selected-active-background-color: var(
|
|
59
|
+
--cds-alias-object-interaction-background-selected-active
|
|
60
|
+
);
|
|
61
|
+
--clr-datagrid-row-selected-hover-background-color: var(--cds-alias-object-interaction-background-selected-hover);
|
|
62
|
+
--clr-datagrid-column-switch-header-font-color: #{tokens.$cds-alias-object-interaction-color};
|
|
63
|
+
--clr-datagrid-column-switch-header-font-hover-color: #{tokens.$cds-alias-object-interaction-color-hover};
|
|
64
|
+
--clr-datagrid-column-switch-header-font-hover-active: #{tokens.$cds-alias-object-interaction-color-active};
|
|
65
|
+
--clr-datagrid-detail-caret-icon-open-bg-color: #{tokens.$cds-alias-object-interaction-background-highlight};
|
|
66
|
+
--clr-datagrid-detail-caret-icon-open-icon-color: #{tokens.$cds-alias-object-interaction-background};
|
|
67
|
+
--clr-datagrid-loading-background: var(--cds-alias-object-container-backdrop-background);
|
|
68
|
+
--clr-datagrid-column-toggle-border-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
69
|
+
--clr-datagrid-column-toggle-fill-color: #{tokens.$cds-alias-object-opacity-0};
|
|
70
|
+
--clr-datagrid-column-toggle-text-color: #{tokens.$cds-alias-typography-color-400};
|
|
71
|
+
--clr-datagrid-column-toggle-disabled-color: var(--clr-btn-default-disabled-color);
|
|
72
|
+
--clr-datagrid-column-toggle-border-hover-color: #{tokens.$cds-alias-object-interaction-color-active};
|
|
73
|
+
--clr-datagrid-column-toggle-fill-hover-color: #{tokens.$cds-alias-object-interaction-background};
|
|
74
|
+
--clr-datagrid-column-toggle-text-hover-color: #{tokens.$cds-alias-typography-color-500};
|
|
75
|
+
--clr-datagrid-column-toggle-border-active-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
76
|
+
--clr-datagrid-column-toggle-fill-active-color: #{tokens.$cds-alias-object-opacity-0};
|
|
77
|
+
--clr-datagrid-column-toggle-text-active-color: #{tokens.$cds-alias-typography-color-400};
|
|
78
|
+
--clr-datagrid-detail-body-text-color: #{tokens.$cds-alias-typography-color-400};
|
|
79
|
+
--clr-datagrid-detail-header-title-color: #{tokens.$cds-alias-typography-color-400};
|
|
80
|
+
--clr-datagrid-detail-pane-bg-color: #{tokens.$cds-alias-object-container-background};
|
|
81
|
+
--clr-datagrid-detail-pane-open-row-bg-color: #{tokens.$cds-alias-object-interaction-background-active};
|
|
82
|
+
--clr-datagrid-detail-pane-border-color: #{tokens.$cds-alias-object-border-color};
|
|
83
|
+
--clr-datagrid-placeholder-background-color: #{tokens.$cds-alias-object-container-background};
|
|
84
|
+
--clr-datagrid-popovers-box-shadow: #{tokens.$cds-alias-object-shadow-100};
|
|
85
|
+
--clr-datagrid-column-separator-height: calc(100% - #{tokens.$cds-global-space-5});
|
|
86
|
+
--clr-datagrid-column-separator-width: #{tokens.$cds-global-space-1};
|
|
87
|
+
--clr-datagrid-column-resize-handler-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../variables.tables' as tables-variables;
|
|
9
|
+
@use '../../progress/spinner/variables.spinner' as spinner-variables;
|
|
10
|
+
@use '../../styles/variables/variables.density' as density;
|
|
11
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
12
|
+
|
|
13
|
+
// Usage: ../data/datagrid/_datagrid.clarity.scss
|
|
14
|
+
$clr-datagrid-margin-top: var(--clr-datagrid-margin-top);
|
|
15
|
+
$clr-datagrid-compact-margin-top: var(--clr-datagrid-compact-margin-top);
|
|
16
|
+
$clr-datagrid-action-bar-offset: var(--clr-datagrid-action-bar-offset);
|
|
17
|
+
$clr-datagrid-compact-action-bar-offset: var(--clr-datagrid-compact-action-bar-offset);
|
|
18
|
+
$clr-datagrid-font-color: var(--clr-datagrid-font-color) !default;
|
|
19
|
+
$clr-datagrid-default-border-color: var(--clr-datagrid-default-border-color) !default;
|
|
20
|
+
$clr-datagrid-icon-color: var(--clr-datagrid-icon-color) !default;
|
|
21
|
+
$clr-datagrid-row-hover-color: var(--clr-datagrid-row-hover-color) !default;
|
|
22
|
+
$clr-datagrid-row-active-color: var(--clr-datagrid-row-active-color) !default;
|
|
23
|
+
|
|
24
|
+
$clr-datagrid-action-toggle-color: var(--clr-datagrid-action-toggle-color) !default;
|
|
25
|
+
$clr-datagrid-pagination-btn-color: var(--clr-datagrid-pagination-btn-color) !default;
|
|
26
|
+
$clr-datagrid-pagination-btn-disabled-color: var(--clr-datagrid-pagination-btn-disabled-color) !default;
|
|
27
|
+
$clr-datagrid-pagination-input-border-color: var(--clr-datagrid-pagination-input-border-color) !default;
|
|
28
|
+
$clr-datagrid-pagination-input-border-focus-color: var(--clr-datagrid-pagination-input-border-focus-color) !default;
|
|
29
|
+
$clr-datagrid-popover-bg-color: var(--clr-datagrid-popover-bg-color) !default;
|
|
30
|
+
$clr-datagrid-popover-border-color: var(--clr-datagrid-popover-border-color) !default;
|
|
31
|
+
$clr-datagrid-popover-font-color: var(--clr-datagrid-popover-font-color) !default;
|
|
32
|
+
|
|
33
|
+
$clr-datagrid-row-selected: var(--clr-datagrid-row-selected) !default;
|
|
34
|
+
$clr-datagrid-row-selected-background-color: var(--clr-datagrid-row-selected-background-color) !default;
|
|
35
|
+
$clr-datagrid-row-selected-active-background-color: var(--clr-datagrid-row-selected-active-background-color) !default;
|
|
36
|
+
$clr-datagrid-row-selected-hover-background-color: var(--clr-datagrid-row-selected-hover-background-color) !default;
|
|
37
|
+
|
|
38
|
+
$clr-datagrid-column-switch-header-font-color: var(--clr-datagrid-column-switch-header-font-color) !default;
|
|
39
|
+
$clr-datagrid-column-switch-header-font-hover-color: var(--clr-datagrid-column-switch-header-font-hover-color) !default;
|
|
40
|
+
$clr-datagrid-column-switch-header-font-active-color: var(
|
|
41
|
+
--clr-datagrid-column-switch-header-font-active-color
|
|
42
|
+
) !default;
|
|
43
|
+
|
|
44
|
+
$clr-datagrid-detail-caret-icon-open-bg-color: var(--clr-datagrid-detail-caret-icon-open-bg-color) !default;
|
|
45
|
+
$clr-datagrid-detail-caret-icon-open-icon-color: var(--clr-datagrid-detail-caret-icon-open-icon-color) !default;
|
|
46
|
+
|
|
47
|
+
$clr-datagrid-loading-background: var(--clr-datagrid-loading-background) !default;
|
|
48
|
+
|
|
49
|
+
$clr-datagrid-column-toggle-padding: var(--clr-datagrid-column-toggle-padding) !default;
|
|
50
|
+
$clr-datagrid-column-toggle-border-color: var(--clr-datagrid-column-toggle-border-color) !default;
|
|
51
|
+
$clr-datagrid-column-toggle-fill-color: var(--clr-datagrid-column-toggle-fill-color) !default;
|
|
52
|
+
$clr-datagrid-column-toggle-text-color: var(--clr-datagrid-column-toggle-text-color) !default;
|
|
53
|
+
$clr-datagrid-column-toggle-disabled-color: var(--clr-datagrid-column-toggle-disabled-color) !default;
|
|
54
|
+
$clr-datagrid-column-toggle-border-hover-color: var(--clr-datagrid-column-toggle-border-hover-color) !default;
|
|
55
|
+
$clr-datagrid-column-toggle-fill-hover-color: var(--clr-datagrid-column-toggle-fill-hover-color) !default;
|
|
56
|
+
$clr-datagrid-column-toggle-text-hover-color: var(--clr-datagrid-column-toggle-text-hover-color) !default;
|
|
57
|
+
|
|
58
|
+
$clr-datagrid-column-toggle-border-active-color: var(--clr-datagrid-column-toggle-border-active-color) !default;
|
|
59
|
+
$clr-datagrid-column-toggle-fill-active-color: var(--clr-datagrid-column-toggle-fill-active-color) !default;
|
|
60
|
+
$clr-datagrid-column-toggle-text-active-color: var(--clr-datagrid-column-toggle-text-active-color) !default;
|
|
61
|
+
|
|
62
|
+
$clr-datagrid-detail-pane-content-padding: var(--clr-datagrid-detail-pane-content-padding) !default;
|
|
63
|
+
$clr-datagrid-detail-pane-close-icon-size: var(--clr-datagrid-detail-pane-close-icon-size) !default;
|
|
64
|
+
$clr-datagrid-detail-body-text-color: var(--clr-datagrid-detail-body-text-color) !default;
|
|
65
|
+
$clr-datagrid-detail-header-title-color: var(--clr-datagrid-detail-header-title-color) !default;
|
|
66
|
+
$clr-datagrid-detail-pane-bg-color: var(--clr-datagrid-detail-pane-bg-color) !default;
|
|
67
|
+
$clr-datagrid-detail-pane-open-row-bg-color: var(--clr-datagrid-detail-pane-open-row-bg-color) !default;
|
|
68
|
+
$clr-datagrid-detail-pane-border-color: var(--clr-datagrid-detail-pane-border-color) !default;
|
|
69
|
+
|
|
70
|
+
$clr-datagrid-placeholder-background-color: var(--clr-datagrid-placeholder-background-color) !default;
|
|
71
|
+
$clr-datagrid-popovers-box-shadow: var(--clr-datagrid-popovers-box-shadow) !default;
|
|
72
|
+
$clr-datagrid-column-separator-height: var(--clr-datagrid-column-separator-height) !default;
|
|
73
|
+
$clr-datagrid-column-separator-width: var(--clr-datagrid-column-separator-width) !default;
|
|
74
|
+
$clr-datagrid-column-resize-handler-color: var(--clr-datagrid-column-resize-handler-color) !default;
|
|
75
|
+
$clr-datagrid-filter-toggle-size: var(--clr-datagrid-filter-toggle-size) !default;
|
|
76
|
+
|
|
77
|
+
$clr-datagrid-footer-pagination-gap: var(--clr-datagrid-footer-pagination-gap) !default;
|
|
78
|
+
$clr-datagrid-fixed-column-size: var(--clr-datagrid-fixed-column-size) !default;
|
|
79
|
+
|
|
80
|
+
$clr-datagrid-cell-outline-offset: var(--clr-datagrid-cell-outline-offset);
|
|
81
|
+
$clr-datagrid-pagination-btn-disabled-opacity: 1 !default; // Leaving for backwards compatibility
|
|
82
|
+
$clr-datagrid-column-separator-expandby: var(--clr-datagrid-column-separator-expandby) !default;
|
|
83
|
+
|
|
84
|
+
$clr-datagrid-icon-size: var(--clr-datagrid-icon-size) !default;
|
|
85
|
+
$clr-datagrid-action-arrow-size: var(--clr-datagrid-action-arrow-size) !default;
|
|
86
|
+
$clr-datagrid-expandable-row-spinner-margin: calc(
|
|
87
|
+
(#{tables-variables.$clr-table-cell-height} - #{spinner-variables.$clr-spinner-small-size}) / 2
|
|
88
|
+
);
|
|
89
|
+
// @deprecated in favor of compact mode in density theme
|
|
90
|
+
// using the compact value of spinner-variables.$clr-spinner-small-size as cds-global-space-7
|
|
91
|
+
$clr-datagrid-compact-expandable-row-spinner-margin: calc(
|
|
92
|
+
(#{tables-variables.$clr-table-compact-cell-height} - #{tokens.$cds-global-space-7}) / 2
|
|
93
|
+
);
|
|
94
|
+
$clr-datagrid-compact-fixed-column-size: calc(
|
|
95
|
+
#{tokens.$cds-global-space-7} + (#{tables-variables.$clr-table-compact-horizontal-padding} * 2)
|
|
96
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use '../../styles/mixins';
|
|
9
|
+
@use '../../styles/variables/variables.density' as density;
|
|
10
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('stack-view.properties') {
|
|
13
|
+
@include mixins.root-or-host() {
|
|
14
|
+
// Border dimensions
|
|
15
|
+
--clr-stack-view-border-width: #{tokens.$cds-alias-object-border-width-100};
|
|
16
|
+
|
|
17
|
+
&,
|
|
18
|
+
& [clr-density] {
|
|
19
|
+
// Border dimensions
|
|
20
|
+
--clr-stack-view-border-radius: #{density.$clr-base-border-radius-s};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&,
|
|
24
|
+
& [cds-theme] {
|
|
25
|
+
// Border colors
|
|
26
|
+
--clr-stack-view-border-color: #{tokens.$cds-alias-object-border-color};
|
|
27
|
+
// top-left-border-color of changed stack view row
|
|
28
|
+
--clr-stack-block-changed-border-top-color: var(--clr-stack-view-border-color);
|
|
29
|
+
|
|
30
|
+
// Stack view title text color
|
|
31
|
+
--clr-stack-view-title-color: #{tokens.$cds-alias-typography-color-400};
|
|
32
|
+
|
|
33
|
+
// non expandable row background and text/icon colors
|
|
34
|
+
--clr-stack-view-row-color: #{tokens.$cds-alias-typography-color-400};
|
|
35
|
+
--clr-stack-view-row-bg-color: #{tokens.$cds-alias-object-container-background};
|
|
36
|
+
|
|
37
|
+
// expandable row background and text/icon colors
|
|
38
|
+
--clr-stack-view-expandable-row-color: #{tokens.$cds-alias-object-interaction-color};
|
|
39
|
+
--clr-stack-view-expandable-row-bg-color: #{tokens.$cds-alias-object-interaction-background};
|
|
40
|
+
--clr-stack-view-expandable-row-hover: #{tokens.$cds-alias-object-interaction-color-hover};
|
|
41
|
+
--clr-stack-view-expandable-row-bg-hover: #{tokens.$cds-alias-object-interaction-background-hover};
|
|
42
|
+
--clr-stack-view-expandable-row-active: #{tokens.$cds-alias-object-interaction-color-active};
|
|
43
|
+
--clr-stack-view-expandable-row-bg-active: #{tokens.$cds-alias-object-interaction-background-active};
|
|
44
|
+
--clr-stack-view-expanded-row-color: #{tokens.$cds-alias-object-interaction-color-selected};
|
|
45
|
+
--clr-stack-view-expanded-row-bg-color: #{tokens.$cds-alias-object-interaction-background-selected};
|
|
46
|
+
--clr-stack-view-expanded-row-bg-color-hover: #{tokens.$cds-alias-object-interaction-background-selected-hover};
|
|
47
|
+
--clr-stack-view-expanded-row-bg-color-active: #{tokens.$cds-alias-object-interaction-background-selected-active};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@use 'sass:meta';
|
|
9
|
+
@use '../../accordion/variables.accordion' as accordion-variables;
|
|
10
|
+
@use '../../image/icons.clarity';
|
|
11
|
+
@use '../../image/mixins.images' as images-mixins;
|
|
12
|
+
@use '../../styles/mixins';
|
|
13
|
+
@use 'variables.stack-view' as stack-view-variables;
|
|
14
|
+
@use '../../styles/core/tokens/variables.tokens' as tokens;
|
|
15
|
+
@use '../../styles/variables/variables.density' as density;
|
|
16
|
+
|
|
17
|
+
@include meta.load-css('properties.stack-view');
|
|
18
|
+
@include mixins.exports('stack-view.clarity') {
|
|
19
|
+
.stack-header {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: flex-end;
|
|
22
|
+
|
|
23
|
+
.stack-title {
|
|
24
|
+
display: block;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: density.$clr-base-vertical-offset-m 0;
|
|
28
|
+
color: stack-view-variables.$clr-stack-view-title-color;
|
|
29
|
+
|
|
30
|
+
@include mixins.generate-typography-token('SUBSECTION-16-EXP');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.stack-actions {
|
|
34
|
+
display: block;
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
|
|
37
|
+
.stack-action {
|
|
38
|
+
min-width: tokens.$cds-global-space-11;
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.stack-view {
|
|
45
|
+
overflow-y: auto;
|
|
46
|
+
overflow-wrap: break-word;
|
|
47
|
+
margin-top: 0;
|
|
48
|
+
border: stack-view-variables.$clr-stack-view-border-width solid stack-view-variables.$clr-stack-view-border-color;
|
|
49
|
+
border-radius: stack-view-variables.$clr-stack-view-border-radius;
|
|
50
|
+
|
|
51
|
+
dd,
|
|
52
|
+
dt {
|
|
53
|
+
// One of the caveats of using definition lists here. Browsers automatically style them in unpredictable ways... :(
|
|
54
|
+
-webkit-margin-start: 0;
|
|
55
|
+
margin-inline-start: 0;
|
|
56
|
+
margin-left: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.stack-block {
|
|
60
|
+
display: flex;
|
|
61
|
+
// Wrapping for nested stack-blocks
|
|
62
|
+
flex-flow: row wrap;
|
|
63
|
+
overflow-y: hidden;
|
|
64
|
+
border-bottom: stack-view-variables.$clr-stack-view-border-width solid
|
|
65
|
+
stack-view-variables.$clr-stack-view-border-color;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// We have to handle potential nested elements, typically for web components
|
|
69
|
+
> .stack-block:last-child,
|
|
70
|
+
> :last-child .stack-block:last-of-type {
|
|
71
|
+
// This way we keep a border-bottom on the last element if the stack view is higher
|
|
72
|
+
// than the total height of the blocks it contains, but we do not have a
|
|
73
|
+
// weird 1px scroll when both heights match exactly.
|
|
74
|
+
border-bottom: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.stack-block-changed::before {
|
|
78
|
+
content: ' ';
|
|
79
|
+
position: absolute;
|
|
80
|
+
|
|
81
|
+
@include mixins.equilateral(0);
|
|
82
|
+
|
|
83
|
+
border-top: tokens.$cds-global-space-6 solid stack-view-variables.$clr-stack-block-changed-border-top-color;
|
|
84
|
+
border-right: tokens.$cds-global-space-6 solid transparent;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stack-block-caret {
|
|
88
|
+
align-self: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.stack-block-label {
|
|
92
|
+
padding: density.$clr-base-vertical-offset-m density.$clr-base-horizontal-offset-l;
|
|
93
|
+
color: stack-view-variables.$clr-stack-view-row-color;
|
|
94
|
+
background-color: stack-view-variables.$clr-stack-view-row-bg-color;
|
|
95
|
+
|
|
96
|
+
@include mixins.generate-typography-token('BODY-14-RG-STD');
|
|
97
|
+
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
|
|
102
|
+
&:focus {
|
|
103
|
+
outline-color: Highlight;
|
|
104
|
+
outline-color: -webkit-focus-ring-color;
|
|
105
|
+
outline-style: auto;
|
|
106
|
+
outline-width: tokens.$cds-global-space-1;
|
|
107
|
+
outline-offset: calc(-1 * tokens.$cds-global-space-1);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.stack-view-key {
|
|
112
|
+
flex: 0 1 40%;
|
|
113
|
+
max-width: 40%;
|
|
114
|
+
margin-right: density.$clr-base-layout-space-m;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.stack-block-caret {
|
|
118
|
+
visibility: hidden;
|
|
119
|
+
|
|
120
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
121
|
+
|
|
122
|
+
--color: #{stack-view-variables.$clr-stack-view-expandable-row-color};
|
|
123
|
+
|
|
124
|
+
margin-right: density.$clr-base-horizontal-offset-m;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.stack-block-content {
|
|
128
|
+
flex: 1 1 auto;
|
|
129
|
+
width: 60%;
|
|
130
|
+
margin-bottom: 0;
|
|
131
|
+
|
|
132
|
+
@include mixins.clr-container;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.stack-children {
|
|
136
|
+
flex: 0 0 auto;
|
|
137
|
+
width: 100%;
|
|
138
|
+
|
|
139
|
+
.stack-block {
|
|
140
|
+
border-bottom-color: stack-view-variables.$clr-stack-view-border-color;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
> .stack-block:last-child,
|
|
144
|
+
> :last-child .stack-block:last-of-type {
|
|
145
|
+
// This way we keep a border-bottom on the last element if the stack view is higher
|
|
146
|
+
// than the total height of the blocks it contains, but we do not have a
|
|
147
|
+
// weird 1px scroll when both heights match exactly.
|
|
148
|
+
border-bottom: none;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.stack-block-label,
|
|
152
|
+
.stack-block-content {
|
|
153
|
+
background-color: stack-view-variables.$clr-stack-view-row-bg-color;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.stack-block-expandable {
|
|
158
|
+
> .stack-block-label {
|
|
159
|
+
color: stack-view-variables.$clr-stack-view-expandable-row-color;
|
|
160
|
+
background-color: stack-view-variables.$clr-stack-view-expandable-row-bg-color;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
|
|
163
|
+
&::before {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
content: '';
|
|
166
|
+
|
|
167
|
+
@include mixins.min-equilateral(density.$clr-base-icon-size-s);
|
|
168
|
+
@include images-mixins.icon-background-styles();
|
|
169
|
+
|
|
170
|
+
background-image: icons.generateCaretIcon(accordion-variables.$clr-accordion-text-color);
|
|
171
|
+
transform: rotate(-90deg);
|
|
172
|
+
margin-right: density.$clr-base-layout-space-xs;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.stack-block-caret {
|
|
176
|
+
visibility: visible;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
> .stack-block-label,
|
|
181
|
+
> .stack-block-content {
|
|
182
|
+
transition:
|
|
183
|
+
background-color 0.2s ease-in-out,
|
|
184
|
+
color 0.2s ease-in-out;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&:not(.stack-block-expanded) > .stack-block-label:hover {
|
|
188
|
+
color: stack-view-variables.$clr-stack-view-expandable-row-hover;
|
|
189
|
+
background-color: stack-view-variables.$clr-stack-view-expandable-row-bg-hover;
|
|
190
|
+
|
|
191
|
+
.stack-block-caret {
|
|
192
|
+
fill: stack-view-variables.$clr-stack-view-expandable-row-hover;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&:active {
|
|
196
|
+
color: stack-view-variables.$clr-stack-view-expandable-row-active;
|
|
197
|
+
background-color: stack-view-variables.$clr-stack-view-expandable-row-bg-active;
|
|
198
|
+
|
|
199
|
+
.stack-block-caret {
|
|
200
|
+
fill: stack-view-variables.$clr-stack-view-expandable-row-active;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.stack-block-expanded > .stack-block-label {
|
|
206
|
+
border-bottom: stack-view-variables.$clr-stack-view-border-width solid
|
|
207
|
+
stack-view-variables.$clr-stack-view-border-color;
|
|
208
|
+
color: stack-view-variables.$clr-stack-view-expanded-row-color;
|
|
209
|
+
background-color: stack-view-variables.$clr-stack-view-expanded-row-bg-color;
|
|
210
|
+
|
|
211
|
+
&::before {
|
|
212
|
+
transform: rotate(0deg);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.stack-block-caret {
|
|
216
|
+
fill: stack-view-variables.$clr-stack-view-expanded-row-color;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&:hover {
|
|
220
|
+
color: stack-view-variables.$clr-stack-view-expandable-row-hover;
|
|
221
|
+
background-color: stack-view-variables.$clr-stack-view-expanded-row-bg-color-hover;
|
|
222
|
+
|
|
223
|
+
.stack-block-caret {
|
|
224
|
+
fill: stack-view-variables.$clr-stack-view-expandable-row-hover;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:active {
|
|
228
|
+
color: stack-view-variables.$clr-stack-view-expandable-row-active;
|
|
229
|
+
background-color: stack-view-variables.$clr-stack-view-expanded-row-bg-color-active;
|
|
230
|
+
|
|
231
|
+
.stack-block-caret {
|
|
232
|
+
fill: stack-view-variables.$clr-stack-view-expandable-row-active;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
Styles specific to stack views used in a modal
|
|
241
|
+
*/
|
|
242
|
+
.modal & {
|
|
243
|
+
margin-bottom: 0;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
//Disable the generated icon without a breaking change for the stackview static markup
|
|
247
|
+
//Only targets the Angular component as of now. Static will require a breaking change.
|
|
248
|
+
clr-stack-block.stack-block-expandable {
|
|
249
|
+
.stack-block-label::before {
|
|
250
|
+
content: none;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.stack-children clr-stack-block,
|
|
255
|
+
.stack-children {
|
|
256
|
+
.stack-block-label {
|
|
257
|
+
.stack-view-key {
|
|
258
|
+
padding-left: density.$clr-base-horizontal-offset-l;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&::before {
|
|
262
|
+
display: none;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
3
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
+
* This software is released under MIT license.
|
|
5
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Usage: ../stack-view/_stack-view.clarity.scss
|
|
9
|
+
$clr-stack-view-border-width: var(--clr-stack-view-border-width) !default;
|
|
10
|
+
$clr-stack-view-border-radius: var(--clr-stack-view-border-radius) !default;
|
|
11
|
+
$clr-stack-view-border-color: var(--clr-stack-view-border-color) !default;
|
|
12
|
+
// top-left-border-color of changed stack view row
|
|
13
|
+
$clr-stack-block-changed-border-top-color: var(--clr-stack-block-changed-border-top-color) !default;
|
|
14
|
+
|
|
15
|
+
// Stack view title text color
|
|
16
|
+
$clr-stack-view-title-color: var(--clr-stack-view-title-color) !default;
|
|
17
|
+
|
|
18
|
+
// non expandable row background and text/icon colors
|
|
19
|
+
$clr-stack-view-row-color: var(--clr-stack-view-row-color) !default;
|
|
20
|
+
$clr-stack-view-row-bg-color: var(--clr-stack-view-row-bg-color) !default;
|
|
21
|
+
|
|
22
|
+
// expandable row background and text/icon colors
|
|
23
|
+
$clr-stack-view-expandable-row-color: var(--clr-stack-view-expandable-row-color) !default;
|
|
24
|
+
$clr-stack-view-expandable-row-bg-color: var(--clr-stack-view-expandable-row-bg-color) !default;
|
|
25
|
+
$clr-stack-view-expandable-row-hover: var(--clr-stack-view-expandable-row-hover) !default;
|
|
26
|
+
$clr-stack-view-expandable-row-bg-hover: var(--clr-stack-view-expandable-row-bg-hover) !default;
|
|
27
|
+
$clr-stack-view-expandable-row-active: var(--clr-stack-view-expandable-row-active) !default;
|
|
28
|
+
$clr-stack-view-expandable-row-bg-active: var(--clr-stack-view-expandable-row-bg-active) !default;
|
|
29
|
+
$clr-stack-view-expanded-row-color: var(--clr-stack-view-expanded-row-color) !default;
|
|
30
|
+
$clr-stack-view-expanded-row-bg-color: var(--clr-stack-view-expanded-row-bg-color) !default;
|
|
31
|
+
$clr-stack-view-expanded-row-bg-color-hover: var(--clr-stack-view-expanded-row-bg-color-hover) !default;
|
|
32
|
+
$clr-stack-view-expanded-row-bg-color-active: var(--clr-stack-view-expanded-row-bg-color-active) !default;
|