@skewedaspect/sleekspace-ui 0.2.0-beta.1
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 +111 -0
- package/dist/sleekspace-ui.css +12844 -0
- package/dist/sleekspace-ui.es.js +19021 -0
- package/dist/sleekspace-ui.umd.js +19040 -0
- package/docs/components/accordion.md +92 -0
- package/docs/components/alert.md +72 -0
- package/docs/components/avatar.md +69 -0
- package/docs/components/breadcrumbs.md +65 -0
- package/docs/components/button/_meta.yaml +12 -0
- package/docs/components/button/accessibility.md +16 -0
- package/docs/components/button/custom-colors.md +18 -0
- package/docs/components/button/icons.md +31 -0
- package/docs/components/button/intro.md +8 -0
- package/docs/components/button/kinds.md +25 -0
- package/docs/components/button/sizes.md +14 -0
- package/docs/components/button/states.md +12 -0
- package/docs/components/button/usage.md +23 -0
- package/docs/components/button/variants.md +14 -0
- package/docs/components/button.md +110 -0
- package/docs/components/card.md +87 -0
- package/docs/components/checkbox.md +77 -0
- package/docs/components/collapsible.md +71 -0
- package/docs/components/divider.md +62 -0
- package/docs/components/dropdown.md +88 -0
- package/docs/components/field.md +80 -0
- package/docs/components/group.md +41 -0
- package/docs/components/input.md +84 -0
- package/docs/components/listbox.md +82 -0
- package/docs/components/modal.md +101 -0
- package/docs/components/navbar.md +64 -0
- package/docs/components/number-input.md +78 -0
- package/docs/components/page.md +77 -0
- package/docs/components/pagination.md +88 -0
- package/docs/components/panel.md +74 -0
- package/docs/components/popover.md +93 -0
- package/docs/components/progress.md +76 -0
- package/docs/components/radio.md +86 -0
- package/docs/components/sidebar.md +74 -0
- package/docs/components/skeleton.md +76 -0
- package/docs/components/slider.md +94 -0
- package/docs/components/spinner.md +59 -0
- package/docs/components/switch.md +97 -0
- package/docs/components/table.md +91 -0
- package/docs/components/tabs.md +108 -0
- package/docs/components/tag.md +75 -0
- package/docs/components/tags-input.md +88 -0
- package/docs/components/textarea.md +80 -0
- package/docs/components/theme.md +65 -0
- package/docs/components/toast.md +95 -0
- package/docs/components/tooltip.md +90 -0
- package/docs/guides/custom-colors.md +84 -0
- package/docs/guides/design-tokens.md +105 -0
- package/docs/guides/getting-started.md +144 -0
- package/docs/guides/installation.md +62 -0
- package/docs/guides/theming.md +101 -0
- package/package.json +76 -0
- package/src/components/Accordion/SkAccordion.vue +133 -0
- package/src/components/Accordion/SkAccordionItem.vue +131 -0
- package/src/components/Accordion/index.ts +3 -0
- package/src/components/Accordion/types.ts +9 -0
- package/src/components/Alert/SkAlert.vue +137 -0
- package/src/components/Alert/types.ts +10 -0
- package/src/components/Avatar/SkAvatar.vue +141 -0
- package/src/components/Avatar/index.ts +8 -0
- package/src/components/Avatar/types.ts +31 -0
- package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +76 -0
- package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +38 -0
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +93 -0
- package/src/components/Breadcrumbs/index.ts +10 -0
- package/src/components/Breadcrumbs/types.ts +36 -0
- package/src/components/Button/SkButton.vue +148 -0
- package/src/components/Button/types.ts +21 -0
- package/src/components/Card/SkCard.vue +144 -0
- package/src/components/Card/types.ts +12 -0
- package/src/components/Checkbox/SkCheckbox.vue +136 -0
- package/src/components/Checkbox/index.ts +8 -0
- package/src/components/Checkbox/types.ts +10 -0
- package/src/components/Collapsible/SkCollapsible.vue +159 -0
- package/src/components/Collapsible/index.ts +2 -0
- package/src/components/Collapsible/types.ts +8 -0
- package/src/components/Divider/SkDivider.vue +63 -0
- package/src/components/Divider/types.ts +15 -0
- package/src/components/Dropdown/SkDropdown.vue +150 -0
- package/src/components/Dropdown/SkDropdownMenuItem.vue +58 -0
- package/src/components/Dropdown/SkDropdownMenuSeparator.vue +26 -0
- package/src/components/Dropdown/SkDropdownSubmenu.vue +107 -0
- package/src/components/Dropdown/index.ts +11 -0
- package/src/components/Dropdown/types.ts +11 -0
- package/src/components/Field/SkField.vue +152 -0
- package/src/components/Field/index.ts +8 -0
- package/src/components/Field/types.ts +7 -0
- package/src/components/Group/SkGroup.vue +52 -0
- package/src/components/Group/types.ts +10 -0
- package/src/components/Input/SkInput.vue +117 -0
- package/src/components/Input/index.ts +8 -0
- package/src/components/Input/types.ts +11 -0
- package/src/components/Listbox/SkListbox.vue +164 -0
- package/src/components/Listbox/SkListboxItem.vue +68 -0
- package/src/components/Listbox/SkListboxSeparator.vue +26 -0
- package/src/components/Listbox/index.ts +10 -0
- package/src/components/Listbox/types.ts +10 -0
- package/src/components/Modal/SkModal.vue +231 -0
- package/src/components/Modal/index.ts +8 -0
- package/src/components/Modal/types.ts +12 -0
- package/src/components/NavBar/SkNavBar.vue +83 -0
- package/src/components/NavBar/index.ts +8 -0
- package/src/components/NavBar/types.ts +15 -0
- package/src/components/NumberInput/SkNumberInput.vue +168 -0
- package/src/components/NumberInput/index.ts +8 -0
- package/src/components/NumberInput/types.ts +10 -0
- package/src/components/Page/SkPage.vue +94 -0
- package/src/components/Page/index.ts +8 -0
- package/src/components/Page/types.ts +21 -0
- package/src/components/Pagination/SkPagination.vue +185 -0
- package/src/components/Pagination/SkPaginationItem.vue +107 -0
- package/src/components/Pagination/index.ts +9 -0
- package/src/components/Pagination/types.ts +40 -0
- package/src/components/Panel/SkPanel.vue +96 -0
- package/src/components/Panel/types.ts +15 -0
- package/src/components/Popover/SkPopover.vue +185 -0
- package/src/components/Popover/index.ts +8 -0
- package/src/components/Popover/types.ts +11 -0
- package/src/components/Progress/SkProgress.vue +144 -0
- package/src/components/Progress/index.ts +8 -0
- package/src/components/Progress/types.ts +34 -0
- package/src/components/Radio/SkRadio.vue +110 -0
- package/src/components/Radio/SkRadioGroup.vue +92 -0
- package/src/components/Radio/index.ts +9 -0
- package/src/components/Radio/types.ts +11 -0
- package/src/components/Sidebar/README.md +405 -0
- package/src/components/Sidebar/SkSidebar.vue +88 -0
- package/src/components/Sidebar/SkSidebarItem.vue +58 -0
- package/src/components/Sidebar/SkSidebarSection.vue +40 -0
- package/src/components/Sidebar/types.ts +3 -0
- package/src/components/Skeleton/SkSkeleton.vue +171 -0
- package/src/components/Skeleton/index.ts +8 -0
- package/src/components/Skeleton/types.ts +31 -0
- package/src/components/Slider/SkSlider.vue +165 -0
- package/src/components/Slider/index.ts +8 -0
- package/src/components/Slider/types.ts +44 -0
- package/src/components/Spinner/SkSpinner.vue +105 -0
- package/src/components/Spinner/index.ts +8 -0
- package/src/components/Spinner/types.ts +28 -0
- package/src/components/Switch/SkSwitch.vue +215 -0
- package/src/components/Switch/index.ts +8 -0
- package/src/components/Switch/types.ts +12 -0
- package/src/components/Table/SkTable.vue +109 -0
- package/src/components/Table/index.ts +2 -0
- package/src/components/Table/types.ts +15 -0
- package/src/components/Tabs/README.md +331 -0
- package/src/components/Tabs/SkTab.vue +84 -0
- package/src/components/Tabs/SkTabList.vue +62 -0
- package/src/components/Tabs/SkTabPanel.vue +47 -0
- package/src/components/Tabs/SkTabPanels.vue +23 -0
- package/src/components/Tabs/SkTabs.vue +124 -0
- package/src/components/Tabs/types.ts +21 -0
- package/src/components/Tag/SkTag.vue +129 -0
- package/src/components/Tag/types.ts +15 -0
- package/src/components/TagsInput/SkTagsInput.vue +184 -0
- package/src/components/TagsInput/index.ts +8 -0
- package/src/components/TagsInput/types.ts +10 -0
- package/src/components/Textarea/SkTextarea.vue +117 -0
- package/src/components/Textarea/index.ts +8 -0
- package/src/components/Textarea/types.ts +10 -0
- package/src/components/Theme/SkTheme.vue +47 -0
- package/src/components/Theme/types.ts +17 -0
- package/src/components/Theme/useTheme.ts +131 -0
- package/src/components/Toast/SkToast.vue +156 -0
- package/src/components/Toast/SkToastProvider.vue +180 -0
- package/src/components/Toast/index.ts +15 -0
- package/src/components/Toast/types.ts +63 -0
- package/src/components/Toast/useToast.ts +78 -0
- package/src/components/Tooltip/SkTooltip.vue +162 -0
- package/src/components/Tooltip/SkTooltipProvider.vue +114 -0
- package/src/components/Tooltip/index.ts +9 -0
- package/src/components/Tooltip/types.ts +13 -0
- package/src/composables/useCustomColors.test.ts +505 -0
- package/src/composables/useCustomColors.ts +124 -0
- package/src/composables/usePortalContext.test.ts +402 -0
- package/src/composables/usePortalContext.ts +95 -0
- package/src/global.d.ts +76 -0
- package/src/index.ts +259 -0
- package/src/styles/_scrollbar.scss +100 -0
- package/src/styles/base/_fonts.scss +105 -0
- package/src/styles/base/_global.scss +47 -0
- package/src/styles/base/_index.scss +24 -0
- package/src/styles/base/_reset.scss +11 -0
- package/src/styles/base/_typography.scss +178 -0
- package/src/styles/components/_accordion.scss +250 -0
- package/src/styles/components/_alert.scss +239 -0
- package/src/styles/components/_avatar.scss +133 -0
- package/src/styles/components/_breadcrumbs.scss +137 -0
- package/src/styles/components/_button.scss +731 -0
- package/src/styles/components/_card.scss +141 -0
- package/src/styles/components/_checkbox.scss +232 -0
- package/src/styles/components/_collapsible.scss +158 -0
- package/src/styles/components/_divider.scss +121 -0
- package/src/styles/components/_field.scss +87 -0
- package/src/styles/components/_group.scss +138 -0
- package/src/styles/components/_index.scss +46 -0
- package/src/styles/components/_input.scss +205 -0
- package/src/styles/components/_listbox.scss +453 -0
- package/src/styles/components/_menu.scss +216 -0
- package/src/styles/components/_modal.scss +329 -0
- package/src/styles/components/_navbar.scss +258 -0
- package/src/styles/components/_number-input.scss +352 -0
- package/src/styles/components/_page.scss +98 -0
- package/src/styles/components/_pagination.scss +411 -0
- package/src/styles/components/_panel.scss +281 -0
- package/src/styles/components/_popover.scss +258 -0
- package/src/styles/components/_progress.scss +280 -0
- package/src/styles/components/_radio.scss +255 -0
- package/src/styles/components/_sidebar.scss +92 -0
- package/src/styles/components/_skeleton.scss +138 -0
- package/src/styles/components/_slider.scss +262 -0
- package/src/styles/components/_spinner.scss +331 -0
- package/src/styles/components/_switch.scss +370 -0
- package/src/styles/components/_table.scss +405 -0
- package/src/styles/components/_tabs.scss +486 -0
- package/src/styles/components/_tag.scss +425 -0
- package/src/styles/components/_tags-input.scss +279 -0
- package/src/styles/components/_textarea.scss +208 -0
- package/src/styles/components/_toast.scss +331 -0
- package/src/styles/components/_tooltip.scss +206 -0
- package/src/styles/fonts/Titillium_Web/OFL.txt +93 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf +0 -0
- package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf +0 -0
- package/src/styles/index.scss +17 -0
- package/src/styles/mixins/_cut-border.scss +254 -0
- package/src/styles/mixins/_index.scss +7 -0
- package/src/styles/theme/_variables.scss +42 -0
- package/src/styles/themes/README.md +127 -0
- package/src/styles/themes/_colorful.scss +58 -0
- package/src/styles/themes/_greyscale.scss +58 -0
- package/src/styles/themes/index.scss +9 -0
- package/src/styles/tokens/README.md +268 -0
- package/src/styles/tokens/_foundation-borders.scss +26 -0
- package/src/styles/tokens/_foundation-colors.scss +169 -0
- package/src/styles/tokens/_foundation-glow.scss +36 -0
- package/src/styles/tokens/_foundation-radius.scss +53 -0
- package/src/styles/tokens/_foundation-scrollbar.scss +31 -0
- package/src/styles/tokens/_foundation-shadows.scss +37 -0
- package/src/styles/tokens/_foundation-space.scss +36 -0
- package/src/styles/tokens/_foundation-transitions.scss +37 -0
- package/src/styles/tokens/_foundation-typography.scss +58 -0
- package/src/styles/tokens/_semantic-color-kinds.scss +112 -0
- package/src/styles/tokens/_semantic-colors.scss +10 -0
- package/src/styles/tokens/_semantic-interactive.scss +29 -0
- package/src/styles/tokens/_semantic-scrollbar.scss +48 -0
- package/src/styles/tokens/_semantic-surfaces.scss +36 -0
- package/src/styles/tokens/index.scss +38 -0
- package/src/styles/tokens.scss +268 -0
- package/src/styles/utilities/_index.scss +9 -0
- package/src/styles/utilities/_typography.scss +121 -0
- package/src/types.ts +50 -0
- package/web-types.json +3524 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Pagination Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Follows button styling patterns with size system and variants.
|
|
5
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
@use '../mixins/cut-border' as *;
|
|
8
|
+
|
|
9
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
.sk-pagination
|
|
12
|
+
{
|
|
13
|
+
// Layout
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
gap: var(--sk-space-xs);
|
|
18
|
+
|
|
19
|
+
// Color tokens - Default to neutral
|
|
20
|
+
--sk-pagination-color-base: var(--sk-neutral-base);
|
|
21
|
+
--sk-pagination-fg: var(--sk-neutral-text);
|
|
22
|
+
|
|
23
|
+
// Semantic kind variants
|
|
24
|
+
&.sk-neutral
|
|
25
|
+
{
|
|
26
|
+
--sk-pagination-color-base: var(--sk-neutral-base);
|
|
27
|
+
--sk-pagination-fg: var(--sk-neutral-text);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.sk-primary
|
|
31
|
+
{
|
|
32
|
+
--sk-pagination-color-base: var(--sk-primary-base);
|
|
33
|
+
--sk-pagination-fg: var(--sk-primary-text);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.sk-accent
|
|
37
|
+
{
|
|
38
|
+
--sk-pagination-color-base: var(--sk-accent-base);
|
|
39
|
+
--sk-pagination-fg: var(--sk-accent-text);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.sk-info
|
|
43
|
+
{
|
|
44
|
+
--sk-pagination-color-base: var(--sk-info-base);
|
|
45
|
+
--sk-pagination-fg: var(--sk-info-text);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.sk-success
|
|
49
|
+
{
|
|
50
|
+
--sk-pagination-color-base: var(--sk-success-base);
|
|
51
|
+
--sk-pagination-fg: var(--sk-success-text);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.sk-warning
|
|
55
|
+
{
|
|
56
|
+
--sk-pagination-color-base: var(--sk-warning-base);
|
|
57
|
+
--sk-pagination-fg: var(--sk-warning-text);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.sk-danger
|
|
61
|
+
{
|
|
62
|
+
--sk-pagination-color-base: var(--sk-danger-base);
|
|
63
|
+
--sk-pagination-fg: var(--sk-danger-text);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
68
|
+
|
|
69
|
+
.sk-pagination-item
|
|
70
|
+
{
|
|
71
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
72
|
+
// Size System Tokens (compact version of button sizing)
|
|
73
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
74
|
+
|
|
75
|
+
--sk-pagination-height-base: 1.625rem;
|
|
76
|
+
--sk-pagination-font-size-base: 0.75rem;
|
|
77
|
+
|
|
78
|
+
--sk-pagination-scale-xs: 0.625;
|
|
79
|
+
--sk-pagination-scale-sm: 0.8125;
|
|
80
|
+
--sk-pagination-scale-md: 1;
|
|
81
|
+
--sk-pagination-scale-lg: 1.25;
|
|
82
|
+
--sk-pagination-scale-xl: 1.5;
|
|
83
|
+
|
|
84
|
+
--sk-pagination-font-scale-xs: 0.769;
|
|
85
|
+
--sk-pagination-font-scale-sm: 0.923;
|
|
86
|
+
--sk-pagination-font-scale-md: 1;
|
|
87
|
+
--sk-pagination-font-scale-lg: 1.077;
|
|
88
|
+
--sk-pagination-font-scale-xl: 1.231;
|
|
89
|
+
|
|
90
|
+
--sk-pagination-radius-factor: var(--sk-border-radius-factor);
|
|
91
|
+
--sk-pagination-border-width: var(--sk-border-width-thin);
|
|
92
|
+
--sk-pagination-transition-duration: var(--sk-transition-normal);
|
|
93
|
+
--sk-pagination-transition-easing: var(--sk-transition-easing);
|
|
94
|
+
--sk-pagination-disabled-opacity: var(--sk-opacity-disabled);
|
|
95
|
+
|
|
96
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
97
|
+
// Color Tokens
|
|
98
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
99
|
+
|
|
100
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
101
|
+
--sk-pagination-glow-shadow: 0 0 0 transparent;
|
|
102
|
+
|
|
103
|
+
--sk-pagination-bg: color-mix(
|
|
104
|
+
in oklch,
|
|
105
|
+
color-mix(in oklch, var(--sk-pagination-color-base) 75%, transparent 25%),
|
|
106
|
+
#000 46.25%
|
|
107
|
+
);
|
|
108
|
+
--sk-pagination-bg-hover: color-mix(in oklch, var(--sk-pagination-bg) 85%, white 15%);
|
|
109
|
+
--sk-pagination-bg-active: color-mix(in oklch, var(--sk-pagination-bg) 85%, black 15%);
|
|
110
|
+
--sk-pagination-border-hover: color-mix(in oklch, var(--sk-pagination-color-base), white 12.68%);
|
|
111
|
+
|
|
112
|
+
// Variant tokens
|
|
113
|
+
--sk-pagination-outline-bg: rgba(5, 5, 5, 0.15);
|
|
114
|
+
--sk-pagination-subtle-opacity: var(--sk-opacity-subtle);
|
|
115
|
+
--sk-pagination-subtle-opacity-hover: var(--sk-opacity-subtle-hover);
|
|
116
|
+
--sk-pagination-subtle-border-opacity: var(--sk-opacity-subtle-border);
|
|
117
|
+
--sk-pagination-subtle-border-opacity-hover: var(--sk-opacity-subtle-border-hover);
|
|
118
|
+
--sk-pagination-glow-size: 8px;
|
|
119
|
+
--sk-pagination-glow-opacity: 0.4;
|
|
120
|
+
|
|
121
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
122
|
+
// Current size (set by size variants below)
|
|
123
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
124
|
+
|
|
125
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-md));
|
|
126
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-md));
|
|
127
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
128
|
+
|
|
129
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
130
|
+
// Base Styles
|
|
131
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
132
|
+
|
|
133
|
+
@include cut-border(
|
|
134
|
+
$cut: var(--sk-pagination-cut-size),
|
|
135
|
+
$border-width: var(--sk-pagination-border-width),
|
|
136
|
+
$border-color: var(--sk-pagination-border-color),
|
|
137
|
+
$corners: (top-left, bottom-right)
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
display: inline-flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
min-width: var(--sk-pagination-current-height);
|
|
144
|
+
height: var(--sk-pagination-current-height);
|
|
145
|
+
padding: 0 0.5em;
|
|
146
|
+
border: none;
|
|
147
|
+
font-family: inherit;
|
|
148
|
+
font-size: var(--sk-pagination-current-font-size);
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
line-height: 1.5;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
user-select: none;
|
|
153
|
+
|
|
154
|
+
transition:
|
|
155
|
+
color var(--sk-pagination-transition-duration) var(--sk-pagination-transition-easing),
|
|
156
|
+
background-color var(--sk-pagination-transition-duration) var(--sk-pagination-transition-easing),
|
|
157
|
+
border-color var(--sk-pagination-transition-duration) var(--sk-pagination-transition-easing),
|
|
158
|
+
box-shadow var(--sk-pagination-transition-duration) var(--sk-pagination-transition-easing);
|
|
159
|
+
|
|
160
|
+
@supports (corner-shape: bevel)
|
|
161
|
+
{
|
|
162
|
+
box-shadow: var(--sk-pagination-glow-shadow);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Focus state
|
|
166
|
+
&:focus-visible
|
|
167
|
+
{
|
|
168
|
+
outline: var(--sk-border-width-base) solid var(--sk-pagination-color-base);
|
|
169
|
+
outline-offset: 2px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Disabled state
|
|
173
|
+
&:disabled
|
|
174
|
+
{
|
|
175
|
+
opacity: var(--sk-pagination-disabled-opacity);
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Ellipsis (non-interactive)
|
|
180
|
+
&.sk-ellipsis
|
|
181
|
+
{
|
|
182
|
+
cursor: default;
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
background: transparent !important;
|
|
185
|
+
border-color: transparent !important;
|
|
186
|
+
--sk-pagination-border-color: transparent;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
190
|
+
// Size Variants
|
|
191
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
192
|
+
|
|
193
|
+
&.sk-xs
|
|
194
|
+
{
|
|
195
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-xs));
|
|
196
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-xs));
|
|
197
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
198
|
+
|
|
199
|
+
@include cut-border(
|
|
200
|
+
$cut: var(--sk-pagination-cut-size),
|
|
201
|
+
$border-width: var(--sk-pagination-border-width),
|
|
202
|
+
$border-color: var(--sk-pagination-border-color),
|
|
203
|
+
$corners: (top-left, bottom-right)
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&.sk-sm
|
|
208
|
+
{
|
|
209
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-sm));
|
|
210
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-sm));
|
|
211
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
212
|
+
|
|
213
|
+
@include cut-border(
|
|
214
|
+
$cut: var(--sk-pagination-cut-size),
|
|
215
|
+
$border-width: var(--sk-pagination-border-width),
|
|
216
|
+
$border-color: var(--sk-pagination-border-color),
|
|
217
|
+
$corners: (top-left, bottom-right)
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.sk-md
|
|
222
|
+
{
|
|
223
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-md));
|
|
224
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-md));
|
|
225
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
226
|
+
|
|
227
|
+
@include cut-border(
|
|
228
|
+
$cut: var(--sk-pagination-cut-size),
|
|
229
|
+
$border-width: var(--sk-pagination-border-width),
|
|
230
|
+
$border-color: var(--sk-pagination-border-color),
|
|
231
|
+
$corners: (top-left, bottom-right)
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.sk-lg
|
|
236
|
+
{
|
|
237
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-lg));
|
|
238
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-lg));
|
|
239
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
240
|
+
|
|
241
|
+
@include cut-border(
|
|
242
|
+
$cut: var(--sk-pagination-cut-size),
|
|
243
|
+
$border-width: var(--sk-pagination-border-width),
|
|
244
|
+
$border-color: var(--sk-pagination-border-color),
|
|
245
|
+
$corners: (top-left, bottom-right)
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&.sk-xl
|
|
250
|
+
{
|
|
251
|
+
--sk-pagination-current-height: calc(var(--sk-pagination-height-base) * var(--sk-pagination-scale-xl));
|
|
252
|
+
--sk-pagination-current-font-size: calc(var(--sk-pagination-font-size-base) * var(--sk-pagination-font-scale-xl));
|
|
253
|
+
--sk-pagination-cut-size: calc(var(--sk-pagination-current-height) / var(--sk-pagination-radius-factor));
|
|
254
|
+
|
|
255
|
+
@include cut-border(
|
|
256
|
+
$cut: var(--sk-pagination-cut-size),
|
|
257
|
+
$border-width: var(--sk-pagination-border-width),
|
|
258
|
+
$border-color: var(--sk-pagination-border-color),
|
|
259
|
+
$corners: (top-left, bottom-right)
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
264
|
+
// Variant: Solid
|
|
265
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
266
|
+
|
|
267
|
+
&.sk-solid
|
|
268
|
+
{
|
|
269
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
270
|
+
|
|
271
|
+
background-color: var(--sk-pagination-bg);
|
|
272
|
+
color: var(--sk-pagination-fg);
|
|
273
|
+
|
|
274
|
+
&:hover:not(:disabled):not(.sk-ellipsis)
|
|
275
|
+
{
|
|
276
|
+
--sk-pagination-border-color: var(--sk-pagination-border-hover);
|
|
277
|
+
--sk-pagination-glow-shadow: 0 0 var(--sk-pagination-glow-size) oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-glow-opacity));
|
|
278
|
+
|
|
279
|
+
background-color: var(--sk-pagination-bg-hover);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&:active:not(:disabled):not(.sk-ellipsis)
|
|
283
|
+
{
|
|
284
|
+
--sk-pagination-border-color: var(--sk-pagination-border-hover);
|
|
285
|
+
--sk-pagination-glow-shadow: 0 0 0 transparent;
|
|
286
|
+
|
|
287
|
+
background-color: var(--sk-pagination-bg);
|
|
288
|
+
color: var(--sk-pagination-color-base);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Active page (selected)
|
|
292
|
+
&.sk-active
|
|
293
|
+
{
|
|
294
|
+
background-color: var(--sk-pagination-color-base);
|
|
295
|
+
color: white;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
300
|
+
// Variant: Outline
|
|
301
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
302
|
+
|
|
303
|
+
&.sk-outline
|
|
304
|
+
{
|
|
305
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
306
|
+
|
|
307
|
+
background-color: var(--sk-pagination-outline-bg);
|
|
308
|
+
color: var(--sk-pagination-color-base);
|
|
309
|
+
|
|
310
|
+
&:hover:not(:disabled):not(.sk-ellipsis)
|
|
311
|
+
{
|
|
312
|
+
--sk-pagination-border-color: var(--sk-pagination-border-hover);
|
|
313
|
+
--sk-pagination-glow-shadow: 0 0 var(--sk-pagination-glow-size) oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-glow-opacity));
|
|
314
|
+
|
|
315
|
+
background-color: var(--sk-pagination-bg);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
&:active:not(:disabled):not(.sk-ellipsis)
|
|
319
|
+
{
|
|
320
|
+
--sk-pagination-border-color: var(--sk-pagination-border-hover);
|
|
321
|
+
--sk-pagination-glow-shadow: 0 0 0 transparent;
|
|
322
|
+
|
|
323
|
+
background-color: var(--sk-pagination-bg-hover);
|
|
324
|
+
color: var(--sk-pagination-fg);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Active page (selected)
|
|
328
|
+
&.sk-active
|
|
329
|
+
{
|
|
330
|
+
background-color: var(--sk-pagination-color-base);
|
|
331
|
+
color: white;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
336
|
+
// Variant: Subtle
|
|
337
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
338
|
+
|
|
339
|
+
&.sk-subtle
|
|
340
|
+
{
|
|
341
|
+
--sk-pagination-border-color: oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-subtle-border-opacity));
|
|
342
|
+
|
|
343
|
+
background-color: oklch(from var(--sk-pagination-bg) l c h / var(--sk-pagination-subtle-opacity));
|
|
344
|
+
color: var(--sk-pagination-color-base);
|
|
345
|
+
|
|
346
|
+
&:hover:not(:disabled):not(.sk-ellipsis)
|
|
347
|
+
{
|
|
348
|
+
--sk-pagination-border-color: oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-subtle-border-opacity-hover));
|
|
349
|
+
--sk-pagination-glow-shadow: 0 0 var(--sk-pagination-glow-size) oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-glow-opacity));
|
|
350
|
+
|
|
351
|
+
background-color: oklch(from var(--sk-pagination-bg) l c h / var(--sk-pagination-subtle-opacity-hover));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&:active:not(:disabled):not(.sk-ellipsis)
|
|
355
|
+
{
|
|
356
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
357
|
+
--sk-pagination-glow-shadow: 0 0 0 transparent;
|
|
358
|
+
|
|
359
|
+
background-color: var(--sk-pagination-bg);
|
|
360
|
+
color: var(--sk-pagination-fg);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Active page (selected)
|
|
364
|
+
&.sk-active
|
|
365
|
+
{
|
|
366
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
367
|
+
|
|
368
|
+
background-color: var(--sk-pagination-color-base);
|
|
369
|
+
color: white;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
374
|
+
// Variant: Ghost
|
|
375
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
376
|
+
|
|
377
|
+
&.sk-ghost
|
|
378
|
+
{
|
|
379
|
+
--sk-pagination-border-color: transparent;
|
|
380
|
+
|
|
381
|
+
background-color: transparent;
|
|
382
|
+
color: var(--sk-pagination-color-base);
|
|
383
|
+
|
|
384
|
+
&:hover:not(:disabled):not(.sk-ellipsis)
|
|
385
|
+
{
|
|
386
|
+
--sk-pagination-glow-shadow: 0 0 var(--sk-pagination-glow-size) oklch(from var(--sk-pagination-color-base) l c h / var(--sk-pagination-glow-opacity));
|
|
387
|
+
|
|
388
|
+
background-color: var(--sk-pagination-bg-hover);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&:active:not(:disabled):not(.sk-ellipsis)
|
|
392
|
+
{
|
|
393
|
+
--sk-pagination-border-color: var(--sk-pagination-border-hover);
|
|
394
|
+
--sk-pagination-glow-shadow: 0 0 0 transparent;
|
|
395
|
+
|
|
396
|
+
background-color: var(--sk-pagination-bg-hover);
|
|
397
|
+
color: var(--sk-pagination-fg);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// Active page (selected)
|
|
401
|
+
&.sk-active
|
|
402
|
+
{
|
|
403
|
+
--sk-pagination-border-color: var(--sk-pagination-color-base);
|
|
404
|
+
|
|
405
|
+
background-color: var(--sk-pagination-color-base);
|
|
406
|
+
color: white;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Panel Component Styles
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
@use '../theme/variables' as *;
|
|
6
|
+
@use '../mixins' as *;
|
|
7
|
+
|
|
8
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
9
|
+
// Panel Design Tokens
|
|
10
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
.sk-panel
|
|
13
|
+
{
|
|
14
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
15
|
+
// Dimension Tokens
|
|
16
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
/// Internal padding for panel content
|
|
19
|
+
--sk-panel-padding: 0.75rem;
|
|
20
|
+
|
|
21
|
+
/// Minimum height used as basis for cut size calculations
|
|
22
|
+
--sk-panel-min-height: 4rem;
|
|
23
|
+
|
|
24
|
+
/// Border radius calculation factor (references global token for consistency)
|
|
25
|
+
--sk-panel-radius-factor: var(--sk-border-radius-factor);
|
|
26
|
+
|
|
27
|
+
/// Default cut size for md panels (height / factor)
|
|
28
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) / var(--sk-panel-radius-factor));
|
|
29
|
+
|
|
30
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
31
|
+
// Border Tokens
|
|
32
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
33
|
+
|
|
34
|
+
/// Border width (references global foundation token)
|
|
35
|
+
--sk-panel-border-width: var(--sk-border-width-thin);
|
|
36
|
+
|
|
37
|
+
/// Dynamic border color (set by kinds, uses currentColor as fallback)
|
|
38
|
+
--sk-panel-border-color: currentColor;
|
|
39
|
+
|
|
40
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
41
|
+
// Glow Effect Tokens
|
|
42
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
/// Glow effect blur radius (intentionally larger than button for emphasis)
|
|
45
|
+
--sk-panel-glow-size: 12px;
|
|
46
|
+
|
|
47
|
+
/// Glow effect opacity (intentionally different from button for visual hierarchy)
|
|
48
|
+
--sk-panel-glow-opacity: 0.3;
|
|
49
|
+
|
|
50
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
51
|
+
// Decoration Tokens
|
|
52
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
53
|
+
|
|
54
|
+
/// Offset distance of the corner decoration line from the cut edge
|
|
55
|
+
--sk-panel-decoration-offset: 3px;
|
|
56
|
+
|
|
57
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
58
|
+
// Generic Color Tokens
|
|
59
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
60
|
+
// These base tokens are overridden by each kind (neutral, primary, accent, etc.).
|
|
61
|
+
// All color derivatives are automatically calculated from these base tokens.
|
|
62
|
+
// Uses the same color formulas as buttons for visual consistency across components.
|
|
63
|
+
|
|
64
|
+
/// Base color - the bright semantic color used for borders and as source for backgrounds
|
|
65
|
+
/// Each kind (neutral, primary, accent, etc.) overrides this with their specific color
|
|
66
|
+
--sk-panel-color-base: var(--sk-neutral-base);
|
|
67
|
+
|
|
68
|
+
/// Foreground/text color - calculated for optimal contrast against darkened backgrounds
|
|
69
|
+
/// Each kind overrides this with their pre-calculated foreground color
|
|
70
|
+
--sk-panel-fg: var(--sk-neutral-text);
|
|
71
|
+
|
|
72
|
+
/// Background color - darkened version of base color
|
|
73
|
+
/// Formula: mix(mix(base 75%, transparent 25%), black 46.25%)
|
|
74
|
+
/// Same formula as buttons for consistency - reduces lightness by approximately 60%
|
|
75
|
+
--sk-panel-bg: color-mix(
|
|
76
|
+
in oklch,
|
|
77
|
+
color-mix(in oklch, var(--sk-panel-color-base) 75%, transparent 25%),
|
|
78
|
+
#000 46.25%
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
/// Base border color - uses the bright base color directly for vibrant edges
|
|
82
|
+
--sk-panel-border-base: var(--sk-panel-color-base);
|
|
83
|
+
|
|
84
|
+
/// Inner glow effect - creates ambient lighting inside the panel
|
|
85
|
+
/// Uses relative color syntax to derive glow from base color with controlled opacity
|
|
86
|
+
--sk-panel-glow: inset 0 0 var(--sk-panel-glow-size) oklch(from var(--sk-panel-color-base) l c h / var(--sk-panel-glow-opacity));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
90
|
+
// Kind Mixin
|
|
91
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
92
|
+
|
|
93
|
+
@mixin panel-kind($kind)
|
|
94
|
+
{
|
|
95
|
+
&.sk-#{ "" + $kind }
|
|
96
|
+
{
|
|
97
|
+
// Override base color tokens for this kind
|
|
98
|
+
--sk-panel-color-base: var(--sk-#{ $kind }-base);
|
|
99
|
+
--sk-panel-fg: var(--sk-#{ $kind }-text);
|
|
100
|
+
|
|
101
|
+
// Set generic kind color for list markers and other cross-component features
|
|
102
|
+
--sk-kind-color: var(--sk-#{ $kind }-base);
|
|
103
|
+
|
|
104
|
+
// Set dynamic border color
|
|
105
|
+
--sk-panel-border-color: var(--sk-panel-border-base);
|
|
106
|
+
|
|
107
|
+
// Use calculated background and foreground
|
|
108
|
+
background-color: var(--sk-panel-bg);
|
|
109
|
+
color: var(--sk-panel-fg);
|
|
110
|
+
|
|
111
|
+
// Apply inner glow (works in both modern and fallback browsers)
|
|
112
|
+
box-shadow: var(--sk-panel-glow);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
117
|
+
// Base Panel Styles
|
|
118
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+
.sk-panel
|
|
121
|
+
{
|
|
122
|
+
// Base structure
|
|
123
|
+
display: block;
|
|
124
|
+
position: relative;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
padding: var(--sk-panel-padding);
|
|
127
|
+
|
|
128
|
+
// Typography
|
|
129
|
+
font-family: var(--font-family-base);
|
|
130
|
+
line-height: 1.5;
|
|
131
|
+
|
|
132
|
+
*:last-child
|
|
133
|
+
{
|
|
134
|
+
margin-bottom: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// Override list marker color to match component kind
|
|
138
|
+
// Uses generic --sk-kind-color set by kind mixins
|
|
139
|
+
ul li::marker
|
|
140
|
+
{
|
|
141
|
+
color: var(--sk-kind-color, var(--sk-panel-color-base));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Apply cut-border mixin for beveled corner (bottom-right only)
|
|
145
|
+
@include cut-border(
|
|
146
|
+
$cut: var(--sk-panel-cut-size),
|
|
147
|
+
$border-width: var(--sk-panel-border-width),
|
|
148
|
+
$border-color: var(--sk-panel-border-color),
|
|
149
|
+
$corners: (bottom-right)
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
153
|
+
// Corner decoration line
|
|
154
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
155
|
+
|
|
156
|
+
&::after
|
|
157
|
+
{
|
|
158
|
+
content: '';
|
|
159
|
+
position: absolute;
|
|
160
|
+
width: var(--sk-panel-cut-size);
|
|
161
|
+
height: 2px;
|
|
162
|
+
background: var(--sk-panel-border-base);
|
|
163
|
+
border-radius: 1px;
|
|
164
|
+
right: var(--sk-panel-decoration-offset);
|
|
165
|
+
bottom: calc(var(--sk-panel-cut-size) / 2 + var(--sk-panel-decoration-offset) - 1px);
|
|
166
|
+
transform: rotate(135deg);
|
|
167
|
+
transform-origin: center;
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
172
|
+
// Size variants (only affects cut size, not padding or dimensions)
|
|
173
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
174
|
+
|
|
175
|
+
&.sk-xs
|
|
176
|
+
{
|
|
177
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) * 0.5 / var(--sk-panel-radius-factor));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.sk-sm
|
|
181
|
+
{
|
|
182
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) * 0.75 / var(--sk-panel-radius-factor));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&.sk-md
|
|
186
|
+
{
|
|
187
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) * 1.0 / var(--sk-panel-radius-factor));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.sk-lg
|
|
191
|
+
{
|
|
192
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) * 1.5 / var(--sk-panel-radius-factor));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.sk-xl
|
|
196
|
+
{
|
|
197
|
+
--sk-panel-cut-size: calc(var(--sk-panel-min-height) * 2.0 / var(--sk-panel-radius-factor));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
201
|
+
// No Border variant
|
|
202
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
203
|
+
|
|
204
|
+
&.sk-no-border
|
|
205
|
+
{
|
|
206
|
+
// Remove all border styling
|
|
207
|
+
--sk-panel-border-width: 0;
|
|
208
|
+
--sk-panel-cut-size: 0;
|
|
209
|
+
box-shadow: none;
|
|
210
|
+
|
|
211
|
+
// Remove the decoration as well
|
|
212
|
+
&::after
|
|
213
|
+
{
|
|
214
|
+
display: none;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
219
|
+
// Scrollable Panel Support
|
|
220
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
221
|
+
// When a panel contains scrollable content, use a .sk-panel-scroll-content wrapper
|
|
222
|
+
// This ensures the border/decoration stay fixed while content scrolls internally
|
|
223
|
+
|
|
224
|
+
&:has(.sk-panel-scroll-content)
|
|
225
|
+
{
|
|
226
|
+
padding: 0;
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sk-panel-scroll-content
|
|
232
|
+
{
|
|
233
|
+
padding: var(--sk-panel-padding);
|
|
234
|
+
margin-bottom: calc(var(--sk-panel-cut-size) + var(--sk-panel-decoration-offset));
|
|
235
|
+
overflow-y: auto;
|
|
236
|
+
overflow-x: hidden;
|
|
237
|
+
flex: 1;
|
|
238
|
+
min-height: 0;
|
|
239
|
+
|
|
240
|
+
// Kind-specific scrollbar colors
|
|
241
|
+
scrollbar-color: var(--sk-panel-color-base) transparent;
|
|
242
|
+
|
|
243
|
+
// Webkit scrollbar styling
|
|
244
|
+
&::-webkit-scrollbar-thumb
|
|
245
|
+
{
|
|
246
|
+
background: var(--sk-panel-color-base);
|
|
247
|
+
border-color: color-mix(in oklch, var(--sk-panel-color-base), var(--sk-color-gray-95) 20%);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&::-webkit-scrollbar-thumb:hover
|
|
251
|
+
{
|
|
252
|
+
background: color-mix(in oklch, var(--sk-panel-color-base), var(--sk-color-gray-10) var(--sk-mix-amount-moderate));
|
|
253
|
+
border-color: color-mix(
|
|
254
|
+
in oklch,
|
|
255
|
+
color-mix(in oklch, var(--sk-panel-color-base), var(--sk-color-gray-10) var(--sk-mix-amount-moderate)),
|
|
256
|
+
var(--sk-color-gray-95) 20%
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&::-webkit-scrollbar-thumb:active
|
|
261
|
+
{
|
|
262
|
+
background: color-mix(in oklch, var(--sk-panel-color-base), var(--sk-color-gray-10) var(--sk-mix-amount-strong));
|
|
263
|
+
border-color: color-mix(
|
|
264
|
+
in oklch,
|
|
265
|
+
color-mix(in oklch, var(--sk-panel-color-base), var(--sk-color-gray-10) var(--sk-mix-amount-strong)),
|
|
266
|
+
var(--sk-color-gray-95) 20%
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
272
|
+
// Kind variants
|
|
273
|
+
//------------------------------------------------------------------------------------------------------------------
|
|
274
|
+
|
|
275
|
+
@each $kind in $kinds
|
|
276
|
+
{
|
|
277
|
+
@include panel-kind($kind);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
//----------------------------------------------------------------------------------------------------------------------
|