@clusterenvision/ui-scss 1.94.3
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/LICENSE +21 -0
- package/README.md +152 -0
- package/dist/ce-ui-min.css +2951 -0
- package/dist/ce-ui-min.css.map +1 -0
- package/dist/ce-ui.css +4894 -0
- package/dist/ce-ui.css.map +1 -0
- package/dist/components/advanced/calendar.css +37 -0
- package/dist/components/advanced/carousel.css +59 -0
- package/dist/components/advanced/chat.css +29 -0
- package/dist/components/advanced/code-block.css +16 -0
- package/dist/components/advanced/editor.css +122 -0
- package/dist/components/advanced/rating.css +19 -0
- package/dist/components/advanced/steps.css +46 -0
- package/dist/components/advanced/timeline.css +32 -0
- package/dist/components/buttons/button-group.css +28 -0
- package/dist/components/buttons/button.css +305 -0
- package/dist/components/buttons/icon-button.css +32 -0
- package/dist/components/charts/chart-types.css +36 -0
- package/dist/components/containers/accordion.css +65 -0
- package/dist/components/containers/card.css +60 -0
- package/dist/components/containers/drawer.css +33 -0
- package/dist/components/containers/modal.css +61 -0
- package/dist/components/containers/panel.css +27 -0
- package/dist/components/containers/toast.css +38 -0
- package/dist/components/content/avatar.css +54 -0
- package/dist/components/content/badge.css +44 -0
- package/dist/components/content/chip.css +234 -0
- package/dist/components/content/divider.css +27 -0
- package/dist/components/content/image.css +23 -0
- package/dist/components/feedback/alert.css +50 -0
- package/dist/components/feedback/message.css +18 -0
- package/dist/components/feedback/progress-bar.css +22 -0
- package/dist/components/feedback/skeleton.css +35 -0
- package/dist/components/feedback/snackbar.css +30 -0
- package/dist/components/form-controls/checkbox.css +183 -0
- package/dist/components/form-controls/date-picker.css +26 -0
- package/dist/components/form-controls/file-upload.css +48 -0
- package/dist/components/form-controls/form-group.css +19 -0
- package/dist/components/form-controls/input.css +96 -0
- package/dist/components/form-controls/radio.css +20 -0
- package/dist/components/form-controls/range.css +42 -0
- package/dist/components/form-controls/select.css +243 -0
- package/dist/components/form-controls/textarea.css +28 -0
- package/dist/components/form-controls/toggle.css +38 -0
- package/dist/components/navigation/breadcrumbs.css +33 -0
- package/dist/components/navigation/menu.css +43 -0
- package/dist/components/navigation/navbar.css +64 -0
- package/dist/components/navigation/pagination.css +45 -0
- package/dist/components/navigation/sidebar.css +35 -0
- package/dist/components/navigation/tabs.css +25 -0
- package/dist/components/overlays/backdrop.css +6 -0
- package/dist/components/overlays/dropdown.css +77 -0
- package/dist/components/overlays/loader.css +28 -0
- package/dist/components/overlays/popover.css +54 -0
- package/dist/components/overlays/tooltip.css +37 -0
- package/dist/components/specialty/ce-atm-card.css +204 -0
- package/dist/components/tables-lists/data-table.css +48 -0
- package/dist/components/tables-lists/list.css +22 -0
- package/dist/components/tables-lists/table.css +40 -0
- package/dist/components/tables-lists/tree-view.css +37 -0
- package/dist/themes/core/package.json +12 -0
- package/dist/themes/core/tokens.css +120 -0
- package/dist/themes/core/tokens.d.ts +69 -0
- package/dist/themes/core/tokens.json +136 -0
- package/dist/themes/premium/package.json +12 -0
- package/dist/themes/premium/tokens.css +120 -0
- package/dist/themes/premium/tokens.d.ts +69 -0
- package/dist/themes/premium/tokens.json +136 -0
- package/dist/tokens/tokens.css +120 -0
- package/dist/tokens/tokens.d.ts +69 -0
- package/dist/tokens/tokens.json +133 -0
- package/package.json +61 -0
- package/src/abstracts/_functions.scss +34 -0
- package/src/abstracts/_mixins.scss +162 -0
- package/src/abstracts/_placeholders.scss +18 -0
- package/src/abstracts/_variables.scss +413 -0
- package/src/abstracts/_z-index.scss +9 -0
- package/src/accessibility/_focus-ring.scss +11 -0
- package/src/accessibility/_theme-switcher.scss +41 -0
- package/src/base/_animations.scss +32 -0
- package/src/base/_forms.scss +62 -0
- package/src/base/_reset.scss +102 -0
- package/src/base/_theme-base.scss +162 -0
- package/src/base/_typography.scss +38 -0
- package/src/components/advanced/_calendar.scss +47 -0
- package/src/components/advanced/_carousel.scss +87 -0
- package/src/components/advanced/_chat.scss +37 -0
- package/src/components/advanced/_code-block.scss +22 -0
- package/src/components/advanced/_editor.scss +156 -0
- package/src/components/advanced/_modal.scss +96 -0
- package/src/components/advanced/_notification-center.scss +172 -0
- package/src/components/advanced/_popover.scss +68 -0
- package/src/components/advanced/_rating.scss +22 -0
- package/src/components/advanced/_stepper.scss +135 -0
- package/src/components/advanced/_steps.scss +57 -0
- package/src/components/advanced/_timeline.scss +47 -0
- package/src/components/advanced/_wizard.scss +132 -0
- package/src/components/buttons/_button-group.scss +40 -0
- package/src/components/buttons/_button.scss +296 -0
- package/src/components/buttons/_icon-button.scss +42 -0
- package/src/components/charts/_chart-types.scss +74 -0
- package/src/components/containers/_accordion.scss +65 -0
- package/src/components/containers/_card.scss +65 -0
- package/src/components/containers/_drawer.scss +48 -0
- package/src/components/containers/_modal.scss +78 -0
- package/src/components/containers/_panel.scss +37 -0
- package/src/components/containers/_toast.scss +40 -0
- package/src/components/content/_avatar.scss +56 -0
- package/src/components/content/_badge.scss +42 -0
- package/src/components/content/_calendar.scss +147 -0
- package/src/components/content/_carousel.scss +112 -0
- package/src/components/content/_chip.scss +246 -0
- package/src/components/content/_divider.scss +49 -0
- package/src/components/content/_image.scss +32 -0
- package/src/components/content/_rating.scss +60 -0
- package/src/components/content/_rich-text-editor.scss +153 -0
- package/src/components/content/_timeline-advanced.scss +138 -0
- package/src/components/content/_timeline.scss +86 -0
- package/src/components/feedback/_advanced-notification.scss +156 -0
- package/src/components/feedback/_alert.scss +86 -0
- package/src/components/feedback/_message.scss +26 -0
- package/src/components/feedback/_notification-center.scss +118 -0
- package/src/components/feedback/_progress-bar.scss +48 -0
- package/src/components/feedback/_skeleton.scss +47 -0
- package/src/components/feedback/_snackbar.scss +38 -0
- package/src/components/feedback/_spinner.scss +211 -0
- package/src/components/feedback/_toast-queue.scss +164 -0
- package/src/components/form-controls/_autocomplete.scss +80 -0
- package/src/components/form-controls/_checkbox.scss +202 -0
- package/src/components/form-controls/_date-picker.scss +50 -0
- package/src/components/form-controls/_file-upload.scss +61 -0
- package/src/components/form-controls/_form-group.scss +26 -0
- package/src/components/form-controls/_input.scss +139 -0
- package/src/components/form-controls/_multi-select.scss +175 -0
- package/src/components/form-controls/_radio.scss +27 -0
- package/src/components/form-controls/_range.scss +54 -0
- package/src/components/form-controls/_select.scss +242 -0
- package/src/components/form-controls/_textarea.scss +45 -0
- package/src/components/form-controls/_toggle.scss +47 -0
- package/src/components/navigation/_breadcrumbs.scss +41 -0
- package/src/components/navigation/_menu.scss +75 -0
- package/src/components/navigation/_navbar.scss +79 -0
- package/src/components/navigation/_pagination.scss +85 -0
- package/src/components/navigation/_sidebar.scss +44 -0
- package/src/components/navigation/_stepper.scss +115 -0
- package/src/components/navigation/_tabs.scss +50 -0
- package/src/components/navigation/_tree-view.scss +95 -0
- package/src/components/navigation/_wizard.scss +132 -0
- package/src/components/overlays/_backdrop.scss +10 -0
- package/src/components/overlays/_dropdown.scss +110 -0
- package/src/components/overlays/_loader.scss +32 -0
- package/src/components/overlays/_popover.scss +64 -0
- package/src/components/overlays/_tooltip.scss +64 -0
- package/src/components/specialty/_ce-atm-card.scss +255 -0
- package/src/components/tables/_data-grid.scss +92 -0
- package/src/components/tables/_filter-grid.scss +29 -0
- package/src/components/tables-lists/_data-table.scss +63 -0
- package/src/components/tables-lists/_list.scss +30 -0
- package/src/components/tables-lists/_table.scss +79 -0
- package/src/components/tables-lists/_tree-view.scss +47 -0
- package/src/layout/_container.scss +20 -0
- package/src/layout/_footer.scss +41 -0
- package/src/layout/_grid.scss +23 -0
- package/src/layout/_header.scss +41 -0
- package/src/layout/_section.scss +26 -0
- package/src/layout/_sidebar.scss +39 -0
- package/src/layout/_stack.scss +23 -0
- package/src/main.css +3250 -0
- package/src/main.css.map +1 -0
- package/src/main.scss +158 -0
- package/src/minimal.scss +62 -0
- package/src/themes/_cool-slate.scss +11 -0
- package/src/themes/_dark.scss +11 -0
- package/src/themes/_default.scss +12 -0
- package/src/themes/_forest.scss +11 -0
- package/src/themes/_glassy-aero-windows.scss +9 -0
- package/src/themes/_glassy-amber.scss +21 -0
- package/src/themes/_glassy-aurora-sky.scss +9 -0
- package/src/themes/_glassy-blue.scss +10 -0
- package/src/themes/_glassy-cyan.scss +9 -0
- package/src/themes/_glassy-emerald-mist.scss +9 -0
- package/src/themes/_glassy-frosted-silver.scss +9 -0
- package/src/themes/_glassy-glass-white.scss +9 -0
- package/src/themes/_glassy-gold.scss +9 -0
- package/src/themes/_glassy-green.scss +10 -0
- package/src/themes/_glassy-ice-black.scss +13 -0
- package/src/themes/_glassy-mac-dark.scss +13 -0
- package/src/themes/_glassy-midnight-blue.scss +12 -0
- package/src/themes/_glassy-neon-cyber.scss +9 -0
- package/src/themes/_glassy-orange.scss +10 -0
- package/src/themes/_glassy-pink.scss +9 -0
- package/src/themes/_glassy-purple.scss +10 -0
- package/src/themes/_glassy-rose-gold.scss +9 -0
- package/src/themes/_glassy-sakura-glass.scss +9 -0
- package/src/themes/_glassy-silver.scss +9 -0
- package/src/themes/_glassy-teal.scss +9 -0
- package/src/themes/_high-contrast.scss +11 -0
- package/src/themes/_light.scss +10 -0
- package/src/themes/_mac.scss +10 -0
- package/src/themes/_minimal-mono.scss +11 -0
- package/src/themes/_mintwave.scss +9 -0
- package/src/themes/_neutral-light.scss +11 -0
- package/src/themes/_nordwave.scss +9 -0
- package/src/themes/_ocean.scss +9 -0
- package/src/themes/_orange.scss +9 -0
- package/src/themes/_purple.scss +9 -0
- package/src/themes/_red.scss +9 -0
- package/src/themes/_skyfade.scss +9 -0
- package/src/themes/_soft-pastel.scss +11 -0
- package/src/themes/_solarized.scss +9 -0
- package/src/themes/_standard-dark.scss +8 -0
- package/src/themes/_standard-default.scss +9 -0
- package/src/themes/_transparent.scss +9 -0
- package/src/themes/_true-dark.scss +11 -0
- package/src/themes/_warm-neutral.scss +11 -0
- package/src/themes.zip +0 -0
- package/src/tokens/tokens.json +133 -0
- package/src/utilities/_display.scss +11 -0
- package/src/utilities/_flex.scss +9 -0
- package/src/utilities/_position.scss +6 -0
- package/src/utilities/_screen-reader.scss +9 -0
- package/src/utilities/_spacing.scss +22 -0
- package/src/utilities/_text.scss +14 -0
- package/src/utilities/_visibility.scss +4 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// components/advanced/_steps.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
.steps {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: fn.space(md);
|
|
10
|
+
|
|
11
|
+
.step {
|
|
12
|
+
flex: 1;
|
|
13
|
+
text-align: center;
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
.circle {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
width: 2rem;
|
|
21
|
+
height: 2rem;
|
|
22
|
+
background-color: fn.color(muted);
|
|
23
|
+
color: fn.color(white);
|
|
24
|
+
border-radius: fn.radius(circle);
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
margin-bottom: fn.space(xs);
|
|
27
|
+
|
|
28
|
+
&.active {
|
|
29
|
+
background-color: fn.color(primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.completed {
|
|
33
|
+
background-color: fn.color(success);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.label {
|
|
38
|
+
font-size: 0.875rem;
|
|
39
|
+
color: fn.color(dark);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::after {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 1rem;
|
|
46
|
+
right: -50%;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 2px;
|
|
49
|
+
background-color: fn.color(muted);
|
|
50
|
+
z-index: -1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:last-child::after {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// components/advanced/_timeline.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
.timeline {
|
|
6
|
+
position: var(--ce-timeline-advanced-position, relative);
|
|
7
|
+
padding-left: var(--ce-timeline-advanced-padding, #{fn.space(xl)});
|
|
8
|
+
border-left: var(--ce-timeline-advanced-border, 2px solid #{fn.color(muted)});
|
|
9
|
+
|
|
10
|
+
.timeline__event {
|
|
11
|
+
margin-bottom: var(--ce-timeline-advanced-event-margin, #{fn.space(xl)});
|
|
12
|
+
position: var(--ce-timeline-advanced-event-position, relative);
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
content: var(--ce-timeline-advanced-dot-content, '');
|
|
16
|
+
position: var(--ce-timeline-advanced-dot-position, absolute);
|
|
17
|
+
left: var(--ce-timeline-advanced-dot-left, #{fn.space(lg)});
|
|
18
|
+
top: var(--ce-timeline-advanced-dot-top, 0.25rem);
|
|
19
|
+
width: var(--ce-timeline-advanced-dot-size, 1rem);
|
|
20
|
+
height: var(--ce-timeline-advanced-dot-size, 1rem);
|
|
21
|
+
background-color: var(
|
|
22
|
+
--ce-timeline-advanced-dot-bg,
|
|
23
|
+
#{fn.color(primary)}
|
|
24
|
+
);
|
|
25
|
+
border-radius: var(--ce-timeline-advanced-dot-radius, 50%);
|
|
26
|
+
border: var(
|
|
27
|
+
--ce-timeline-advanced-dot-border,
|
|
28
|
+
2px solid #{fn.color(white)}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.title {
|
|
33
|
+
font-weight: var(--ce-timeline-advanced-title-weight, bold);
|
|
34
|
+
color: var(--ce-timeline-advanced-title-color, #{fn.color(dark)});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.timestamp {
|
|
38
|
+
font-size: var(--ce-timeline-advanced-time-size, 0.75rem);
|
|
39
|
+
color: var(--ce-timeline-advanced-time-color, #{fn.color(muted)});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.content {
|
|
43
|
+
margin-top: var(--ce-timeline-advanced-content-margin, #{fn.space(sm)});
|
|
44
|
+
font-size: var(--ce-timeline-advanced-content-size, 0.9rem);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
// components/advanced/_wizard.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
// Advanced Wizard Component
|
|
6
|
+
// - Themeable via CSS variables
|
|
7
|
+
// - BEM naming convention
|
|
8
|
+
// - Accessible: ARIA roles, keyboard navigation
|
|
9
|
+
// - Supports steps, progress, completed, error, disabled
|
|
10
|
+
|
|
11
|
+
.wizard {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
gap: var(--ce-wizard-gap, #{fn.space(xl)});
|
|
16
|
+
background: var(--ce-wizard-bg, #{fn.color(white)});
|
|
17
|
+
color: var(--ce-wizard-color, #{fn.color(neutral-ink)});
|
|
18
|
+
font-size: var(--ce-wizard-font-size, 1rem);
|
|
19
|
+
padding: var(--ce-wizard-padding, #{fn.space(md)});
|
|
20
|
+
border-radius: var(--ce-wizard-radius, #{fn.radius(md)});
|
|
21
|
+
box-shadow: var(--ce-wizard-shadow, #{fn.shadow(xs)});
|
|
22
|
+
|
|
23
|
+
&__steps {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
gap: var(--ce-wizard-step-gap, #{fn.space(lg)});
|
|
27
|
+
align-items: center;
|
|
28
|
+
list-style: none;
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__step {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
align-items: center;
|
|
37
|
+
position: relative;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
outline: none;
|
|
40
|
+
transition: color 0.2s, background 0.2s;
|
|
41
|
+
color: var(--ce-wizard-step-color, #{fn.color(neutral-mid)});
|
|
42
|
+
background: var(--ce-wizard-step-bg, #{fn.color(neutral-surface)});
|
|
43
|
+
border-radius: var(--ce-wizard-step-radius, #{fn.radius(xl)});
|
|
44
|
+
padding: var(--ce-wizard-step-padding, #{fn.space(sm)} #{fn.space(md)});
|
|
45
|
+
min-width: 3em;
|
|
46
|
+
min-height: 3em;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
&:hover,
|
|
49
|
+
&:focus {
|
|
50
|
+
background: var(--ce-wizard-step-hover-bg, #{fn.color(accent-blue-soft)});
|
|
51
|
+
color: var(--ce-wizard-step-hover-color, #{fn.color(accent-blue)});
|
|
52
|
+
}
|
|
53
|
+
&--active {
|
|
54
|
+
background: var(--ce-wizard-step-active-bg, #{fn.color(accent-blue)});
|
|
55
|
+
color: var(--ce-wizard-step-active-color, #{fn.color(white)});
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
box-shadow: 0 0 0 var(--ce-wizard-outline, 2px)
|
|
58
|
+
var(--ce-wizard-step-active-shadow, #{fn.color(accent-blue-muted)});
|
|
59
|
+
}
|
|
60
|
+
&--completed {
|
|
61
|
+
background: var(--ce-wizard-step-completed-bg, #{fn.color(accent-blue-muted)});
|
|
62
|
+
color: var(--ce-wizard-step-completed-color, #{fn.color(accent-blue)});
|
|
63
|
+
}
|
|
64
|
+
&--error {
|
|
65
|
+
background: var(--ce-wizard-step-error-bg, #{fn.color(accent-rose-soft)});
|
|
66
|
+
color: var(--ce-wizard-step-error-color, #{fn.color(accent-rose)});
|
|
67
|
+
}
|
|
68
|
+
&--disabled {
|
|
69
|
+
opacity: 0.5;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
}
|
|
72
|
+
&__label {
|
|
73
|
+
margin-top: 0.5em;
|
|
74
|
+
font-size: 0.95em;
|
|
75
|
+
color: inherit;
|
|
76
|
+
}
|
|
77
|
+
&__icon {
|
|
78
|
+
font-size: 1.2em;
|
|
79
|
+
margin-bottom: 0.2em;
|
|
80
|
+
color: inherit;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&__progress {
|
|
85
|
+
flex: 1;
|
|
86
|
+
height: var(--ce-wizard-progress-height, 0.25em);
|
|
87
|
+
background: var(--ce-wizard-progress-bg, #{fn.color(gray-200)});
|
|
88
|
+
border-radius: var(--ce-wizard-progress-radius, var(--ce-radius-sm, 0.25em));
|
|
89
|
+
margin: var(--ce-wizard-progress-margin, 1em 0);
|
|
90
|
+
position: relative;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
&__bar {
|
|
93
|
+
height: 100%;
|
|
94
|
+
background: var(--ce-wizard-progress-bar, #{fn.color(accent-blue)});
|
|
95
|
+
border-radius: var(--ce-wizard-progress-radius, var(--ce-radius-sm, 0.25em));
|
|
96
|
+
transition: width 0.3s;
|
|
97
|
+
width: 0%; // Set dynamically
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Accessibility notes:
|
|
103
|
+
// - Use role="list" for steps, role="listitem" for step
|
|
104
|
+
// - Use aria-current, aria-disabled, aria-label as needed
|
|
105
|
+
// - Keyboard navigation: arrow keys, tab, enter/space to activate
|
|
106
|
+
|
|
107
|
+
// Example CSS variables for theming (add to :root or theme files)
|
|
108
|
+
// :root {
|
|
109
|
+
// --ce-wizard-bg: #fff;
|
|
110
|
+
// --ce-wizard-color: #222;
|
|
111
|
+
// --ce-wizard-font-size: 1rem;
|
|
112
|
+
// --ce-wizard-padding: 1em;
|
|
113
|
+
// --ce-wizard-radius: 0.5em;
|
|
114
|
+
// --ce-wizard-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
|
115
|
+
// --ce-wizard-gap: 2em;
|
|
116
|
+
// --ce-wizard-step-gap: 1.5em;
|
|
117
|
+
// --ce-wizard-step-color: #888;
|
|
118
|
+
// --ce-wizard-step-bg: #f5f7fa;
|
|
119
|
+
// --ce-wizard-step-radius: 1em;
|
|
120
|
+
// --ce-wizard-step-padding: 0.5em 1em;
|
|
121
|
+
// --ce-wizard-step-hover-bg: #e0eaff;
|
|
122
|
+
// --ce-wizard-step-hover-color: #0078d4;
|
|
123
|
+
// --ce-wizard-step-active-bg: #0078d4;
|
|
124
|
+
// --ce-wizard-step-active-color: #fff;
|
|
125
|
+
// --ce-wizard-step-active-shadow: #d0e7ff;
|
|
126
|
+
// --ce-wizard-step-completed-bg: #d0e7ff;
|
|
127
|
+
// --ce-wizard-step-completed-color: #0078d4;
|
|
128
|
+
// --ce-wizard-step-error-bg: #ffe0e0;
|
|
129
|
+
// --ce-wizard-step-error-color: #d6336c;
|
|
130
|
+
// --ce-wizard-progress-bg: #e0e0e0;
|
|
131
|
+
// --ce-wizard-progress-bar: #0078d4;
|
|
132
|
+
// }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// components/buttons/_button-group.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
.button-group {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
border-radius: fn.radius(md);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.button {
|
|
12
|
+
border-radius: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
|
|
15
|
+
&:not(:last-child) {
|
|
16
|
+
border-right: 1px solid fn.color(muted);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--vertical {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
|
|
23
|
+
.button:not(:last-child) {
|
|
24
|
+
border-right: none;
|
|
25
|
+
border-bottom: 1px solid fn.color(muted);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--rounded {
|
|
30
|
+
.button:first-child {
|
|
31
|
+
border-top-left-radius: fn.radius(md);
|
|
32
|
+
border-bottom-left-radius: fn.radius(md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button:last-child {
|
|
36
|
+
border-top-right-radius: fn.radius(md);
|
|
37
|
+
border-bottom-right-radius: fn.radius(md);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
// components/buttons/_button.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
@use "../../abstracts/mixins" as mx;
|
|
5
|
+
@use "sass:color";
|
|
6
|
+
|
|
7
|
+
.button,
|
|
8
|
+
.ce-btn {
|
|
9
|
+
--ce-button-bg: var(--ce-component-button-background, var(--ce-color-primary, var(--theme-primary, #{fn.color(primary)})));
|
|
10
|
+
--ce-button-color: var(--ce-component-button-foreground, var(--ce-color-text, var(--theme-fg, #{fn.color(white)})));
|
|
11
|
+
--ce-button-border: var(--ce-component-button-border, var(--ce-color-primary, var(--theme-primary, #{fn.color(primary)})));
|
|
12
|
+
--ce-button-radius: var(--ce-component-button-radius, var(--ce-radius-md, #{fn.radius(md)}));
|
|
13
|
+
--ce-button-padding-y: var(--ce-component-button-padding-y, var(--ce-space-8, #{fn.space(sm)}));
|
|
14
|
+
--ce-button-padding-x: var(--ce-component-button-padding-x, var(--ce-space-16, #{fn.space(md)}));
|
|
15
|
+
--ce-button-font-size: var(--ce-component-button-font-size, 1rem);
|
|
16
|
+
--ce-button-font-weight: var(--ce-component-button-font-weight, 500);
|
|
17
|
+
--ce-button-line-height: var(--ce-component-button-line-height, 1.2);
|
|
18
|
+
--ce-button-focus-ring: var(--ce-component-button-focus-ring, var(--ce-color-focus-ring, var(--theme-accent, #{fn.color(primary)})));
|
|
19
|
+
--ce-button-hover-bg: var(--ce-component-button-hover-background, var(--ce-button-bg));
|
|
20
|
+
|
|
21
|
+
background-color: var(--ce-button-bg);
|
|
22
|
+
color: var(--ce-button-color);
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
font-size: var(--ce-button-font-size);
|
|
28
|
+
font-weight: var(--ce-button-font-weight);
|
|
29
|
+
line-height: var(--ce-button-line-height);
|
|
30
|
+
padding: var(--ce-button-padding-y) var(--ce-button-padding-x);
|
|
31
|
+
border-radius: var(--ce-button-radius);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
text-align: center;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
border: 1px solid var(--ce-button-border);
|
|
36
|
+
outline: none;
|
|
37
|
+
transition: background-color 0.2s ease, border-color 0.2s ease,
|
|
38
|
+
color 0.2s ease;
|
|
39
|
+
|
|
40
|
+
// 💡 Layout-agnostic fixes
|
|
41
|
+
width: fit-content;
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
min-width: auto;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
@extend %transition !optional;
|
|
48
|
+
|
|
49
|
+
&:disabled {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
opacity: 0.6;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// COLOR VARIANTS - Default is Primary
|
|
56
|
+
&--primary {
|
|
57
|
+
--ce-button-bg: var(--ce-button-primary-bg, var(--ce-color-primary, var(--theme-primary, #{fn.color(primary)})));
|
|
58
|
+
--ce-button-color: var(--ce-button-primary-color, var(--ce-color-text, var(--theme-fg, #{fn.color(white)})));
|
|
59
|
+
--ce-button-border: var(--ce-button-primary-border, var(--ce-button-bg));
|
|
60
|
+
--ce-button-hover-bg: var(--ce-button-primary-hover, var(--theme-primary-hover, #{color.adjust(fn.color(primary), $lightness: -7%)}));
|
|
61
|
+
|
|
62
|
+
&:hover:not(:disabled) {
|
|
63
|
+
background-color: var(--ce-button-hover-bg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--secondary {
|
|
68
|
+
--ce-button-bg: var(--ce-button-secondary-bg, #{fn.color(secondary)});
|
|
69
|
+
--ce-button-color: var(--ce-button-secondary-color, #{fn.color(dark)});
|
|
70
|
+
--ce-button-border: var(--ce-button-secondary-border, #{fn.color(secondary)});
|
|
71
|
+
--ce-button-hover-bg: var(--ce-button-secondary-hover, #{color.adjust(fn.color(secondary), $lightness: -7%)});
|
|
72
|
+
|
|
73
|
+
&:hover:not(:disabled) {
|
|
74
|
+
background-color: var(--ce-button-hover-bg);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&--glass {
|
|
79
|
+
--ce-button-bg: var(--ce-button-glass-bg, rgba(255, 255, 255, 0.1));
|
|
80
|
+
--ce-button-border: var(--ce-button-glass-border, rgba(255, 255, 255, 0.2));
|
|
81
|
+
--ce-button-color: var(--ce-button-glass-color, var(--theme-fg, #{fn.color(white)}));
|
|
82
|
+
|
|
83
|
+
background-color: var(--ce-button-bg);
|
|
84
|
+
-webkit-backdrop-filter: blur(10px);
|
|
85
|
+
backdrop-filter: blur(10px);
|
|
86
|
+
border: 1px solid var(--ce-button-border);
|
|
87
|
+
color: var(--ce-button-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&--success {
|
|
91
|
+
--ce-button-bg: var(--ce-button-success-bg, #{fn.color(success)});
|
|
92
|
+
--ce-button-color: var(--ce-button-success-color, #{fn.color(white)});
|
|
93
|
+
--ce-button-border: var(--ce-button-success-border, #{fn.color(success)});
|
|
94
|
+
--ce-button-hover-bg: var(--ce-button-success-hover, #{color.adjust(fn.color(success), $lightness: -7%)});
|
|
95
|
+
|
|
96
|
+
&:hover:not(:disabled) {
|
|
97
|
+
background-color: var(--ce-button-hover-bg);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--danger {
|
|
102
|
+
--ce-button-bg: var(--ce-button-danger-bg, #{fn.color(danger)});
|
|
103
|
+
--ce-button-color: var(--ce-button-danger-color, #{fn.color(white)});
|
|
104
|
+
--ce-button-border: var(--ce-button-danger-border, #{fn.color(danger)});
|
|
105
|
+
--ce-button-hover-bg: var(--ce-button-danger-hover, #{color.adjust(fn.color(danger), $lightness: -7%)});
|
|
106
|
+
|
|
107
|
+
&:hover:not(:disabled) {
|
|
108
|
+
background-color: var(--ce-button-hover-bg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--warning {
|
|
113
|
+
--ce-button-bg: var(--ce-button-warning-bg, #{fn.color(warning)});
|
|
114
|
+
--ce-button-color: var(--ce-button-warning-color, #{fn.color(black)});
|
|
115
|
+
--ce-button-border: var(--ce-button-warning-border, #{fn.color(warning)});
|
|
116
|
+
--ce-button-hover-bg: var(--ce-button-warning-hover, #{color.adjust(fn.color(warning), $lightness: -7%)});
|
|
117
|
+
|
|
118
|
+
&:hover:not(:disabled) {
|
|
119
|
+
background-color: var(--ce-button-hover-bg);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--info {
|
|
124
|
+
--ce-button-bg: var(--ce-button-info-bg, #{fn.color(info)});
|
|
125
|
+
--ce-button-color: var(--ce-button-info-color, #{fn.color(white)});
|
|
126
|
+
--ce-button-border: var(--ce-button-info-border, #{fn.color(info)});
|
|
127
|
+
--ce-button-hover-bg: var(--ce-button-info-hover, #{color.adjust(fn.color(info), $lightness: -7%)});
|
|
128
|
+
|
|
129
|
+
&:hover:not(:disabled) {
|
|
130
|
+
background-color: var(--ce-button-hover-bg);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&--light {
|
|
135
|
+
--ce-button-bg: var(--ce-button-light-bg, #{fn.color(light)});
|
|
136
|
+
--ce-button-color: var(--ce-button-light-color, #{fn.color(dark)});
|
|
137
|
+
--ce-button-border: var(--ce-button-light-border, #{fn.color(light)});
|
|
138
|
+
--ce-button-hover-bg: var(--ce-button-light-hover, #{color.adjust(fn.color(light), $lightness: -10%)});
|
|
139
|
+
|
|
140
|
+
&:hover:not(:disabled) {
|
|
141
|
+
background-color: var(--ce-button-hover-bg);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&--dark {
|
|
146
|
+
--ce-button-bg: var(--ce-button-dark-bg, #{fn.color(dark)});
|
|
147
|
+
--ce-button-color: var(--ce-button-dark-color, #{fn.color(white)});
|
|
148
|
+
--ce-button-border: var(--ce-button-dark-border, #{fn.color(dark)});
|
|
149
|
+
--ce-button-hover-bg: var(--ce-button-dark-hover, #{color.adjust(fn.color(dark), $lightness: 5%)});
|
|
150
|
+
|
|
151
|
+
&:hover:not(:disabled) {
|
|
152
|
+
background-color: var(--ce-button-hover-bg);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// APPEARANCE/STYLE VARIANTS
|
|
157
|
+
&--outline {
|
|
158
|
+
background-color: transparent !important;
|
|
159
|
+
border: 1px solid currentColor;
|
|
160
|
+
|
|
161
|
+
&.ce-btn--primary, &.button--primary {
|
|
162
|
+
color: var(--ce-button-outline-primary-color, #{fn.color(primary)});
|
|
163
|
+
border-color: var(--ce-button-outline-primary-border, #{fn.color(primary)});
|
|
164
|
+
&:hover:not(:disabled) {
|
|
165
|
+
background-color: var(--ce-button-outline-primary-hover, rgba(fn.color(primary), 0.1)) !important;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
&.ce-btn--secondary, &.button--secondary {
|
|
169
|
+
color: var(--ce-button-outline-secondary-color, #{fn.color(secondary)});
|
|
170
|
+
border-color: var(--ce-button-outline-secondary-border, #{fn.color(secondary)});
|
|
171
|
+
&:hover:not(:disabled) {
|
|
172
|
+
background-color: var(--ce-button-outline-secondary-hover, rgba(fn.color(secondary), 0.1)) !important;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
&.ce-btn--success, &.button--success {
|
|
176
|
+
color: var(--ce-button-outline-success-color, #{fn.color(success)});
|
|
177
|
+
border-color: var(--ce-button-outline-success-border, #{fn.color(success)});
|
|
178
|
+
&:hover:not(:disabled) {
|
|
179
|
+
background-color: var(--ce-button-outline-success-hover, rgba(fn.color(success), 0.1)) !important;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
&.ce-btn--danger, &.button--danger {
|
|
183
|
+
color: var(--ce-button-outline-danger-color, #{fn.color(danger)});
|
|
184
|
+
border-color: var(--ce-button-outline-danger-border, #{fn.color(danger)});
|
|
185
|
+
&:hover:not(:disabled) {
|
|
186
|
+
background-color: var(--ce-button-outline-danger-hover, rgba(fn.color(danger), 0.1)) !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&--ghost {
|
|
192
|
+
background-color: transparent !important;
|
|
193
|
+
border: none;
|
|
194
|
+
|
|
195
|
+
&.ce-btn--primary, &.button--primary {
|
|
196
|
+
color: var(--ce-button-ghost-primary-color, #{fn.color(primary)});
|
|
197
|
+
&:hover:not(:disabled) {
|
|
198
|
+
background-color: var(--ce-button-ghost-primary-hover, rgba(fn.color(primary), 0.05)) !important;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
&.ce-btn--secondary, &.button--secondary {
|
|
202
|
+
color: var(--ce-button-ghost-secondary-color, #{fn.color(secondary)});
|
|
203
|
+
&:hover:not(:disabled) {
|
|
204
|
+
background-color: var(--ce-button-ghost-secondary-hover, rgba(fn.color(secondary), 0.05)) !important;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
&.ce-btn--success, &.button--success {
|
|
208
|
+
color: var(--ce-button-ghost-success-color, #{fn.color(success)});
|
|
209
|
+
&:hover:not(:disabled) {
|
|
210
|
+
background-color: var(--ce-button-ghost-success-hover, rgba(fn.color(success), 0.05)) !important;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
&.ce-btn--danger, &.button--danger {
|
|
214
|
+
color: var(--ce-button-ghost-danger-color, #{fn.color(danger)});
|
|
215
|
+
&:hover:not(:disabled) {
|
|
216
|
+
background-color: var(--ce-button-ghost-danger-hover, rgba(fn.color(danger), 0.05)) !important;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// Solid appearance (default)
|
|
222
|
+
&--solid {
|
|
223
|
+
// Already handled by color variants above
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// SIZE VARIANTS
|
|
227
|
+
&--xs {
|
|
228
|
+
--ce-button-font-size: 0.75rem;
|
|
229
|
+
--ce-button-padding-y: var(--ce-space-4, #{fn.space(xs)});
|
|
230
|
+
--ce-button-padding-x: var(--ce-space-4, #{fn.space(xs)});
|
|
231
|
+
--ce-button-line-height: 1;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&--sm {
|
|
235
|
+
--ce-button-font-size: 0.875rem;
|
|
236
|
+
--ce-button-padding-y: var(--ce-space-4, #{fn.space(xs)});
|
|
237
|
+
--ce-button-padding-x: var(--ce-space-8, #{fn.space(sm)});
|
|
238
|
+
--ce-button-line-height: 1;
|
|
239
|
+
letter-spacing: var(--ce-button-letter-spacing, -0.2px);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&--lg {
|
|
243
|
+
--ce-button-font-size: 1.125rem;
|
|
244
|
+
--ce-button-padding-y: var(--ce-space-16, #{fn.space(md)});
|
|
245
|
+
--ce-button-padding-x: var(--ce-space-24, #{fn.space(lg)});
|
|
246
|
+
--ce-button-line-height: 1.4;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&--xl {
|
|
250
|
+
--ce-button-font-size: 1.25rem;
|
|
251
|
+
--ce-button-padding-y: var(--ce-space-24, #{fn.space(lg)});
|
|
252
|
+
--ce-button-padding-x: var(--ce-space-32, #{fn.space(xl)});
|
|
253
|
+
--ce-button-line-height: 1.5;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&--xxl {
|
|
257
|
+
--ce-button-font-size: 1.375rem;
|
|
258
|
+
--ce-button-padding-y: var(--ce-space-24, #{fn.space(lg)});
|
|
259
|
+
--ce-button-padding-x: var(--ce-space-48, #{fn.space(xxl)});
|
|
260
|
+
--ce-button-line-height: 1.5;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// SHAPE VARIANTS
|
|
264
|
+
&--block,
|
|
265
|
+
&--full {
|
|
266
|
+
display: flex;
|
|
267
|
+
width: 100%;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&--rounded {
|
|
271
|
+
--ce-button-radius: var(--ce-radius-md, #{fn.radius(md)});
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&--pill {
|
|
275
|
+
--ce-button-radius: var(--ce-radius-pill, #{fn.radius(pill)});
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&--circle,
|
|
279
|
+
&--square {
|
|
280
|
+
--ce-button-padding-y: var(--ce-space-8, #{fn.space(sm)});
|
|
281
|
+
--ce-button-padding-x: var(--ce-space-8, #{fn.space(sm)});
|
|
282
|
+
--ce-button-radius: 50%;
|
|
283
|
+
width: var(--ce-button-square-size, 2.5rem);
|
|
284
|
+
height: var(--ce-button-square-size, 2.5rem);
|
|
285
|
+
justify-content: center;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&--square {
|
|
289
|
+
--ce-button-radius: var(--ce-radius-md, #{fn.radius(md)});
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&:focus-visible {
|
|
293
|
+
outline: 2px solid var(--ce-button-focus-ring);
|
|
294
|
+
outline-offset: 2px;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// components/buttons/_icon-button.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
.icon-button {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: fn.space(sm);
|
|
10
|
+
width: 2.5rem;
|
|
11
|
+
height: 2.5rem;
|
|
12
|
+
border: none;
|
|
13
|
+
border-radius: fn.radius(circle);
|
|
14
|
+
background-color: fn.color(light);
|
|
15
|
+
color: fn.color(primary);
|
|
16
|
+
font-size: 1.25rem;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
@extend %transition !optional;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: fn.color(primary);
|
|
23
|
+
color: fn.color(white);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:disabled {
|
|
27
|
+
opacity: 0.5;
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--sm {
|
|
32
|
+
width: 2rem;
|
|
33
|
+
height: 2rem;
|
|
34
|
+
font-size: 1rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&--lg {
|
|
38
|
+
width: 3rem;
|
|
39
|
+
height: 3rem;
|
|
40
|
+
font-size: 1.5rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// components/charts/_chart-types.scss
|
|
2
|
+
|
|
3
|
+
@use "../../abstracts/functions" as fn;
|
|
4
|
+
|
|
5
|
+
// Chart Types Component
|
|
6
|
+
// - Themeable via CSS variables
|
|
7
|
+
// - BEM naming convention
|
|
8
|
+
// - Accessible: ARIA roles, focus styles, color contrast
|
|
9
|
+
// - Responsive: adapts to container width
|
|
10
|
+
|
|
11
|
+
.chart-wrapper {
|
|
12
|
+
background-color: var(--ce-chart-bg, #{fn.color(white)});
|
|
13
|
+
padding: var(--ce-chart-padding, #{fn.space(md)});
|
|
14
|
+
border-radius: var(--ce-chart-radius, #{fn.radius(sm)});
|
|
15
|
+
box-shadow: var(--ce-chart-shadow, #{fn.shadow(sm)});
|
|
16
|
+
border: 1px solid var(--ce-chart-border, #{fn.color(muted)});
|
|
17
|
+
margin-bottom: var(--ce-chart-margin, #{fn.space(lg)});
|
|
18
|
+
width: 100%;
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
overflow-x: auto;
|
|
21
|
+
outline: none;
|
|
22
|
+
transition: box-shadow 0.2s;
|
|
23
|
+
&:focus {
|
|
24
|
+
box-shadow: 0 0 0 2px var(--ce-chart-focus, #{fn.color(accent-blue)});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--bar,
|
|
28
|
+
&--line,
|
|
29
|
+
&--pie,
|
|
30
|
+
&--radar {
|
|
31
|
+
canvas {
|
|
32
|
+
width: 100% !important;
|
|
33
|
+
height: var(--ce-chart-canvas-height, 280px) !important;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
border-radius: var(--ce-chart-canvas-radius, 0.3em);
|
|
36
|
+
background: var(--ce-chart-canvas-bg, transparent);
|
|
37
|
+
outline: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__title {
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
font-size: var(--ce-chart-title-size, 1.1rem);
|
|
44
|
+
margin-bottom: var(--ce-chart-title-margin, #{fn.space(sm)});
|
|
45
|
+
color: var(--ce-chart-title-color, #{fn.color(dark)});
|
|
46
|
+
line-height: 1.3;
|
|
47
|
+
letter-spacing: 0.01em;
|
|
48
|
+
outline: none;
|
|
49
|
+
&:focus {
|
|
50
|
+
text-decoration: underline;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Accessibility notes:
|
|
54
|
+
// - Use role="img" and aria-label on chart canvas for screen readers
|
|
55
|
+
// - Ensure color contrast for chart elements
|
|
56
|
+
// - Provide keyboard focus styles for wrapper and title
|
|
57
|
+
|
|
58
|
+
// Example CSS variables for theming (add to :root or theme files)
|
|
59
|
+
// :root {
|
|
60
|
+
// --ce-chart-bg: #fff;
|
|
61
|
+
// --ce-chart-padding: 1.5em;
|
|
62
|
+
// --ce-chart-radius: 0.5em;
|
|
63
|
+
// --ce-chart-shadow: 0 1px 4px rgba(0,0,0,0.04);
|
|
64
|
+
// --ce-chart-border: #e0e0e0;
|
|
65
|
+
// --ce-chart-margin: 2em;
|
|
66
|
+
// --ce-chart-focus: #0078d4;
|
|
67
|
+
// --ce-chart-canvas-height: 280px;
|
|
68
|
+
// --ce-chart-canvas-radius: 0.3em;
|
|
69
|
+
// --ce-chart-canvas-bg: transparent;
|
|
70
|
+
// --ce-chart-title-size: 1.1rem;
|
|
71
|
+
// --ce-chart-title-margin: 0.5em;
|
|
72
|
+
// --ce-chart-title-color: #222;
|
|
73
|
+
// }
|
|
74
|
+
}
|