@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,37 @@
|
|
|
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:map';
|
|
9
|
+
@use 'variables.global';
|
|
10
|
+
|
|
11
|
+
/* stylelint-disable */
|
|
12
|
+
$clr-grid-breakpoints: (
|
|
13
|
+
xs: 0,
|
|
14
|
+
sm: 576px,
|
|
15
|
+
md: 768px,
|
|
16
|
+
lg: 992px,
|
|
17
|
+
xl: 1200px,
|
|
18
|
+
) !default;
|
|
19
|
+
/* stylelint-enable */
|
|
20
|
+
|
|
21
|
+
$clr-grid-columns: 12 !default;
|
|
22
|
+
$clr-grid-gutter-width: var(--clr-grid-gutter-width) !default;
|
|
23
|
+
$clr-grid-container-padding: var(--clr-grid-container-padding) !default;
|
|
24
|
+
$clr-grid-column-padding: var(--clr-grid-column-padding) !default;
|
|
25
|
+
$clr-grid-row-margin: var(--clr-grid-row-margin) !default;
|
|
26
|
+
|
|
27
|
+
$clr-sizes: () !default;
|
|
28
|
+
$clr-sizes: map.merge(
|
|
29
|
+
(
|
|
30
|
+
25: 25%,
|
|
31
|
+
50: 50%,
|
|
32
|
+
75: 75%,
|
|
33
|
+
100: 100%,
|
|
34
|
+
auto: auto,
|
|
35
|
+
),
|
|
36
|
+
$clr-sizes
|
|
37
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
@forward 'variables.global';
|
|
9
|
+
@forward 'variables.layout';
|
|
10
|
+
@forward 'variables.typography';
|
|
11
|
+
@forward 'variables.density';
|
|
@@ -0,0 +1,156 @@
|
|
|
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.density' as density;
|
|
9
|
+
|
|
10
|
+
// Usage: ../typography/_typography.clarity.scss
|
|
11
|
+
$clr-fontSkipBase64: false !default;
|
|
12
|
+
|
|
13
|
+
// Temporal internal use only. Should be removed once CDS token based family is available.
|
|
14
|
+
$clr-metropolis-font-family: var(--clr-metropolis-font-family);
|
|
15
|
+
$clr-font: var(--clr-font) !default;
|
|
16
|
+
$clr-body-font: $clr-font;
|
|
17
|
+
|
|
18
|
+
$clr-font-weight-light: var(--clr-font-weight-light) !default;
|
|
19
|
+
$clr-font-weight-regular: var(--clr-font-weight-regular) !default;
|
|
20
|
+
$clr-font-weight-semibold: var(--clr-font-weight-semibold) !default;
|
|
21
|
+
$clr-font-weight-bold: var(--clr-font-weight-bold) !default;
|
|
22
|
+
$clr-font-weight-extrabold: var(--clr-font-weight-extrabold) !default;
|
|
23
|
+
|
|
24
|
+
$clr-global-typography-margin-top: #{density.$clr-base-vertical-offset-2xl} !default;
|
|
25
|
+
$clr-global-typography-margin-bottom: 0 !default;
|
|
26
|
+
|
|
27
|
+
// Header styles
|
|
28
|
+
//H1 - login_productName
|
|
29
|
+
//'DISPLAY-40'
|
|
30
|
+
$clr-h1-color: var(--clr-h1-color) !default;
|
|
31
|
+
$clr-h1-font-weight: var(--clr-h1-font-weight) !default;
|
|
32
|
+
$clr-h1-font-family: var(--clr-h1-font-family) !default;
|
|
33
|
+
$clr-h1-font-size: var(--clr-h1-font-size) !default;
|
|
34
|
+
$clr-h1-letter-spacing: var(--clr-h1-letter-spacing) !default;
|
|
35
|
+
$clr-h1-line-height: var(--clr-h1-line-height) !default;
|
|
36
|
+
|
|
37
|
+
//H2 - login_trademark, page_mainHeading
|
|
38
|
+
//'HEADLINE-32'
|
|
39
|
+
$clr-h2-color: var(--clr-h2-color) !default;
|
|
40
|
+
$clr-h2-font-weight: var(--clr-h2-font-weight) !default;
|
|
41
|
+
$clr-h2-font-family: var(--clr-h2-font-family) !default;
|
|
42
|
+
$clr-h2-font-size: var(--clr-h2-font-size) !default;
|
|
43
|
+
$clr-h2-letter-spacing: var(--clr-h2-letter-spacing) !default;
|
|
44
|
+
$clr-h2-line-height: var(--clr-h2-line-height) !default;
|
|
45
|
+
|
|
46
|
+
//H3 - login_subtitle, modal_header, page_secondaryHeading
|
|
47
|
+
//'TITLE-24-EXP'
|
|
48
|
+
$clr-h3-color: var(--clr-h3-color) !default;
|
|
49
|
+
$clr-h3-font-weight: var(--clr-h3-font-weight) !default;
|
|
50
|
+
$clr-h3-font-family: var(--clr-h3-font-family) !default;
|
|
51
|
+
$clr-h3-font-size: var(--clr-h3-font-size) !default;
|
|
52
|
+
$clr-h3-letter-spacing: var(--clr-h3-letter-spacing) !default;
|
|
53
|
+
$clr-h3-line-height: var(--clr-h3-line-height) !default;
|
|
54
|
+
|
|
55
|
+
//H4 - card titles, page_tertiaryHeading
|
|
56
|
+
//'SECTION-20-STD'
|
|
57
|
+
$clr-h4-color: var(--clr-h4-color) !default;
|
|
58
|
+
$clr-h4-font-weight: var(--clr-h4-font-weight) !default;
|
|
59
|
+
$clr-h4-font-family: var(--clr-h4-font-family) !default;
|
|
60
|
+
$clr-h4-font-size: var(--clr-h4-font-size) !default;
|
|
61
|
+
$clr-h4-letter-spacing: var(--clr-h4-letter-spacing) !default;
|
|
62
|
+
$clr-h4-line-height: var(--clr-h4-line-height) !default;
|
|
63
|
+
|
|
64
|
+
//H5 - dgrid placeholder, datagrid_column_toggle_title, form_block_label, nav_title, page_introParagraph, page_sectionHeader
|
|
65
|
+
//'SUBSECTION-16-EXP'
|
|
66
|
+
$clr-h5-color: var(--clr-h5-color) !default;
|
|
67
|
+
$clr-h5-font-weight: var(--clr-h5-font-weight) !default;
|
|
68
|
+
$clr-h5-font-family: var(--clr-h5-font-family) !default;
|
|
69
|
+
$clr-h5-font-size: var(--clr-h5-font-size) !default;
|
|
70
|
+
$clr-h5-letter-spacing: var(--clr-h5-letter-spacing) !default;
|
|
71
|
+
$clr-h5-line-height: var(--clr-h5-line-height) !default;
|
|
72
|
+
|
|
73
|
+
//H6 - toc_header
|
|
74
|
+
// 'MESSAGE-16-EXP'
|
|
75
|
+
$clr-h6-color: var(--clr-h6-color) !default;
|
|
76
|
+
$clr-h6-font-weight: var(--clr-h6-font-weight) !default;
|
|
77
|
+
$clr-h6-font-family: var(--clr-h6-font-family) !default;
|
|
78
|
+
$clr-h6-font-size: var(--clr-h6-font-size) !default;
|
|
79
|
+
$clr-h6-letter-spacing: var(--clr-h6-letter-spacing) !default;
|
|
80
|
+
$clr-h6-line-height: var(--clr-h6-line-height) !default;
|
|
81
|
+
|
|
82
|
+
// Non-header text styles
|
|
83
|
+
//P0 - Intro text
|
|
84
|
+
//'BODY-14-RG-STD'
|
|
85
|
+
$clr-p0-color: var(--clr-p0-color) !default;
|
|
86
|
+
$clr-p0-font-weight: var(--clr-p0-font-weight) !default;
|
|
87
|
+
$clr-p0-font-size: var(--clr-p0-font-size) !default;
|
|
88
|
+
$clr-p0-letter-spacing: var(--clr-p0-letter-spacing) !default;
|
|
89
|
+
$clr-p0-line-height: var(--clr-p0-line-height) !default;
|
|
90
|
+
|
|
91
|
+
//P1 - card text, dropdown_text, page_bodyText, tab_text, toc_text
|
|
92
|
+
//'BODY-14-RG-STD'
|
|
93
|
+
$clr-p1-color: var(--clr-p1-color) !default;
|
|
94
|
+
$clr-p1-font-weight: var(--clr-p1-font-weight) !default;
|
|
95
|
+
$clr-p1-font-size: var(--clr-p1-font-size) !default;
|
|
96
|
+
$clr-p1-letter-spacing: var(--clr-p1-letter-spacing) !default;
|
|
97
|
+
$clr-p1-line-height: var(--clr-p1-line-height) !default;
|
|
98
|
+
|
|
99
|
+
//P2 - form_label, stackview_header
|
|
100
|
+
//'SECONDARY-13-MD-EXP'
|
|
101
|
+
$clr-p2-color: var(--clr-p2-color) !default;
|
|
102
|
+
$clr-p2-font-weight: var(--clr-p2-font-weight) !default;
|
|
103
|
+
$clr-p2-font-size: var(--clr-p2-font-size) !default;
|
|
104
|
+
$clr-p2-letter-spacing: var(--clr-p2-letter-spacing) !default;
|
|
105
|
+
$clr-p2-line-height: var(--clr-p2-line-height) !default;
|
|
106
|
+
|
|
107
|
+
//P3 - alerts, form_group_fields, stackview_text, table_text, tooltip_text
|
|
108
|
+
//'SECONDARY-13-RG-EXP'
|
|
109
|
+
$clr-p3-color: var(--clr-p3-color) !default;
|
|
110
|
+
$clr-p3-font-weight: var(--clr-p3-font-weight) !default;
|
|
111
|
+
$clr-p3-font-size: var(--clr-p3-font-size) !default;
|
|
112
|
+
$clr-p3-letter-spacing: var(--clr-p3-letter-spacing) !default;
|
|
113
|
+
$clr-p3-line-height: var(--clr-p3-line-height) !default;
|
|
114
|
+
|
|
115
|
+
//P4 - small alerts, dropdown_header, vertical_nav_header
|
|
116
|
+
//'SECONDARY-13-SB-STD'
|
|
117
|
+
$clr-p4-color: var(--clr-p4-color) !default;
|
|
118
|
+
$clr-p4-font-weight: var(--clr-p4-font-weight) !default;
|
|
119
|
+
$clr-p4-font-size: var(--clr-p4-font-size) !default;
|
|
120
|
+
$clr-p4-letter-spacing: var(--clr-p4-letter-spacing) !default;
|
|
121
|
+
$clr-p4-line-height: var(--clr-p4-line-height) !default;
|
|
122
|
+
|
|
123
|
+
//P5
|
|
124
|
+
//'SECONDARY-13-RG-EXP'
|
|
125
|
+
$clr-p5-color: var(--clr-p5-color) !default;
|
|
126
|
+
$clr-p5-font-weight: var(--clr-p5-font-weight) !default;
|
|
127
|
+
$clr-p5-font-size: var(--clr-p5-font-size) !default;
|
|
128
|
+
$clr-p5-letter-spacing: var(--clr-p5-letter-spacing) !default;
|
|
129
|
+
$clr-p5-line-height: var(--clr-p5-line-height) !default;
|
|
130
|
+
|
|
131
|
+
//P6 - card link btns, form_subtext, table_header
|
|
132
|
+
//'CAPTION-LG-11-STD'
|
|
133
|
+
$clr-p6-color: var(--clr-p6-color) !default;
|
|
134
|
+
$clr-p6-font-weight: var(--clr-p6-font-weight) !default;
|
|
135
|
+
$clr-p6-font-size: var(--clr-p6-font-size) !default;
|
|
136
|
+
$clr-p6-letter-spacing: var(--clr-p6-letter-spacing) !default;
|
|
137
|
+
$clr-p6-line-height: var(--clr-p6-line-height) !default;
|
|
138
|
+
|
|
139
|
+
//P7 - label_text
|
|
140
|
+
//'CAPTION-SM-10'
|
|
141
|
+
$clr-p7-color: var(--clr-p7-color) !default;
|
|
142
|
+
$clr-p7-font-weight: var(--clr-p7-font-weight) !default;
|
|
143
|
+
$clr-p7-font-size: var(--clr-p7-font-size) !default;
|
|
144
|
+
$clr-p7-letter-spacing: var(--clr-p7-letter-spacing) !default;
|
|
145
|
+
$clr-p7-line-height: var(--clr-p7-line-height) !default;
|
|
146
|
+
|
|
147
|
+
//P8
|
|
148
|
+
//'CAPTION-SM-10'
|
|
149
|
+
$clr-p8-color: var(--clr-p8-color) !default;
|
|
150
|
+
$clr-p8-font-weight: var(--clr-p8-font-weight) !default;
|
|
151
|
+
$clr-p8-font-size: var(--clr-p8-font-size) !default;
|
|
152
|
+
$clr-p8-letter-spacing: var(--clr-p8-letter-spacing) !default;
|
|
153
|
+
$clr-p8-line-height: var(--clr-p8-line-height) !default;
|
|
154
|
+
|
|
155
|
+
// Lists
|
|
156
|
+
$clr-list-item-color: var(--clr-list-item-color) !default;
|
|
@@ -0,0 +1,38 @@
|
|
|
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/core/tokens/variables.tokens' as tokens;
|
|
10
|
+
@use '../styles/variables/variables.density' as density;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('timeline.properties') {
|
|
13
|
+
@include mixins.root-or-host() {
|
|
14
|
+
// body (title)
|
|
15
|
+
--clr-timeline-step-title-font-weight: #{tokens.$cds-alias-typography-font-weight-semibold};
|
|
16
|
+
|
|
17
|
+
&,
|
|
18
|
+
& [clr-density] {
|
|
19
|
+
--clr-timeline-icon-size: #{density.$clr-base-icon-size-3xl};
|
|
20
|
+
|
|
21
|
+
// internal property cannot be exposed
|
|
22
|
+
--clr-timeline-step-internal-spacing: #{density.$clr-base-vertical-offset-l};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&,
|
|
26
|
+
& [cds-theme] {
|
|
27
|
+
// colors
|
|
28
|
+
--clr-timeline-line-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
29
|
+
--clr-timeline-step-header-color: #{tokens.$cds-alias-typography-color-400};
|
|
30
|
+
--clr-timeline-step-title-color: #{tokens.$cds-alias-typography-color-400};
|
|
31
|
+
--clr-timeline-step-description-color: #{tokens.$cds-alias-typography-color-400};
|
|
32
|
+
--clr-timeline-incomplete-step-color: #{tokens.$cds-alias-object-interaction-border-color};
|
|
33
|
+
--clr-timeline-current-step-color: #{tokens.$cds-alias-object-interaction-background-highlight};
|
|
34
|
+
--clr-timeline-success-step-color: #{tokens.$cds-alias-status-success};
|
|
35
|
+
--clr-timeline-error-step-color: #{tokens.$cds-alias-status-danger};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
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 '../styles/mixins';
|
|
10
|
+
@use 'variables.timeline' as timeline-variables;
|
|
11
|
+
@use '../styles/variables/variables.density' as density;
|
|
12
|
+
@use '../styles/core/tokens/variables.tokens' as tokens;
|
|
13
|
+
|
|
14
|
+
@include meta.load-css('properties.timeline');
|
|
15
|
+
@include mixins.exports('timeline.clarity') {
|
|
16
|
+
.clr-timeline {
|
|
17
|
+
display: flex;
|
|
18
|
+
padding: timeline-variables.$clr-timeline-step-internal-spacing;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.clr-timeline-step {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
min-width: mixins.baselinePx(175);
|
|
26
|
+
gap: timeline-variables.$clr-timeline-step-internal-spacing;
|
|
27
|
+
|
|
28
|
+
> cds-icon:not([size]),
|
|
29
|
+
> clr-icon:not([size]) {
|
|
30
|
+
@include mixins.min-equilateral(timeline-variables.$clr-timeline-icon-size);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> cds-icon[shape='circle'],
|
|
34
|
+
> clr-icon[shape='circle'] {
|
|
35
|
+
color: timeline-variables.$clr-timeline-incomplete-step-color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> cds-icon[shape='dot-circle'],
|
|
39
|
+
> clr-icon[shape='dot-circle'] {
|
|
40
|
+
color: timeline-variables.$clr-timeline-current-step-color;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> cds-icon[shape='success-standard'],
|
|
44
|
+
> clr-icon[shape='success-standard'] {
|
|
45
|
+
color: timeline-variables.$clr-timeline-success-step-color;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> cds-icon[shape='error-standard'],
|
|
49
|
+
> clr-icon[shape='error-standard'] {
|
|
50
|
+
color: timeline-variables.$clr-timeline-error-step-color;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
> clr-spinner.spinner {
|
|
54
|
+
margin: tokens.$cds-global-space-2; // Simulates the padding in CDS-ICONs
|
|
55
|
+
&,
|
|
56
|
+
&::after,
|
|
57
|
+
&::before {
|
|
58
|
+
@include mixins.min-equilateral(timeline-variables.$clr-timeline-spinner-size);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// style for the connecting line between icons
|
|
63
|
+
&:not(:last-of-type) .clr-timeline-step-body::before {
|
|
64
|
+
content: '';
|
|
65
|
+
background: timeline-variables.$clr-timeline-line-color;
|
|
66
|
+
height: timeline-variables.$clr-timeline-line-thickness;
|
|
67
|
+
width: calc(100% - timeline-variables.$clr-timeline-icon-size);
|
|
68
|
+
transform: translate(
|
|
69
|
+
timeline-variables.$clr-timeline-icon-size,
|
|
70
|
+
calc(
|
|
71
|
+
-0.5 *
|
|
72
|
+
(
|
|
73
|
+
(timeline-variables.$clr-timeline-step-internal-spacing * 2) +
|
|
74
|
+
timeline-variables.$clr-timeline-line-thickness + timeline-variables.$clr-timeline-icon-size
|
|
75
|
+
)
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Note: headers (timestamps) are unable to auto-adjust height based on their siblings' using pure CSS.
|
|
82
|
+
// Hence forcing them in one-line by using "nowrap".
|
|
83
|
+
.clr-timeline-step-header {
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
color: timeline-variables.$clr-timeline-step-header-color;
|
|
86
|
+
|
|
87
|
+
@include mixins.generate-typography-token('SECONDARY-13-MD-CPT');
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.clr-timeline-step-body {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.clr-timeline-step-title {
|
|
96
|
+
color: timeline-variables.$clr-timeline-step-title-color;
|
|
97
|
+
margin-bottom: density.$clr-base-gap-xs;
|
|
98
|
+
|
|
99
|
+
@include mixins.generate-typography-token(
|
|
100
|
+
'SECONDARY-13-SB-CPT',
|
|
101
|
+
(
|
|
102
|
+
font-weight: timeline-variables.$clr-timeline-step-title-font-weight,
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.clr-timeline-step-description {
|
|
108
|
+
color: timeline-variables.$clr-timeline-step-description-color;
|
|
109
|
+
|
|
110
|
+
@include mixins.generate-typography-token('CAPTION-LG-11-STD');
|
|
111
|
+
|
|
112
|
+
button {
|
|
113
|
+
display: block;
|
|
114
|
+
margin-top: density.$clr-base-gap-s;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
img {
|
|
118
|
+
width: 100%;
|
|
119
|
+
margin-top: density.$clr-base-vertical-offset-m;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.clr-timeline.clr-timeline-vertical {
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
min-width: mixins.baselinePx(320);
|
|
126
|
+
|
|
127
|
+
.clr-timeline-step {
|
|
128
|
+
flex-direction: row;
|
|
129
|
+
margin-left: 0;
|
|
130
|
+
position: relative; // required for vertical line to get 100% height of step body it belongs to
|
|
131
|
+
|
|
132
|
+
&:not(:last-of-type) {
|
|
133
|
+
margin-bottom: timeline-variables.$clr-timeline-step-internal-spacing;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// style for the connecting line between icons
|
|
137
|
+
&:not(:last-of-type) .clr-timeline-step-body::before {
|
|
138
|
+
position: absolute;
|
|
139
|
+
width: timeline-variables.$clr-timeline-line-thickness;
|
|
140
|
+
height: calc(
|
|
141
|
+
100% - (timeline-variables.$clr-timeline-icon-size - timeline-variables.$clr-timeline-step-internal-spacing)
|
|
142
|
+
);
|
|
143
|
+
transform: translate(
|
|
144
|
+
calc(
|
|
145
|
+
-0.5 * (timeline-variables.$clr-timeline-icon-size + timeline-variables.$clr-timeline-line-thickness) -
|
|
146
|
+
timeline-variables.$clr-timeline-step-internal-spacing
|
|
147
|
+
),
|
|
148
|
+
calc(
|
|
149
|
+
(-1 * timeline-variables.$clr-timeline-step-internal-spacing) + timeline-variables.$clr-timeline-icon-size
|
|
150
|
+
)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.clr-timeline-step-header {
|
|
156
|
+
text-align: right;
|
|
157
|
+
white-space: normal;
|
|
158
|
+
overflow-wrap: anywhere;
|
|
159
|
+
word-break: normal;
|
|
160
|
+
width: mixins.baselinePx(60);
|
|
161
|
+
min-width: mixins.baselinePx(60);
|
|
162
|
+
margin: timeline-variables.$clr-timeline-step-internal-spacing 0 0 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.clr-timeline-step-body {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
min-width: mixins.baselinePx(178);
|
|
169
|
+
padding-top: timeline-variables.$clr-timeline-step-internal-spacing;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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/core/tokens/variables.tokens' as tokens;
|
|
9
|
+
@use '../styles/variables/variables.density' as density;
|
|
10
|
+
|
|
11
|
+
$clr-timeline-line-color: var(--clr-timeline-line-color) !default;
|
|
12
|
+
$clr-timeline-step-header-color: var(--clr-timeline-step-header-color) !default;
|
|
13
|
+
$clr-timeline-step-title-color: var(--clr-timeline-step-title-color) !default;
|
|
14
|
+
$clr-timeline-step-description-color: var(--clr-timeline-step-description-color) !default;
|
|
15
|
+
|
|
16
|
+
$clr-timeline-incomplete-step-color: var(--clr-timeline-incomplete-step-color) !default;
|
|
17
|
+
$clr-timeline-current-step-color: var(--clr-timeline-current-step-color) !default;
|
|
18
|
+
$clr-timeline-success-step-color: var(--clr-timeline-success-step-color) !default;
|
|
19
|
+
$clr-timeline-error-step-color: var(--clr-timeline-error-step-color) !default;
|
|
20
|
+
|
|
21
|
+
// overall
|
|
22
|
+
$clr-timeline-icon-size: var(--clr-timeline-icon-size);
|
|
23
|
+
$clr-timeline-spinner-size: calc(#{$clr-timeline-icon-size} - #{tokens.$cds-global-space-3});
|
|
24
|
+
$clr-timeline-default-icon-size: #{density.$clr-base-icon-size-s};
|
|
25
|
+
$clr-timeline-line-thickness: #{tokens.$cds-alias-object-border-width-200};
|
|
26
|
+
$clr-timeline-step-internal-spacing: var(--clr-timeline-step-internal-spacing);
|
|
27
|
+
|
|
28
|
+
// body (title)
|
|
29
|
+
$clr-timeline-step-title-font-weight: var(--clr-timeline-step-title-font-weight);
|
|
@@ -0,0 +1,36 @@
|
|
|
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/core/tokens/variables.tokens' as tokens;
|
|
10
|
+
@use '../styles/variables/variables.density' as density;
|
|
11
|
+
|
|
12
|
+
@include mixins.exports('code.clarity') {
|
|
13
|
+
//Styles for Clarity Code Snippets
|
|
14
|
+
pre {
|
|
15
|
+
margin: density.$clr-base-vertical-offset-l 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
pre {
|
|
19
|
+
border: tokens.$cds-alias-object-border-width-100 solid tokens.$cds-alias-object-container-border-color;
|
|
20
|
+
border-radius: density.$clr-base-border-radius-s;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
pre code {
|
|
24
|
+
white-space: pre;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//Overriding bootstrap code styles
|
|
28
|
+
// @deprecated Bootstrap dependencies are deprecated since 1.0. Review and edit before 2.0 if needed.
|
|
29
|
+
code {
|
|
30
|
+
&.clr-code {
|
|
31
|
+
color: tokens.$cds-alias-utility-red;
|
|
32
|
+
padding: 0;
|
|
33
|
+
background: transparent;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|