@mkbabb/glass-ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -0
- package/dist/glass-ui.css +1 -0
- package/dist/glass-ui.js +10019 -0
- package/dist/index.d.ts +6619 -0
- package/package.json +65 -0
- package/src/components/custom/aurora/Aurora.vue +34 -0
- package/src/components/custom/aurora/composables/color.ts +122 -0
- package/src/components/custom/aurora/composables/useAurora.ts +355 -0
- package/src/components/custom/aurora/index.ts +8 -0
- package/src/components/custom/confirm-dialog/ConfirmDialog.vue +88 -0
- package/src/components/custom/confirm-dialog/index.ts +1 -0
- package/src/components/custom/controls/DarkModeToggle.vue +96 -0
- package/src/components/custom/controls/index.ts +1 -0
- package/src/components/custom/dock/DockLayerGroup.vue +21 -0
- package/src/components/custom/dock/DockPopover.vue +263 -0
- package/src/components/custom/dock/GlassDock.vue +276 -0
- package/src/components/custom/dock/composables/index.ts +16 -0
- package/src/components/custom/dock/composables/isTeleportedTarget.ts +19 -0
- package/src/components/custom/dock/composables/useDockActionBar.ts +33 -0
- package/src/components/custom/dock/composables/useDockState.ts +301 -0
- package/src/components/custom/dock/composables/useDockTransition.ts +146 -0
- package/src/components/custom/dock/composables/useLayerTransition.ts +135 -0
- package/src/components/custom/dock/composables/usePopupMutex.ts +83 -0
- package/src/components/custom/dock/index.ts +9 -0
- package/src/components/custom/expandable-container/ExpandableContainer.vue +64 -0
- package/src/components/custom/expandable-container/index.ts +1 -0
- package/src/components/custom/glass-panel/GlassPanel.vue +98 -0
- package/src/components/custom/glass-panel/index.ts +2 -0
- package/src/components/custom/icon-tooltip/IconTooltip.vue +20 -0
- package/src/components/custom/icon-tooltip/index.ts +1 -0
- package/src/components/custom/index.ts +15 -0
- package/src/components/custom/infinite-scroll/InfiniteScroll.vue +55 -0
- package/src/components/custom/infinite-scroll/composables/index.ts +2 -0
- package/src/components/custom/infinite-scroll/composables/types.ts +23 -0
- package/src/components/custom/infinite-scroll/composables/useInfiniteScroll.ts +73 -0
- package/src/components/custom/infinite-scroll/index.ts +1 -0
- package/src/components/custom/labeled-field/LabeledInput.vue +29 -0
- package/src/components/custom/labeled-field/LabeledSelect.vue +59 -0
- package/src/components/custom/labeled-field/LabeledSlider.vue +32 -0
- package/src/components/custom/labeled-field/LabeledSwitch.vue +27 -0
- package/src/components/custom/labeled-field/index.ts +4 -0
- package/src/components/custom/metaballs/MetaballCanvas.vue +23 -0
- package/src/components/custom/metaballs/index.ts +4 -0
- package/src/components/custom/metaballs/shaders.ts +63 -0
- package/src/components/custom/metaballs/types.ts +29 -0
- package/src/components/custom/metaballs/useMetaballs.ts +252 -0
- package/src/components/custom/search/FuzzySearch.vue +589 -0
- package/src/components/custom/search/SearchBar.vue +44 -0
- package/src/components/custom/search/composables/fuzzySearchIndex.ts +224 -0
- package/src/components/custom/search/composables/index.ts +5 -0
- package/src/components/custom/search/composables/types.ts +34 -0
- package/src/components/custom/search/composables/useFuzzySearch.ts +115 -0
- package/src/components/custom/search/index.ts +7 -0
- package/src/components/custom/sidebar/ProgressiveSidebar.vue +256 -0
- package/src/components/custom/sidebar/composables/index.ts +6 -0
- package/src/components/custom/sidebar/composables/useScrollTracker.ts +242 -0
- package/src/components/custom/sidebar/composables/useSidebarFollow.ts +247 -0
- package/src/components/custom/sidebar/composables/useSidebarState.ts +72 -0
- package/src/components/custom/sidebar/composables/useTreeIndex.ts +152 -0
- package/src/components/custom/sidebar/index.ts +15 -0
- package/src/components/custom/sidebar/types.ts +50 -0
- package/src/components/custom/tabs/BouncyTabs.vue +39 -0
- package/src/components/custom/tabs/BouncyToggle.vue +352 -0
- package/src/components/custom/tabs/UnderlineTabs.vue +115 -0
- package/src/components/custom/tabs/index.ts +5 -0
- package/src/components/custom/timeline/GlassTimeline.vue +174 -0
- package/src/components/custom/timeline/index.ts +1 -0
- package/src/components/custom/typewriter/TypewriterText.vue +239 -0
- package/src/components/custom/typewriter/composables/index.ts +1 -0
- package/src/components/custom/typewriter/composables/useTypewriter.ts +413 -0
- package/src/components/custom/typewriter/index.ts +7 -0
- package/src/components/custom/typewriter/types.ts +159 -0
- package/src/components/custom/typewriter/utils/keyboard.ts +213 -0
- package/src/components/custom/typewriter/utils/pausePatterns.ts +55 -0
- package/src/components/custom/typewriter/utils/timing.ts +104 -0
- package/src/components/custom/typewriter/utils/typoStateMachine.ts +197 -0
- package/src/components/index.ts +2 -0
- package/src/components/ui/accordion/Accordion.vue +19 -0
- package/src/components/ui/accordion/AccordionContent.vue +24 -0
- package/src/components/ui/accordion/AccordionItem.vue +24 -0
- package/src/components/ui/accordion/AccordionTrigger.vue +39 -0
- package/src/components/ui/accordion/index.ts +4 -0
- package/src/components/ui/alert/Alert.vue +20 -0
- package/src/components/ui/alert/AlertDescription.vue +17 -0
- package/src/components/ui/alert/AlertTitle.vue +17 -0
- package/src/components/ui/alert/index.ts +23 -0
- package/src/components/ui/avatar/Avatar.vue +21 -0
- package/src/components/ui/avatar/AvatarFallback.vue +11 -0
- package/src/components/ui/avatar/AvatarImage.vue +9 -0
- package/src/components/ui/avatar/index.ts +24 -0
- package/src/components/ui/badge/Badge.vue +16 -0
- package/src/components/ui/badge/index.ts +25 -0
- package/src/components/ui/button/Button.vue +26 -0
- package/src/components/ui/button/index.ts +43 -0
- package/src/components/ui/card/Card.vue +28 -0
- package/src/components/ui/card/CardContent.vue +14 -0
- package/src/components/ui/card/CardDescription.vue +14 -0
- package/src/components/ui/card/CardFooter.vue +14 -0
- package/src/components/ui/card/CardHeader.vue +14 -0
- package/src/components/ui/card/CardTitle.vue +21 -0
- package/src/components/ui/card/index.ts +6 -0
- package/src/components/ui/carousel/Carousel.vue +53 -0
- package/src/components/ui/carousel/CarouselContent.vue +35 -0
- package/src/components/ui/carousel/CarouselItem.vue +24 -0
- package/src/components/ui/carousel/CarouselNext.vue +40 -0
- package/src/components/ui/carousel/CarouselPrevious.vue +40 -0
- package/src/components/ui/carousel/index.ts +10 -0
- package/src/components/ui/carousel/interface.ts +26 -0
- package/src/components/ui/carousel/useCarousel.ts +56 -0
- package/src/components/ui/checkbox/Checkbox.vue +33 -0
- package/src/components/ui/checkbox/index.ts +1 -0
- package/src/components/ui/collapsible/Collapsible.vue +15 -0
- package/src/components/ui/collapsible/CollapsibleContent.vue +11 -0
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
- package/src/components/ui/collapsible/index.ts +3 -0
- package/src/components/ui/combobox/Combobox.vue +17 -0
- package/src/components/ui/combobox/ComboboxAnchor.vue +23 -0
- package/src/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/src/components/ui/combobox/ComboboxGroup.vue +27 -0
- package/src/components/ui/combobox/ComboboxInput.vue +41 -0
- package/src/components/ui/combobox/ComboboxItem.vue +24 -0
- package/src/components/ui/combobox/ComboboxItemIndicator.vue +23 -0
- package/src/components/ui/combobox/ComboboxList.vue +29 -0
- package/src/components/ui/combobox/ComboboxSeparator.vue +21 -0
- package/src/components/ui/combobox/ComboboxViewport.vue +23 -0
- package/src/components/ui/combobox/index.ts +12 -0
- package/src/components/ui/command/Command.vue +30 -0
- package/src/components/ui/command/CommandDialog.vue +21 -0
- package/src/components/ui/command/CommandEmpty.vue +20 -0
- package/src/components/ui/command/CommandGroup.vue +29 -0
- package/src/components/ui/command/CommandInput.vue +33 -0
- package/src/components/ui/command/CommandItem.vue +26 -0
- package/src/components/ui/command/CommandList.vue +27 -0
- package/src/components/ui/command/CommandSeparator.vue +23 -0
- package/src/components/ui/command/CommandShortcut.vue +14 -0
- package/src/components/ui/command/index.ts +9 -0
- package/src/components/ui/context-menu/ContextMenu.vue +15 -0
- package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +40 -0
- package/src/components/ui/context-menu/ContextMenuContent.vue +36 -0
- package/src/components/ui/context-menu/ContextMenuGroup.vue +11 -0
- package/src/components/ui/context-menu/ContextMenuItem.vue +34 -0
- package/src/components/ui/context-menu/ContextMenuLabel.vue +25 -0
- package/src/components/ui/context-menu/ContextMenuPortal.vue +11 -0
- package/src/components/ui/context-menu/ContextMenuRadioGroup.vue +19 -0
- package/src/components/ui/context-menu/ContextMenuRadioItem.vue +40 -0
- package/src/components/ui/context-menu/ContextMenuSeparator.vue +20 -0
- package/src/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
- package/src/components/ui/context-menu/ContextMenuSub.vue +19 -0
- package/src/components/ui/context-menu/ContextMenuSubContent.vue +35 -0
- package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +34 -0
- package/src/components/ui/context-menu/ContextMenuTrigger.vue +13 -0
- package/src/components/ui/context-menu/index.ts +14 -0
- package/src/components/ui/data-table/DataTable.vue +167 -0
- package/src/components/ui/data-table/DataTablePagination.vue +112 -0
- package/src/components/ui/data-table/index.ts +3 -0
- package/src/components/ui/data-table/types.ts +48 -0
- package/src/components/ui/dialog/Dialog.vue +14 -0
- package/src/components/ui/dialog/DialogClose.vue +11 -0
- package/src/components/ui/dialog/DialogContent.vue +61 -0
- package/src/components/ui/dialog/DialogDescription.vue +24 -0
- package/src/components/ui/dialog/DialogFooter.vue +19 -0
- package/src/components/ui/dialog/DialogHeader.vue +16 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +65 -0
- package/src/components/ui/dialog/DialogTitle.vue +29 -0
- package/src/components/ui/dialog/DialogTrigger.vue +11 -0
- package/src/components/ui/dialog/index.ts +9 -0
- package/src/components/ui/drawer/Drawer.vue +19 -0
- package/src/components/ui/drawer/DrawerContent.vue +28 -0
- package/src/components/ui/drawer/DrawerDescription.vue +20 -0
- package/src/components/ui/drawer/DrawerFooter.vue +14 -0
- package/src/components/ui/drawer/DrawerHeader.vue +14 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +18 -0
- package/src/components/ui/drawer/DrawerTitle.vue +20 -0
- package/src/components/ui/drawer/index.ts +8 -0
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +14 -0
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +40 -0
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +44 -0
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +11 -0
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +28 -0
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +24 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +19 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +22 -0
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +36 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +33 -0
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +13 -0
- package/src/components/ui/dropdown-menu/index.ts +16 -0
- package/src/components/ui/hover-card/HoverCard.vue +14 -0
- package/src/components/ui/hover-card/HoverCardContent.vue +41 -0
- package/src/components/ui/hover-card/HoverCardTrigger.vue +11 -0
- package/src/components/ui/hover-card/index.ts +3 -0
- package/src/components/ui/index.ts +41 -0
- package/src/components/ui/input/Input.vue +24 -0
- package/src/components/ui/input/index.ts +1 -0
- package/src/components/ui/label/Label.vue +27 -0
- package/src/components/ui/label/index.ts +1 -0
- package/src/components/ui/multi-select/MultiSelect.vue +141 -0
- package/src/components/ui/multi-select/index.ts +7 -0
- package/src/components/ui/notification/Notification.vue +85 -0
- package/src/components/ui/notification/index.ts +1 -0
- package/src/components/ui/number-field/NumberField.vue +23 -0
- package/src/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/src/components/ui/number-field/NumberFieldDecrement.vue +25 -0
- package/src/components/ui/number-field/NumberFieldIncrement.vue +25 -0
- package/src/components/ui/number-field/NumberFieldInput.vue +8 -0
- package/src/components/ui/number-field/index.ts +5 -0
- package/src/components/ui/popover/Popover.vue +15 -0
- package/src/components/ui/popover/PopoverContent.vue +61 -0
- package/src/components/ui/popover/PopoverTrigger.vue +11 -0
- package/src/components/ui/popover/index.ts +3 -0
- package/src/components/ui/progress/Progress.vue +39 -0
- package/src/components/ui/progress/index.ts +1 -0
- package/src/components/ui/radio-group/RadioGroup.vue +25 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +39 -0
- package/src/components/ui/radio-group/index.ts +2 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +29 -0
- package/src/components/ui/scroll-area/ScrollBar.vue +30 -0
- package/src/components/ui/scroll-area/index.ts +2 -0
- package/src/components/ui/scroll-pane/ScrollPane.vue +25 -0
- package/src/components/ui/scroll-pane/ScrollPaneHeader.vue +75 -0
- package/src/components/ui/scroll-pane/index.ts +2 -0
- package/src/components/ui/select/Select.vue +15 -0
- package/src/components/ui/select/SelectContent.vue +57 -0
- package/src/components/ui/select/SelectGroup.vue +19 -0
- package/src/components/ui/select/SelectItem.vue +47 -0
- package/src/components/ui/select/SelectItemText.vue +11 -0
- package/src/components/ui/select/SelectLabel.vue +13 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +24 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +24 -0
- package/src/components/ui/select/SelectSeparator.vue +17 -0
- package/src/components/ui/select/SelectTrigger.vue +45 -0
- package/src/components/ui/select/SelectValue.vue +11 -0
- package/src/components/ui/select/index.ts +11 -0
- package/src/components/ui/separator/Separator.vue +35 -0
- package/src/components/ui/separator/index.ts +1 -0
- package/src/components/ui/sheet/Sheet.vue +14 -0
- package/src/components/ui/sheet/SheetClose.vue +11 -0
- package/src/components/ui/sheet/SheetContent.vue +56 -0
- package/src/components/ui/sheet/SheetDescription.vue +22 -0
- package/src/components/ui/sheet/SheetFooter.vue +19 -0
- package/src/components/ui/sheet/SheetHeader.vue +16 -0
- package/src/components/ui/sheet/SheetTitle.vue +22 -0
- package/src/components/ui/sheet/SheetTrigger.vue +11 -0
- package/src/components/ui/sheet/index.ts +31 -0
- package/src/components/ui/skeleton/Skeleton.vue +14 -0
- package/src/components/ui/skeleton/index.ts +1 -0
- package/src/components/ui/slider/Slider.vue +66 -0
- package/src/components/ui/slider/index.ts +1 -0
- package/src/components/ui/switch/Switch.vue +37 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/table/Table.vue +16 -0
- package/src/components/ui/table/TableBody.vue +14 -0
- package/src/components/ui/table/TableCaption.vue +14 -0
- package/src/components/ui/table/TableCell.vue +14 -0
- package/src/components/ui/table/TableEmpty.vue +39 -0
- package/src/components/ui/table/TableFooter.vue +16 -0
- package/src/components/ui/table/TableHead.vue +21 -0
- package/src/components/ui/table/TableHeader.vue +14 -0
- package/src/components/ui/table/TableRow.vue +21 -0
- package/src/components/ui/table/index.ts +9 -0
- package/src/components/ui/tabs/Tabs.vue +15 -0
- package/src/components/ui/tabs/TabsContent.vue +22 -0
- package/src/components/ui/tabs/TabsIndicator.vue +22 -0
- package/src/components/ui/tabs/TabsList.vue +25 -0
- package/src/components/ui/tabs/TabsTrigger.vue +29 -0
- package/src/components/ui/tabs/index.ts +5 -0
- package/src/components/ui/tags-input/TagsInput.vue +22 -0
- package/src/components/ui/tags-input/TagsInputInput.vue +19 -0
- package/src/components/ui/tags-input/TagsInputItem.vue +22 -0
- package/src/components/ui/tags-input/TagsInputItemDelete.vue +24 -0
- package/src/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/src/components/ui/tags-input/index.ts +5 -0
- package/src/components/ui/textarea/Textarea.vue +24 -0
- package/src/components/ui/textarea/index.ts +1 -0
- package/src/components/ui/toast/Toast.vue +57 -0
- package/src/components/ui/toast/ToastAction.vue +30 -0
- package/src/components/ui/toast/ToastClose.vue +31 -0
- package/src/components/ui/toast/ToastDescription.vue +25 -0
- package/src/components/ui/toast/ToastTitle.vue +25 -0
- package/src/components/ui/toast/Toaster.vue +31 -0
- package/src/components/ui/toast/index.ts +8 -0
- package/src/components/ui/toast/use-toast.ts +136 -0
- package/src/components/ui/toggle/Toggle.vue +35 -0
- package/src/components/ui/toggle/index.ts +27 -0
- package/src/components/ui/toggle-group/ToggleGroup.vue +34 -0
- package/src/components/ui/toggle-group/ToggleGroupItem.vue +35 -0
- package/src/components/ui/toggle-group/index.ts +2 -0
- package/src/components/ui/tooltip/Tooltip.vue +14 -0
- package/src/components/ui/tooltip/TooltipContent.vue +31 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +11 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +11 -0
- package/src/components/ui/tooltip/index.ts +4 -0
- package/src/composables/glass/index.ts +8 -0
- package/src/composables/glass/useGlassRenderer.ts +252 -0
- package/src/composables/glass/webgl/frostShader.ts +221 -0
- package/src/composables/glass/webgpu/glassShader.wgsl +173 -0
- package/src/composables/index.ts +32 -0
- package/src/composables/infinite-scroll/index.ts +2 -0
- package/src/composables/infinite-scroll/types.ts +25 -0
- package/src/composables/infinite-scroll/useInfiniteScroll.ts +101 -0
- package/src/composables/interaction/index.ts +5 -0
- package/src/composables/interaction/useHeightTransition.ts +82 -0
- package/src/composables/interaction/useHoverPopover.ts +64 -0
- package/src/composables/interaction/useHoverToggle.ts +103 -0
- package/src/composables/interaction/useLeaveTimer.ts +17 -0
- package/src/composables/interaction/useTouchGate.ts +207 -0
- package/src/composables/pagination/index.ts +2 -0
- package/src/composables/pagination/useOffsetPagination.ts +70 -0
- package/src/composables/prng.ts +32 -0
- package/src/composables/useCharSplit.ts +31 -0
- package/src/composables/useClipboard.ts +46 -0
- package/src/composables/useGlobalDark.ts +61 -0
- package/src/composables/useKeyboardShortcuts.ts +205 -0
- package/src/composables/useWatercolorBlob.ts +136 -0
- package/src/composables/virtual/index.ts +22 -0
- package/src/composables/virtual/useVirtualSectionWindow.ts +338 -0
- package/src/composables/virtual/useWindowedStore.ts +86 -0
- package/src/composables/virtual/virtualSectionLayout.ts +212 -0
- package/src/index.ts +9 -0
- package/src/styles/animations.css +233 -0
- package/src/styles/cards.css +66 -0
- package/src/styles/dock.css +221 -0
- package/src/styles/floating-panel.css +49 -0
- package/src/styles/glass.css +266 -0
- package/src/styles/index.css +26 -0
- package/src/styles/scroll-pane.css +10 -0
- package/src/styles/theme.css +138 -0
- package/src/styles/tokens.css +333 -0
- package/src/styles/transitions.css +226 -0
- package/src/styles/typography.css +277 -0
- package/src/styles/utilities.css +697 -0
- package/src/utils/cn.ts +6 -0
- package/src/utils/index.ts +1 -0
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
/* Shared utility classes */
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
/* ── Popover/dropdown shared animation ── */
|
|
5
|
+
.popover-animate {
|
|
6
|
+
@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.slide-in-from-side {
|
|
10
|
+
@apply data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ── Scrollbar ── */
|
|
14
|
+
.scrollbar-hidden {
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
}
|
|
17
|
+
.scrollbar-hidden::-webkit-scrollbar {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.scrollbar-thin {
|
|
22
|
+
scrollbar-width: thin;
|
|
23
|
+
scrollbar-color: color-mix(in srgb, var(--muted-foreground) 25%, transparent) transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── Focus ring — auto-activates on :focus-visible ── */
|
|
27
|
+
.focus-ring:focus-visible {
|
|
28
|
+
outline: none;
|
|
29
|
+
border-radius: var(--radius-pill);
|
|
30
|
+
box-shadow: var(--focus-ring-shadow);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ── Button press/interactive states ── */
|
|
34
|
+
.btn-press {
|
|
35
|
+
transition: transform var(--duration-fast) var(--ease-standard);
|
|
36
|
+
}
|
|
37
|
+
.btn-press:active {
|
|
38
|
+
transform: scale(var(--scale-press-btn));
|
|
39
|
+
}
|
|
40
|
+
.btn-press:disabled {
|
|
41
|
+
opacity: 0.5;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.btn-interactive {
|
|
46
|
+
transition: all var(--duration-fast) var(--ease-standard);
|
|
47
|
+
}
|
|
48
|
+
.btn-interactive:hover {
|
|
49
|
+
transform: scale(var(--scale-hover));
|
|
50
|
+
}
|
|
51
|
+
.btn-interactive:active {
|
|
52
|
+
transform: scale(var(--scale-press));
|
|
53
|
+
}
|
|
54
|
+
.btn-interactive:disabled {
|
|
55
|
+
opacity: 0.5;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
.btn-interactive:focus-visible {
|
|
59
|
+
box-shadow: var(--focus-ring-shadow);
|
|
60
|
+
outline: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ── Interactive item (hover bg + focus ring + active scale) ── */
|
|
64
|
+
.interactive-item {
|
|
65
|
+
border-radius: var(--radius-lg);
|
|
66
|
+
user-select: none;
|
|
67
|
+
transition:
|
|
68
|
+
background-color var(--duration-fast) var(--ease-standard),
|
|
69
|
+
color var(--duration-fast) var(--ease-standard),
|
|
70
|
+
border-color var(--duration-fast) var(--ease-standard),
|
|
71
|
+
box-shadow var(--duration-fast) var(--ease-standard),
|
|
72
|
+
transform var(--duration-fast) var(--ease-standard);
|
|
73
|
+
}
|
|
74
|
+
.interactive-item:hover {
|
|
75
|
+
background-color: color-mix(in srgb, var(--accent) 50%, transparent);
|
|
76
|
+
}
|
|
77
|
+
.interactive-item:focus-visible {
|
|
78
|
+
outline: none;
|
|
79
|
+
box-shadow: var(--focus-ring-shadow);
|
|
80
|
+
}
|
|
81
|
+
.interactive-item:active {
|
|
82
|
+
transform: scale(0.98);
|
|
83
|
+
}
|
|
84
|
+
.interactive-item:disabled {
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
opacity: 0.5;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ── Status dot indicator ── */
|
|
90
|
+
.status-dot {
|
|
91
|
+
display: inline-block;
|
|
92
|
+
width: 0.5rem;
|
|
93
|
+
height: 0.5rem;
|
|
94
|
+
border-radius: var(--radius-pill);
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
transition:
|
|
97
|
+
color var(--duration-fast) var(--ease-standard),
|
|
98
|
+
background var(--duration-fast) var(--ease-standard),
|
|
99
|
+
box-shadow var(--duration-fast) var(--ease-standard);
|
|
100
|
+
}
|
|
101
|
+
.status-dot--active {
|
|
102
|
+
background: var(--color-status-active, hsl(142 71% 45%));
|
|
103
|
+
}
|
|
104
|
+
.status-dot--paused {
|
|
105
|
+
background: var(--color-status-paused, hsl(48 96% 53%));
|
|
106
|
+
}
|
|
107
|
+
.status-dot--idle {
|
|
108
|
+
background: var(--color-status-idle, var(--muted-foreground));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* ── Paper texture backgrounds ── */
|
|
112
|
+
.bg-paper-clean {
|
|
113
|
+
background-image: var(--paper-clean-texture);
|
|
114
|
+
background-repeat: repeat;
|
|
115
|
+
background-size: var(--paper-texture-size);
|
|
116
|
+
background-blend-mode: multiply;
|
|
117
|
+
}
|
|
118
|
+
.bg-paper-aged {
|
|
119
|
+
background-image: var(--paper-aged-texture);
|
|
120
|
+
background-repeat: repeat;
|
|
121
|
+
background-size: var(--paper-texture-size);
|
|
122
|
+
background-blend-mode: multiply;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* ── Rainbow text ── */
|
|
126
|
+
.rainbow-text {
|
|
127
|
+
background: linear-gradient(
|
|
128
|
+
90deg,
|
|
129
|
+
hsl(0 85% 70%),
|
|
130
|
+
hsl(30 85% 65%),
|
|
131
|
+
hsl(60 85% 60%),
|
|
132
|
+
hsl(120 65% 55%),
|
|
133
|
+
hsl(200 85% 60%),
|
|
134
|
+
hsl(260 75% 65%),
|
|
135
|
+
hsl(320 80% 65%)
|
|
136
|
+
);
|
|
137
|
+
background-clip: text;
|
|
138
|
+
-webkit-text-fill-color: transparent;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ── Rainbow border ── */
|
|
142
|
+
.rainbow-border {
|
|
143
|
+
background:
|
|
144
|
+
linear-gradient(var(--background), var(--background)) padding-box,
|
|
145
|
+
linear-gradient(
|
|
146
|
+
135deg,
|
|
147
|
+
hsl(0 85% 70%),
|
|
148
|
+
hsl(60 85% 60%),
|
|
149
|
+
hsl(120 65% 55%),
|
|
150
|
+
hsl(200 85% 60%),
|
|
151
|
+
hsl(260 75% 65%),
|
|
152
|
+
hsl(320 80% 65%),
|
|
153
|
+
hsl(0 85% 70%)
|
|
154
|
+
)
|
|
155
|
+
border-box;
|
|
156
|
+
border: 2px solid transparent;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* ── Depth text (layered shadow with customizable colors) ── */
|
|
160
|
+
.depth-text {
|
|
161
|
+
--depth-color-primary: var(--primary);
|
|
162
|
+
--depth-color-shadow: var(--shadow);
|
|
163
|
+
|
|
164
|
+
color: var(--depth-color-primary);
|
|
165
|
+
text-shadow:
|
|
166
|
+
1px 1px 0 var(--depth-color-shadow),
|
|
167
|
+
2px 2px 0 var(--depth-color-shadow),
|
|
168
|
+
3px 3px 0 var(--depth-color-shadow),
|
|
169
|
+
4px 4px 0 var(--depth-color-shadow),
|
|
170
|
+
5px 5px 0 var(--depth-color-shadow),
|
|
171
|
+
5px 5px 1px rgba(0, 0, 0, 0.1),
|
|
172
|
+
2px 2px 2px rgba(0, 0, 0, 0.2),
|
|
173
|
+
4px 4px 5px rgba(0, 0, 0, 0.25),
|
|
174
|
+
6px 6px 10px rgba(0, 0, 0, 0.15);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* ── Touch gate (iOS Safari) ── */
|
|
178
|
+
.touch-gate-target {
|
|
179
|
+
outline: 2px solid transparent;
|
|
180
|
+
outline-offset: -2px;
|
|
181
|
+
transition: outline-color var(--duration-fast) var(--ease-standard);
|
|
182
|
+
}
|
|
183
|
+
.touch-gate-active {
|
|
184
|
+
outline-color: color-mix(in srgb, var(--ring) 25%, transparent);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* ── 3D preserve ── */
|
|
188
|
+
.preserve-3d {
|
|
189
|
+
transform-style: preserve-3d;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* ── iOS input font-size fix (prevent auto-zoom) ── */
|
|
193
|
+
.ios input,
|
|
194
|
+
.ios select,
|
|
195
|
+
.ios textarea,
|
|
196
|
+
.ios [contenteditable] {
|
|
197
|
+
font-size: max(1rem, 1em);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ── Scroll fade mask ── */
|
|
201
|
+
.scroll-fade-mask {
|
|
202
|
+
mask-image: linear-gradient(to right, transparent, black var(--mask-fade-width), black calc(100% - var(--mask-fade-width)), transparent);
|
|
203
|
+
-webkit-mask-image: linear-gradient(to right, transparent, black var(--mask-fade-width), black calc(100% - var(--mask-fade-width)), transparent);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* ── Shimmer text effects ── */
|
|
207
|
+
.gold-shimmer {
|
|
208
|
+
background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold), var(--color-gold-light), var(--color-gold-dark));
|
|
209
|
+
background-size: 250% 100%;
|
|
210
|
+
background-clip: text;
|
|
211
|
+
-webkit-background-clip: text;
|
|
212
|
+
color: transparent;
|
|
213
|
+
animation: shimmer 5s linear infinite;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.blue-shimmer {
|
|
217
|
+
background: linear-gradient(90deg, #1e40af, #60a5fa, #3b82f6, #60a5fa, #1e40af);
|
|
218
|
+
background-size: 200% 100%;
|
|
219
|
+
background-clip: text;
|
|
220
|
+
-webkit-background-clip: text;
|
|
221
|
+
color: transparent;
|
|
222
|
+
animation: shimmer 3s linear infinite;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.gold-shimmer-subtle {
|
|
226
|
+
background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light), var(--color-gold-dark));
|
|
227
|
+
background-size: 300% 100%;
|
|
228
|
+
background-clip: text;
|
|
229
|
+
-webkit-background-clip: text;
|
|
230
|
+
color: transparent;
|
|
231
|
+
animation: shimmer 8s linear infinite;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* ── Keyboard key ── */
|
|
235
|
+
.kbd {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
min-height: 1.5rem;
|
|
240
|
+
min-width: 1.5rem;
|
|
241
|
+
padding: 0 0.375rem;
|
|
242
|
+
font-family: var(--font-mono);
|
|
243
|
+
font-size: var(--type-micro);
|
|
244
|
+
background: var(--muted);
|
|
245
|
+
border: 1px solid var(--border);
|
|
246
|
+
border-radius: var(--radius-sm);
|
|
247
|
+
box-shadow: 0 1px 0 1px color-mix(in srgb, var(--border) 30%, transparent);
|
|
248
|
+
line-height: 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* ── Code badge ── */
|
|
252
|
+
.code-badge {
|
|
253
|
+
font-family: var(--font-mono, monospace);
|
|
254
|
+
font-size: 0.75rem;
|
|
255
|
+
border-radius: var(--radius-md);
|
|
256
|
+
border: 1px solid var(--border);
|
|
257
|
+
padding: 0.125rem 0.375rem;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ── Input bar — glassmorphic inline input container ── */
|
|
261
|
+
.input-bar {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: 0.5rem;
|
|
265
|
+
border-radius: var(--radius-2xl);
|
|
266
|
+
border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
|
|
267
|
+
background: color-mix(in srgb, var(--card) 80%, transparent);
|
|
268
|
+
backdrop-filter: blur(24px);
|
|
269
|
+
|
|
270
|
+
padding: 0 0.75rem;
|
|
271
|
+
height: 2.25rem;
|
|
272
|
+
max-width: var(--max-width-input);
|
|
273
|
+
width: 100%;
|
|
274
|
+
transition:
|
|
275
|
+
box-shadow var(--duration-fast) var(--ease-standard),
|
|
276
|
+
border-color var(--duration-fast) var(--ease-standard);
|
|
277
|
+
}
|
|
278
|
+
.input-bar:focus-within {
|
|
279
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 40%, transparent);
|
|
280
|
+
border-color: var(--border);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.input-bar-field {
|
|
284
|
+
font-family: var(--font-mono, monospace);
|
|
285
|
+
font-size: var(--type-small);
|
|
286
|
+
background: transparent;
|
|
287
|
+
border: none;
|
|
288
|
+
outline: none;
|
|
289
|
+
flex: 1;
|
|
290
|
+
min-width: 0;
|
|
291
|
+
}
|
|
292
|
+
.input-bar-field::placeholder {
|
|
293
|
+
color: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* ── Dashed well — muted container for adding/selecting items ── */
|
|
297
|
+
.dashed-well {
|
|
298
|
+
max-width: var(--max-width-input);
|
|
299
|
+
border-radius: var(--radius-2xl);
|
|
300
|
+
border: 2px dashed color-mix(in srgb, var(--primary) 30%, transparent);
|
|
301
|
+
background: color-mix(in srgb, var(--primary) 5%, transparent);
|
|
302
|
+
padding: 0.75rem;
|
|
303
|
+
display: grid;
|
|
304
|
+
gap: 0.5rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* ── Hover lift — translate-y + shadow on hover (3 levels) ── */
|
|
308
|
+
.hover-lift {
|
|
309
|
+
transition-property: transform, box-shadow;
|
|
310
|
+
transition-duration: var(--duration-normal);
|
|
311
|
+
transition-timing-function: ease;
|
|
312
|
+
}
|
|
313
|
+
.hover-lift:hover {
|
|
314
|
+
transform: translateY(var(--lift-sm));
|
|
315
|
+
box-shadow: var(--shadow-md);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.hover-lift-md {
|
|
319
|
+
transition-property: transform, box-shadow;
|
|
320
|
+
transition-duration: var(--duration-normal);
|
|
321
|
+
transition-timing-function: ease;
|
|
322
|
+
}
|
|
323
|
+
.hover-lift-md:hover {
|
|
324
|
+
transform: translateY(var(--lift-md));
|
|
325
|
+
box-shadow: var(--shadow-md);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.hover-lift-lg {
|
|
329
|
+
transition-property: transform, box-shadow;
|
|
330
|
+
transition-duration: var(--duration-normal);
|
|
331
|
+
transition-timing-function: ease;
|
|
332
|
+
}
|
|
333
|
+
.hover-lift-lg:hover {
|
|
334
|
+
transform: translateY(var(--lift-lg));
|
|
335
|
+
box-shadow: var(--shadow-lg);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* ── Hover shadow lift — shadow-only hover ── */
|
|
339
|
+
.hover-shadow-lift {
|
|
340
|
+
transition-property: box-shadow;
|
|
341
|
+
transition-duration: var(--duration-normal);
|
|
342
|
+
transition-timing-function: var(--spring-smooth);
|
|
343
|
+
}
|
|
344
|
+
.hover-shadow-lift:hover {
|
|
345
|
+
box-shadow: var(--shadow-xl);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* ── Glass overlay — dark backdrop ── */
|
|
349
|
+
.glass-overlay {
|
|
350
|
+
background: rgb(0 0 0 / 0.6);
|
|
351
|
+
backdrop-filter: blur(4px);
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* ── Cartoon shadows — multi-layer offset shadow + border + translateY ── */
|
|
356
|
+
.shadow-cartoon-sm {
|
|
357
|
+
box-shadow:
|
|
358
|
+
-3px 2px 1px var(--shadow-cartoon-color),
|
|
359
|
+
0 3px 1px var(--shadow-cartoon-color),
|
|
360
|
+
-3px 3px 1px var(--shadow-cartoon-color-soft);
|
|
361
|
+
border: 2px solid var(--border);
|
|
362
|
+
transform: translateY(-1px);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.shadow-cartoon-md {
|
|
366
|
+
box-shadow:
|
|
367
|
+
-4px 3px 1px var(--shadow-cartoon-color),
|
|
368
|
+
0 4px 1px var(--shadow-cartoon-color),
|
|
369
|
+
-4px 4px 2px var(--shadow-cartoon-color-soft);
|
|
370
|
+
border: 2px solid var(--border);
|
|
371
|
+
transform: translateY(-1px);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.shadow-cartoon-lg {
|
|
375
|
+
box-shadow:
|
|
376
|
+
-6px 4px 1px var(--shadow-cartoon-color),
|
|
377
|
+
0 6px 1px var(--shadow-cartoon-color),
|
|
378
|
+
-6px 6px 2px var(--shadow-cartoon-color-soft);
|
|
379
|
+
border: 2px solid var(--border);
|
|
380
|
+
transform: translateY(-2px);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.shadow-cartoon-sm-hover {
|
|
384
|
+
box-shadow:
|
|
385
|
+
-4px 3px 1px var(--shadow-cartoon-color-hover),
|
|
386
|
+
0 4px 1px var(--shadow-cartoon-color-hover),
|
|
387
|
+
-4px 4px 2px var(--shadow-cartoon-color-hover-soft);
|
|
388
|
+
border: 2px solid var(--border);
|
|
389
|
+
transform: translateY(-2px);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* ── Shimmer text — background gradient sweep over text ── */
|
|
393
|
+
.shimmer-text {
|
|
394
|
+
background: linear-gradient(
|
|
395
|
+
90deg,
|
|
396
|
+
currentColor 0%,
|
|
397
|
+
currentColor 40%,
|
|
398
|
+
rgba(255, 255, 255, 0.8) 50%,
|
|
399
|
+
currentColor 60%,
|
|
400
|
+
currentColor 100%
|
|
401
|
+
);
|
|
402
|
+
background-size: 200% 100%;
|
|
403
|
+
background-clip: text;
|
|
404
|
+
-webkit-background-clip: text;
|
|
405
|
+
animation: shimmer-sweep var(--shimmer-duration, 2000ms) ease-in-out infinite;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.dark .shimmer-text {
|
|
409
|
+
background: linear-gradient(
|
|
410
|
+
90deg,
|
|
411
|
+
currentColor 0%,
|
|
412
|
+
currentColor 40%,
|
|
413
|
+
rgba(255, 255, 255, 0.9) 50%,
|
|
414
|
+
currentColor 60%,
|
|
415
|
+
currentColor 100%
|
|
416
|
+
);
|
|
417
|
+
background-size: 200% 100%;
|
|
418
|
+
background-clip: text;
|
|
419
|
+
-webkit-background-clip: text;
|
|
420
|
+
animation: shimmer-sweep var(--shimmer-duration, 2000ms) ease-in-out infinite;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* ── Rainbow gradients ── */
|
|
424
|
+
.rainbow-pastel {
|
|
425
|
+
background: linear-gradient(to right, var(--rainbow-pastel-red), var(--rainbow-pastel-orange), var(--rainbow-pastel-yellow), var(--rainbow-pastel-green), var(--rainbow-pastel-blue), var(--rainbow-pastel-indigo), var(--rainbow-pastel-violet));
|
|
426
|
+
}
|
|
427
|
+
.rainbow-vivid {
|
|
428
|
+
background: linear-gradient(to right, var(--rainbow-red), var(--rainbow-orange), var(--rainbow-yellow), var(--rainbow-green), var(--rainbow-blue), var(--rainbow-indigo), var(--rainbow-violet));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/* ── Progress gradient (rainbow) ── */
|
|
432
|
+
.progress-gradient {
|
|
433
|
+
background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d0, #3b82f6, #9333ea);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* ── Glassmorphic checkbox ── */
|
|
437
|
+
.checkbox-glass {
|
|
438
|
+
height: 1.25rem;
|
|
439
|
+
width: 1.25rem;
|
|
440
|
+
border-radius: var(--radius-lg);
|
|
441
|
+
border: 2px solid color-mix(in srgb, var(--border) 60%, transparent);
|
|
442
|
+
backdrop-filter: blur(4px);
|
|
443
|
+
|
|
444
|
+
box-shadow: var(--shadow-sm);
|
|
445
|
+
transition-property: background-color, border-color, transform, box-shadow;
|
|
446
|
+
transition-duration: var(--duration-normal);
|
|
447
|
+
transition-timing-function: var(--spring-snappy);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* ── Divider utilities ── */
|
|
451
|
+
.divider-h {
|
|
452
|
+
height: 2px;
|
|
453
|
+
background: linear-gradient(
|
|
454
|
+
to right,
|
|
455
|
+
transparent 1%,
|
|
456
|
+
var(--border) 8%,
|
|
457
|
+
var(--border) 92%,
|
|
458
|
+
transparent 99%
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.divider-h-tapered {
|
|
463
|
+
height: 2px;
|
|
464
|
+
background: linear-gradient(
|
|
465
|
+
to right,
|
|
466
|
+
transparent 3%,
|
|
467
|
+
var(--border) 15%,
|
|
468
|
+
var(--border) 85%,
|
|
469
|
+
transparent 97%
|
|
470
|
+
);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.divider-v {
|
|
474
|
+
width: 2px;
|
|
475
|
+
background: linear-gradient(
|
|
476
|
+
to bottom,
|
|
477
|
+
transparent 3%,
|
|
478
|
+
var(--border) 15%,
|
|
479
|
+
var(--border) 85%,
|
|
480
|
+
transparent 97%
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* ── Shake error ── */
|
|
485
|
+
.shake-error {
|
|
486
|
+
animation: shake 0.5s ease-in-out;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* ── Input focus ring ── */
|
|
490
|
+
.input-focus {
|
|
491
|
+
outline: none;
|
|
492
|
+
transition-property: box-shadow;
|
|
493
|
+
transition-duration: var(--duration-normal);
|
|
494
|
+
transition-timing-function: var(--spring-smooth);
|
|
495
|
+
}
|
|
496
|
+
.input-focus:focus-visible {
|
|
497
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 40%, transparent);
|
|
498
|
+
outline: none;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* ── Active scale — press feedback ── */
|
|
502
|
+
.active-scale:active {
|
|
503
|
+
transform: scale(0.97);
|
|
504
|
+
transition-property: transform;
|
|
505
|
+
transition-duration: var(--duration-fast);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* ── Stagger children — cascading entrance for list/grid items ── */
|
|
509
|
+
.stagger-children > * {
|
|
510
|
+
animation: fade-in var(--duration-normal) var(--spring-smooth, ease) backwards;
|
|
511
|
+
animation-delay: calc(var(--stagger-index, 0) * 50ms);
|
|
512
|
+
}
|
|
513
|
+
.stagger-children > *:nth-child(1) { --stagger-index: 0; }
|
|
514
|
+
.stagger-children > *:nth-child(2) { --stagger-index: 1; }
|
|
515
|
+
.stagger-children > *:nth-child(3) { --stagger-index: 2; }
|
|
516
|
+
.stagger-children > *:nth-child(4) { --stagger-index: 3; }
|
|
517
|
+
.stagger-children > *:nth-child(5) { --stagger-index: 4; }
|
|
518
|
+
.stagger-children > *:nth-child(6) { --stagger-index: 5; }
|
|
519
|
+
.stagger-children > *:nth-child(7) { --stagger-index: 6; }
|
|
520
|
+
.stagger-children > *:nth-child(8) { --stagger-index: 7; }
|
|
521
|
+
.stagger-children > *:nth-child(9) { --stagger-index: 8; }
|
|
522
|
+
.stagger-children > *:nth-child(10) { --stagger-index: 9; }
|
|
523
|
+
.stagger-children > *:nth-child(11) { --stagger-index: 10; }
|
|
524
|
+
.stagger-children > *:nth-child(12) { --stagger-index: 11; }
|
|
525
|
+
|
|
526
|
+
/* ── Scroll reveal — animate on viewport entry (zero JS) ── */
|
|
527
|
+
@supports (animation-timeline: view()) {
|
|
528
|
+
/* One-shot: fades in during entry, stays visible */
|
|
529
|
+
.scroll-reveal {
|
|
530
|
+
animation: fade-in linear both;
|
|
531
|
+
animation-timeline: view();
|
|
532
|
+
animation-range: entry 0% entry 100%;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Reversible: fades in on scroll down, fades out on scroll back up */
|
|
536
|
+
.scroll-reveal-reverse {
|
|
537
|
+
animation: fade-in linear both;
|
|
538
|
+
animation-timeline: view();
|
|
539
|
+
animation-range: entry 0% cover 50%;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/* ── Letter spacing hover spread ── */
|
|
544
|
+
.text-hover-spread {
|
|
545
|
+
letter-spacing: var(--tracking-tight);
|
|
546
|
+
transition: letter-spacing var(--duration-normal) var(--spring-smooth, ease);
|
|
547
|
+
}
|
|
548
|
+
.text-hover-spread:hover {
|
|
549
|
+
letter-spacing: var(--tracking-wide);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* ── Disabled base state ── */
|
|
553
|
+
.disabled-base:disabled {
|
|
554
|
+
pointer-events: none;
|
|
555
|
+
cursor: not-allowed;
|
|
556
|
+
opacity: 0.5;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* ── Card hover transitions ── */
|
|
560
|
+
.card-hover {
|
|
561
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
562
|
+
transition-duration: var(--duration-normal);
|
|
563
|
+
transition-timing-function: ease;
|
|
564
|
+
}
|
|
565
|
+
.card-hover:hover {
|
|
566
|
+
border-color: color-mix(in srgb, var(--border) 50%, transparent);
|
|
567
|
+
background-color: color-mix(in srgb, var(--muted) 30%, transparent);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.card-hover-interactive {
|
|
571
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
572
|
+
transition-duration: var(--duration-normal);
|
|
573
|
+
transition-timing-function: ease;
|
|
574
|
+
}
|
|
575
|
+
.card-hover-interactive:hover {
|
|
576
|
+
border-color: color-mix(in srgb, var(--primary) 30%, transparent);
|
|
577
|
+
background-color: color-mix(in srgb, var(--primary) 5%, transparent);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/* ── Sort button active state ── */
|
|
581
|
+
.sort-button-active {
|
|
582
|
+
background-color: color-mix(in srgb, var(--primary) 10%, transparent);
|
|
583
|
+
color: var(--primary);
|
|
584
|
+
border-color: color-mix(in srgb, var(--primary) 30%, transparent);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/* ── Heatmap color scale (10 levels, light mode) ── */
|
|
588
|
+
.heatmap-1 {
|
|
589
|
+
background-color: rgb(254 226 226);
|
|
590
|
+
color: rgb(127 29 29);
|
|
591
|
+
}
|
|
592
|
+
.heatmap-2 {
|
|
593
|
+
background-color: rgb(254 202 202);
|
|
594
|
+
color: rgb(127 29 29);
|
|
595
|
+
}
|
|
596
|
+
.heatmap-3 {
|
|
597
|
+
background-color: rgb(252 165 165);
|
|
598
|
+
color: rgb(127 29 29);
|
|
599
|
+
}
|
|
600
|
+
.heatmap-4 {
|
|
601
|
+
background-color: rgb(248 113 113);
|
|
602
|
+
color: rgb(127 29 29);
|
|
603
|
+
}
|
|
604
|
+
.heatmap-5 {
|
|
605
|
+
background-color: rgb(239 68 68);
|
|
606
|
+
color: rgb(220 38 38);
|
|
607
|
+
}
|
|
608
|
+
.heatmap-6 {
|
|
609
|
+
background-color: rgb(220 38 38);
|
|
610
|
+
color: rgb(254 226 226);
|
|
611
|
+
}
|
|
612
|
+
.heatmap-7 {
|
|
613
|
+
background-color: rgb(185 28 28);
|
|
614
|
+
color: rgb(254 226 226);
|
|
615
|
+
}
|
|
616
|
+
.heatmap-8 {
|
|
617
|
+
background-color: rgb(153 27 27);
|
|
618
|
+
color: rgb(254 226 226);
|
|
619
|
+
}
|
|
620
|
+
.heatmap-9 {
|
|
621
|
+
background-color: rgb(127 29 29);
|
|
622
|
+
color: rgb(254 226 226);
|
|
623
|
+
}
|
|
624
|
+
.heatmap-10 {
|
|
625
|
+
background-color: rgb(69 10 10);
|
|
626
|
+
color: rgb(254 226 226);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/* ── Heatmap color scale (dark mode) ── */
|
|
630
|
+
.dark .heatmap-1 {
|
|
631
|
+
background-color: rgb(30 10 10);
|
|
632
|
+
color: rgb(156 163 175);
|
|
633
|
+
}
|
|
634
|
+
.dark .heatmap-2 {
|
|
635
|
+
background-color: rgb(45 15 15);
|
|
636
|
+
color: rgb(209 213 219);
|
|
637
|
+
}
|
|
638
|
+
.dark .heatmap-3 {
|
|
639
|
+
background-color: rgb(69 10 10);
|
|
640
|
+
color: rgb(229 231 235);
|
|
641
|
+
}
|
|
642
|
+
.dark .heatmap-4 {
|
|
643
|
+
background-color: rgb(91 15 15);
|
|
644
|
+
color: rgb(243 244 246);
|
|
645
|
+
}
|
|
646
|
+
.dark .heatmap-5 {
|
|
647
|
+
background-color: rgb(127 29 29);
|
|
648
|
+
color: rgb(249 250 251);
|
|
649
|
+
}
|
|
650
|
+
.dark .heatmap-6 {
|
|
651
|
+
background-color: rgb(153 27 27);
|
|
652
|
+
color: rgb(254 226 226);
|
|
653
|
+
}
|
|
654
|
+
.dark .heatmap-7 {
|
|
655
|
+
background-color: rgb(185 28 28);
|
|
656
|
+
color: rgb(254 242 242);
|
|
657
|
+
}
|
|
658
|
+
.dark .heatmap-8 {
|
|
659
|
+
background-color: rgb(220 38 38);
|
|
660
|
+
color: rgb(255 251 251);
|
|
661
|
+
}
|
|
662
|
+
.dark .heatmap-9 {
|
|
663
|
+
background-color: rgb(239 68 68);
|
|
664
|
+
color: rgb(255 255 255);
|
|
665
|
+
}
|
|
666
|
+
.dark .heatmap-10 {
|
|
667
|
+
background-color: rgb(248 113 113);
|
|
668
|
+
color: rgb(255 255 255);
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
@keyframes shimmer {
|
|
673
|
+
0% { background-position: 250% 0; }
|
|
674
|
+
100% { background-position: -250% 0; }
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/* ── Reduced motion: nuanced — preserve opacity, remove spatial motion ── */
|
|
678
|
+
@media (prefers-reduced-motion: reduce) {
|
|
679
|
+
*:not([data-allow-motion]) {
|
|
680
|
+
animation-duration: 0.01ms !important;
|
|
681
|
+
animation-iteration-count: 1 !important;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/* Keep opacity transitions (safe, non-spatial) but shorten */
|
|
685
|
+
*:not([data-allow-motion]) {
|
|
686
|
+
transition-duration: 0.1s !important;
|
|
687
|
+
transition-property: opacity, color, background-color, border-color, box-shadow !important;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/* ── No-transition class (for theme switches, etc.) ── */
|
|
692
|
+
html.no-transition,
|
|
693
|
+
html.no-transition *,
|
|
694
|
+
html.no-transition *::before,
|
|
695
|
+
html.no-transition *::after {
|
|
696
|
+
transition-duration: 0s !important;
|
|
697
|
+
}
|
package/src/utils/cn.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from "./cn";
|