trama-ui 0.1.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/CATALOG.md +1237 -0
- package/LICENSE +21 -0
- package/README.md +78 -0
- package/THIRD-PARTY.md +4 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/brown.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/brown_inlay.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/brown_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/grey.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/grey_inlay.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/grey_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/tan.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/tan_inlay.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/tan_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/white.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/white_inlay.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Ancient/white_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/blue.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/blue_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/green.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/green_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/grey.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/grey_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/red.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/red_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/yellow.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Colored/yellow_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/blue.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/blue_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/green.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/green_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/red.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/red_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/yellow.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/Outline/yellow_pressed.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/list.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/space.png +0 -0
- package/assets/pixel/kenney-pixel-ui/9-slice/space_inlay.png +0 -0
- package/assets/pixel/kenney-pixel-ui/License.txt +23 -0
- package/assets/pixel/kenney-pixel-ui/spritesheet/sheet.png +0 -0
- package/bin/trama-ui.mjs +27 -0
- package/dist/components/ui/Accordion.d.ts +12 -0
- package/dist/components/ui/Accordion.js +12 -0
- package/dist/components/ui/Alert.d.ts +15 -0
- package/dist/components/ui/Alert.js +15 -0
- package/dist/components/ui/ArticlesSection.d.ts +30 -0
- package/dist/components/ui/ArticlesSection.js +18 -0
- package/dist/components/ui/AsciiBackground.d.ts +58 -0
- package/dist/components/ui/AsciiBackground.js +173 -0
- package/dist/components/ui/AsciiCard.d.ts +78 -0
- package/dist/components/ui/AsciiCard.js +253 -0
- package/dist/components/ui/AsciiChart.d.ts +18 -0
- package/dist/components/ui/AsciiChart.js +47 -0
- package/dist/components/ui/Badge.d.ts +15 -0
- package/dist/components/ui/Badge.js +8 -0
- package/dist/components/ui/BitmapText.d.ts +25 -0
- package/dist/components/ui/BitmapText.js +21 -0
- package/dist/components/ui/BlogCard.d.ts +33 -0
- package/dist/components/ui/BlogCard.js +13 -0
- package/dist/components/ui/Breadcrumbs.d.ts +9 -0
- package/dist/components/ui/Breadcrumbs.js +7 -0
- package/dist/components/ui/Button.d.ts +74 -0
- package/dist/components/ui/Button.js +48 -0
- package/dist/components/ui/CTASection.d.ts +13 -0
- package/dist/components/ui/CTASection.js +7 -0
- package/dist/components/ui/Carousel.d.ts +30 -0
- package/dist/components/ui/Carousel.js +80 -0
- package/dist/components/ui/CheckboxGroup.d.ts +11 -0
- package/dist/components/ui/CheckboxGroup.js +20 -0
- package/dist/components/ui/CodeBlock.d.ts +11 -0
- package/dist/components/ui/CodeBlock.js +20 -0
- package/dist/components/ui/ContactForm.d.ts +25 -0
- package/dist/components/ui/ContactForm.js +26 -0
- package/dist/components/ui/CrtOverlay.d.ts +10 -0
- package/dist/components/ui/CrtOverlay.js +5 -0
- package/dist/components/ui/Divider.d.ts +12 -0
- package/dist/components/ui/Divider.js +7 -0
- package/dist/components/ui/Drawer.d.ts +16 -0
- package/dist/components/ui/Drawer.js +25 -0
- package/dist/components/ui/Dropdown.d.ts +10 -0
- package/dist/components/ui/Dropdown.js +21 -0
- package/dist/components/ui/FAQSection.d.ts +14 -0
- package/dist/components/ui/FAQSection.js +7 -0
- package/dist/components/ui/FeatureGrid.d.ts +18 -0
- package/dist/components/ui/FeatureGrid.js +14 -0
- package/dist/components/ui/Footer.d.ts +14 -0
- package/dist/components/ui/Footer.js +16 -0
- package/dist/components/ui/GlyphCursor.d.ts +22 -0
- package/dist/components/ui/GlyphCursor.js +50 -0
- package/dist/components/ui/GridBackground.d.ts +15 -0
- package/dist/components/ui/GridBackground.js +6 -0
- package/dist/components/ui/Hero.d.ts +21 -0
- package/dist/components/ui/Hero.js +12 -0
- package/dist/components/ui/HoverFX.d.ts +29 -0
- package/dist/components/ui/HoverFX.js +75 -0
- package/dist/components/ui/Icon.d.ts +33 -0
- package/dist/components/ui/Icon.js +29 -0
- package/dist/components/ui/ImageGallery.d.ts +31 -0
- package/dist/components/ui/ImageGallery.js +79 -0
- package/dist/components/ui/LogoCloud.d.ts +12 -0
- package/dist/components/ui/LogoCloud.js +9 -0
- package/dist/components/ui/MagneticButton.d.ts +12 -0
- package/dist/components/ui/MagneticButton.js +49 -0
- package/dist/components/ui/Marquee.d.ts +29 -0
- package/dist/components/ui/Marquee.js +15 -0
- package/dist/components/ui/Modal.d.ts +40 -0
- package/dist/components/ui/Modal.js +51 -0
- package/dist/components/ui/NavBar.d.ts +14 -0
- package/dist/components/ui/NavBar.js +12 -0
- package/dist/components/ui/NeonSign.d.ts +14 -0
- package/dist/components/ui/NeonSign.js +7 -0
- package/dist/components/ui/OtpInput.d.ts +9 -0
- package/dist/components/ui/OtpInput.js +27 -0
- package/dist/components/ui/Pagination.d.ts +10 -0
- package/dist/components/ui/Pagination.js +24 -0
- package/dist/components/ui/Panel.d.ts +21 -0
- package/dist/components/ui/Panel.js +8 -0
- package/dist/components/ui/PixelFrame.d.ts +61 -0
- package/dist/components/ui/PixelFrame.js +29 -0
- package/dist/components/ui/Presence.d.ts +51 -0
- package/dist/components/ui/Presence.js +343 -0
- package/dist/components/ui/PricingCard.d.ts +30 -0
- package/dist/components/ui/PricingCard.js +21 -0
- package/dist/components/ui/PricingSection.d.ts +35 -0
- package/dist/components/ui/PricingSection.js +21 -0
- package/dist/components/ui/Progress.d.ts +17 -0
- package/dist/components/ui/Progress.js +9 -0
- package/dist/components/ui/RadioGroup.d.ts +10 -0
- package/dist/components/ui/RadioGroup.js +11 -0
- package/dist/components/ui/RangeSlider.d.ts +14 -0
- package/dist/components/ui/RangeSlider.js +11 -0
- package/dist/components/ui/Reveal.d.ts +48 -0
- package/dist/components/ui/Reveal.js +181 -0
- package/dist/components/ui/SceneFlash.d.ts +14 -0
- package/dist/components/ui/SceneFlash.js +51 -0
- package/dist/components/ui/ScrambleText.d.ts +31 -0
- package/dist/components/ui/ScrambleText.js +51 -0
- package/dist/components/ui/ScrollArea.d.ts +15 -0
- package/dist/components/ui/ScrollArea.js +18 -0
- package/dist/components/ui/SectionHeader.d.ts +12 -0
- package/dist/components/ui/SectionHeader.js +6 -0
- package/dist/components/ui/Select.d.ts +17 -0
- package/dist/components/ui/Select.js +31 -0
- package/dist/components/ui/Skeleton.d.ts +12 -0
- package/dist/components/ui/Skeleton.js +18 -0
- package/dist/components/ui/Spinner.d.ts +15 -0
- package/dist/components/ui/Spinner.js +24 -0
- package/dist/components/ui/Spotlight.d.ts +16 -0
- package/dist/components/ui/Spotlight.js +16 -0
- package/dist/components/ui/Sprite.d.ts +27 -0
- package/dist/components/ui/Sprite.js +19 -0
- package/dist/components/ui/StatCounter.d.ts +24 -0
- package/dist/components/ui/StatCounter.js +70 -0
- package/dist/components/ui/StatsSection.d.ts +14 -0
- package/dist/components/ui/StatsSection.js +13 -0
- package/dist/components/ui/Stepper.d.ts +10 -0
- package/dist/components/ui/Stepper.js +7 -0
- package/dist/components/ui/Table.d.ts +10 -0
- package/dist/components/ui/Table.js +8 -0
- package/dist/components/ui/Tabs.d.ts +12 -0
- package/dist/components/ui/Tabs.js +18 -0
- package/dist/components/ui/TeamSection.d.ts +18 -0
- package/dist/components/ui/TeamSection.js +19 -0
- package/dist/components/ui/TerminalTyper.d.ts +20 -0
- package/dist/components/ui/TerminalTyper.js +45 -0
- package/dist/components/ui/Testimonial.d.ts +19 -0
- package/dist/components/ui/Testimonial.js +9 -0
- package/dist/components/ui/TestimonialSection.d.ts +20 -0
- package/dist/components/ui/TestimonialSection.js +15 -0
- package/dist/components/ui/TextField.d.ts +26 -0
- package/dist/components/ui/TextField.js +13 -0
- package/dist/components/ui/TextmodeBackground.d.ts +52 -0
- package/dist/components/ui/TextmodeBackground.js +83 -0
- package/dist/components/ui/Timeline.d.ts +13 -0
- package/dist/components/ui/Timeline.js +8 -0
- package/dist/components/ui/Toast.d.ts +30 -0
- package/dist/components/ui/Toast.js +47 -0
- package/dist/components/ui/Toggle.d.ts +13 -0
- package/dist/components/ui/Toggle.js +10 -0
- package/dist/components/ui/Tooltip.d.ts +20 -0
- package/dist/components/ui/Tooltip.js +20 -0
- package/dist/components/ui/Typewriter.d.ts +20 -0
- package/dist/components/ui/Typewriter.js +46 -0
- package/dist/components/ui/VideoPlayer.d.ts +81 -0
- package/dist/components/ui/VideoPlayer.js +379 -0
- package/dist/components/ui/fill.d.ts +32 -0
- package/dist/components/ui/fill.js +27 -0
- package/dist/components/ui/intent.d.ts +20 -0
- package/dist/components/ui/intent.js +23 -0
- package/dist/components/ui/styles/kit.css +31 -0
- package/dist/components/ui/styles/ui-carousel.css +113 -0
- package/dist/components/ui/styles/ui-kit.css +1135 -0
- package/dist/components/ui/styles/ui-video.css +75 -0
- package/dist/components/ui/swiperCss.d.ts +15 -0
- package/dist/components/ui/swiperCss.js +15 -0
- package/dist/components/ui/variants.d.ts +12 -0
- package/dist/components/ui/variants.js +10 -0
- package/dist/index.d.ts +77 -0
- package/dist/index.js +77 -0
- package/dist/lib/asciify/painters.d.ts +25 -0
- package/dist/lib/asciify/painters.js +604 -0
- package/dist/lib/asciify/pointer.d.ts +12 -0
- package/dist/lib/asciify/pointer.js +54 -0
- package/dist/lib/asciify/shape-painters.d.ts +44 -0
- package/dist/lib/asciify/shape-painters.js +335 -0
- package/dist/lib/asciify/theme-painters.d.ts +8 -0
- package/dist/lib/asciify/theme-painters.js +437 -0
- package/dist/lib/cells.d.ts +46 -0
- package/dist/lib/cells.js +114 -0
- package/dist/lib/scroll/store.d.ts +21 -0
- package/dist/lib/scroll/store.js +25 -0
- package/dist/lib/sketches/aurora.d.ts +3 -0
- package/dist/lib/sketches/aurora.js +42 -0
- package/dist/lib/sketches/fire.d.ts +3 -0
- package/dist/lib/sketches/fire.js +80 -0
- package/dist/lib/sketches/flow.d.ts +3 -0
- package/dist/lib/sketches/flow.js +70 -0
- package/dist/lib/sketches/life.d.ts +3 -0
- package/dist/lib/sketches/life.js +107 -0
- package/dist/lib/sketches/matrix.d.ts +3 -0
- package/dist/lib/sketches/matrix.js +64 -0
- package/dist/lib/sketches/ocean.d.ts +3 -0
- package/dist/lib/sketches/ocean.js +56 -0
- package/dist/lib/sketches/plasma.d.ts +3 -0
- package/dist/lib/sketches/plasma.js +29 -0
- package/dist/lib/sketches/registry.d.ts +6 -0
- package/dist/lib/sketches/registry.js +60 -0
- package/dist/lib/sketches/ripples.d.ts +3 -0
- package/dist/lib/sketches/ripples.js +84 -0
- package/dist/lib/sketches/scroll-assemble.d.ts +8 -0
- package/dist/lib/sketches/scroll-assemble.js +90 -0
- package/dist/lib/sketches/scroll-parallax.d.ts +6 -0
- package/dist/lib/sketches/scroll-parallax.js +76 -0
- package/dist/lib/sketches/scroll-rain.d.ts +6 -0
- package/dist/lib/sketches/scroll-rain.js +82 -0
- package/dist/lib/sketches/scroll-stats.d.ts +7 -0
- package/dist/lib/sketches/scroll-stats.js +81 -0
- package/dist/lib/sketches/scroll-terminal.d.ts +6 -0
- package/dist/lib/sketches/scroll-terminal.js +87 -0
- package/dist/lib/sketches/scroll-zoom.d.ts +7 -0
- package/dist/lib/sketches/scroll-zoom.js +49 -0
- package/dist/lib/sketches/starfield.d.ts +3 -0
- package/dist/lib/sketches/starfield.js +54 -0
- package/dist/lib/sketches/text-3d.d.ts +6 -0
- package/dist/lib/sketches/text-3d.js +62 -0
- package/dist/lib/sketches/text-combo-figlet.d.ts +6 -0
- package/dist/lib/sketches/text-combo-figlet.js +91 -0
- package/dist/lib/sketches/text-glitch.d.ts +3 -0
- package/dist/lib/sketches/text-glitch.js +57 -0
- package/dist/lib/sketches/text-marquee.d.ts +3 -0
- package/dist/lib/sketches/text-marquee.js +35 -0
- package/dist/lib/sketches/text-particles.d.ts +9 -0
- package/dist/lib/sketches/text-particles.js +91 -0
- package/dist/lib/sketches/text-rain.d.ts +3 -0
- package/dist/lib/sketches/text-rain.js +73 -0
- package/dist/lib/sketches/text-scramble.d.ts +6 -0
- package/dist/lib/sketches/text-scramble.js +49 -0
- package/dist/lib/sketches/text-wave.d.ts +3 -0
- package/dist/lib/sketches/text-wave.js +43 -0
- package/dist/lib/sketches/theme-orbit.d.ts +6 -0
- package/dist/lib/sketches/theme-orbit.js +119 -0
- package/dist/lib/sketches/theme-pulse.d.ts +7 -0
- package/dist/lib/sketches/theme-pulse.js +84 -0
- package/dist/lib/sketches/tunnel.d.ts +3 -0
- package/dist/lib/sketches/tunnel.js +28 -0
- package/dist/lib/text/banner.d.ts +5 -0
- package/dist/lib/text/banner.js +35 -0
- package/dist/lib/text/mask.d.ts +40 -0
- package/dist/lib/text/mask.js +143 -0
- package/dist/lib/text/store.d.ts +23 -0
- package/dist/lib/text/store.js +86 -0
- package/dist/lib/ui/card-fields.d.ts +52 -0
- package/dist/lib/ui/card-fields.js +193 -0
- package/dist/lib/ui/fonts.d.ts +56 -0
- package/dist/lib/ui/fonts.js +94 -0
- package/dist/lib/ui/fx.d.ts +42 -0
- package/dist/lib/ui/fx.js +162 -0
- package/dist/lib/ui/icons.d.ts +437 -0
- package/dist/lib/ui/icons.js +314 -0
- package/dist/lib/ui/placeholder.d.ts +11 -0
- package/dist/lib/ui/placeholder.js +65 -0
- package/dist/lib/ui/tokens.d.ts +49 -0
- package/dist/lib/ui/tokens.js +129 -0
- package/dist/lib/ui/useTokens.d.ts +10 -0
- package/dist/lib/ui/useTokens.js +32 -0
- package/package.json +80 -0
|
@@ -0,0 +1,1135 @@
|
|
|
1
|
+
/* =====================================================================
|
|
2
|
+
Kit de componentes (prefijo ui-)
|
|
3
|
+
1) Sistema de estilos: 7 variantes que fijan --s-* (superficie, borde, radio, sombra…)
|
|
4
|
+
2) Componentes: leen SOLO tokens (--bg --fg --mut --acc --acc2 --card --ln --r) y --s-*
|
|
5
|
+
===================================================================== */
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Legibilidad por defecto para texto "sin superficie" (sin --s-bg detrás: SectionHeader, Hero con
|
|
9
|
+
* backdrop="none", LogoCloud, Divider…) y para las dos variantes con --s-bg: transparent (outline,
|
|
10
|
+
* minimal) — pensados para poder sentarse encima de un fondo de la categoría "fondos" (guía §7).
|
|
11
|
+
*
|
|
12
|
+
* Un halo ligero con el propio --bg del tema, por `text-shadow` (--legibility-ts): dos capas, 1 px y 3 px de
|
|
13
|
+
* desenfoque, con alfa reducida. Invisible sobre un fondo --bg liso y con un margen de contraste discreto en
|
|
14
|
+
* cuanto deja de serlo. La primera línea de defensa NO es este halo sino que el fondo sea sencillo (guía §7:
|
|
15
|
+
* celdas grandes, sin bloom, estilos "dots"/"lines"): un halo agresivo tapando un fondo cargado se ve peor
|
|
16
|
+
* que el problema que arregla. Para el look sin halo, a propósito: `--legibility-ts: 0 0 transparent` en el
|
|
17
|
+
* contenedor.
|
|
18
|
+
*
|
|
19
|
+
* Por qué `text-shadow` y NO `filter: drop-shadow()`: en Chromium el filtro fuerza un compositado que suaviza
|
|
20
|
+
* los glifos — con texto oscuro sobre un tema claro (FOLIO) se leía borroso por pequeño que fuese el radio, y
|
|
21
|
+
* solo desaparecía quitando el filtro. Con texto claro sobre fondo oscuro no se nota (el halo oscuro apenas
|
|
22
|
+
* se ve sobre los glifos), por eso tardó en aparecer. `text-shadow` no tiene ese efecto secundario. Y se puede
|
|
23
|
+
* combinar con la sombra del propio estilo (`text-shadow: var(--s-ts), var(--legibility-ts)`) porque --s-ts es
|
|
24
|
+
* SIEMPRE un <shadow> válido — `0 0 transparent` cuando el estilo no tiene sombra, nunca la palabra clave
|
|
25
|
+
* `none`, que invalidaría toda la lista.
|
|
26
|
+
*/
|
|
27
|
+
:root, :host {
|
|
28
|
+
--legibility-ts: 0 1px 1px color-mix(in srgb, var(--bg, #000) 85%, transparent), 0 0 3px color-mix(in srgb, var(--bg, #000) 65%, transparent);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* ---------- 1. Sistema de estilos ---------- */
|
|
32
|
+
.ui-s {
|
|
33
|
+
--ok: #3ddc84; --warn: #ffb020; --bad: #ff5470; --info: #4cb8ff;
|
|
34
|
+
--mono: var(--font-jetbrains-mono), ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
|
|
35
|
+
--s-bg: var(--card); --s-bd: 1px solid var(--ln); --s-r: var(--r, 12px); --s-sh: none; --s-bf: none;
|
|
36
|
+
--s-ff: inherit; --s-tt: none; --s-ls: normal; --s-fw: 500; --s-ts: 0 0 transparent;
|
|
37
|
+
--s-pri-bg: var(--acc); --s-pri-fg: var(--bg); --s-pri-bd: 1px solid transparent; --s-pri-sh: none; --s-pri-ts: none;
|
|
38
|
+
}
|
|
39
|
+
.ui-s--glass {
|
|
40
|
+
--s-bg: var(--card); --s-bd: 1px solid var(--ln); --s-r: max(var(--r, 12px), 12px); --s-bf: blur(14px);
|
|
41
|
+
--s-pri-bg: color-mix(in srgb, var(--acc) 88%, transparent); --s-pri-sh: 0 8px 30px -10px var(--acc);
|
|
42
|
+
}
|
|
43
|
+
.ui-s--solid {
|
|
44
|
+
--s-bg: color-mix(in srgb, var(--fg) 9%, var(--bg)); --s-bd: 3px solid var(--ln); --s-r: min(var(--r, 12px), 6px);
|
|
45
|
+
--s-sh: 5px 5px 0 var(--ln); --s-fw: 700; --s-pri-bd: 3px solid var(--fg); --s-pri-sh: 4px 4px 0 var(--ln);
|
|
46
|
+
}
|
|
47
|
+
.ui-s--outline {
|
|
48
|
+
--s-bg: transparent; --s-bd: 1px solid var(--acc); --s-r: min(var(--r, 12px), 3px); --s-sh: inset 0 0 26px -14px var(--acc);
|
|
49
|
+
--s-tt: uppercase; --s-ls: 0.08em; --s-pri-bg: transparent; --s-pri-fg: var(--acc); --s-pri-bd: 1px solid var(--acc);
|
|
50
|
+
}
|
|
51
|
+
.ui-s--neon {
|
|
52
|
+
--s-bg: rgba(0, 0, 0, 0.42); --s-bd: 1px solid var(--acc); --s-r: min(var(--r, 12px), 10px);
|
|
53
|
+
--s-sh: 0 0 16px -2px var(--acc), inset 0 0 14px -8px var(--acc); --s-ff: var(--mono); --s-ts: 0 0 8px var(--acc);
|
|
54
|
+
--s-pri-bg: rgba(0, 0, 0, 0.4); --s-pri-fg: var(--acc); --s-pri-bd: 1px solid var(--acc); --s-pri-sh: 0 0 18px -2px var(--acc), inset 0 0 12px -6px var(--acc); --s-pri-ts: 0 0 8px var(--acc);
|
|
55
|
+
}
|
|
56
|
+
.ui-s--retro {
|
|
57
|
+
--s-bg: color-mix(in srgb, var(--acc) 10%, var(--bg)); --s-bd: 3px solid var(--acc); --s-r: 0px; --s-sh: 4px 4px 0 var(--acc2);
|
|
58
|
+
--s-ff: var(--font-space-mono), "Courier New", Courier, monospace; --s-tt: uppercase; --s-fw: 800; --s-ls: 0.04em;
|
|
59
|
+
--s-pri-bg: var(--acc); --s-pri-fg: var(--bg); --s-pri-bd: 3px solid var(--fg); --s-pri-sh: 4px 4px 0 var(--acc2);
|
|
60
|
+
}
|
|
61
|
+
.ui-s--terminal {
|
|
62
|
+
--s-bg: color-mix(in srgb, var(--bg) 92%, #000); --s-bd: 1px solid var(--ln); --s-r: 4px; --s-ff: var(--mono);
|
|
63
|
+
--s-pri-bg: transparent; --s-pri-fg: var(--acc); --s-pri-bd: 1px solid var(--acc);
|
|
64
|
+
}
|
|
65
|
+
.ui-s--minimal {
|
|
66
|
+
--s-bg: transparent; --s-bd: 0 solid transparent; --s-r: 0px; --s-pri-bg: transparent; --s-pri-fg: var(--fg); --s-pri-bd: 0 solid transparent;
|
|
67
|
+
}
|
|
68
|
+
/*
|
|
69
|
+
* outline y minimal son las dos únicas variantes con --s-bg: transparent — su legibilidad depende
|
|
70
|
+
* por completo de lo que haya detrás, no solo el texto suelto (SectionHeader, Hero…) que ya lleva
|
|
71
|
+
* --legibility-ts por su cuenta. Antes usaba `filter: var(--legibility)` en el elemento raíz para
|
|
72
|
+
* proteger TODO el subárbol de una vez (borde incluido) sin tener que añadir la clase a cada hijo;
|
|
73
|
+
* se cambió a `text-shadow` (heredado por CSS a todo el texto descendiente igual que --s-ts) porque
|
|
74
|
+
* `filter: drop-shadow()` sobre texto suaviza visiblemente los glifos (mismo hallazgo que llevó a
|
|
75
|
+
* --legibility-ts para el texto suelto — ver arriba). Ninguna de las dos variantes tiene borde o
|
|
76
|
+
* relleno propio que proteger (outline: solo un borde de 1px ya de por sí contrastado; minimal: sin
|
|
77
|
+
* borde ni relleno), así que no hace falta lo que `filter` daba de más.
|
|
78
|
+
*/
|
|
79
|
+
.ui-s--outline, .ui-s--minimal { text-shadow: var(--legibility-ts); }
|
|
80
|
+
|
|
81
|
+
.ui-surface {
|
|
82
|
+
background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh);
|
|
83
|
+
-webkit-backdrop-filter: var(--s-bf); backdrop-filter: var(--s-bf);
|
|
84
|
+
font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); color: var(--fg);
|
|
85
|
+
}
|
|
86
|
+
/* minimal no tiene borde en ninguna superficie; solo los campos de formulario conservan una línea inferior, que es
|
|
87
|
+
* lo único que los delimita (sin fondo ni borde, no se vería dónde escribir) */
|
|
88
|
+
.ui-s--minimal:is(.ui-field__box, .ui-select__trigger, .ui-otp__box) { border-width: 0 0 1px; border-color: var(--ln); border-style: solid; }
|
|
89
|
+
|
|
90
|
+
/* ---------- Fondos de tarjeta (components/ui/fill.ts) ----------
|
|
91
|
+
* Independientes de la variante: la variante pone borde, radio, sombra y tipografía; el fill, lo que hay detrás.
|
|
92
|
+
* Se sobrescribe --s-bg (que .ui-surface usa como `background`), así que admite degradados e imágenes.
|
|
93
|
+
* `.ui-s.ui-cfill--*` (dos clases) para ganar a `.ui-s--<variante>` sin depender del orden. */
|
|
94
|
+
.ui-tone--acc2 { --acc: var(--acc2); }
|
|
95
|
+
.ui-s.ui-cfill--tint { --s-bg: color-mix(in srgb, var(--acc) 16%, var(--bg)); --s-bf: none; }
|
|
96
|
+
.ui-s.ui-cfill--gradient {
|
|
97
|
+
--s-bg: linear-gradient(150deg, color-mix(in srgb, var(--acc) 30%, var(--bg)) 0%, color-mix(in srgb, var(--acc2) 22%, var(--bg)) 100%);
|
|
98
|
+
--s-bf: none;
|
|
99
|
+
}
|
|
100
|
+
.ui-s.ui-cfill--pattern { --s-bg: var(--pat), color-mix(in srgb, var(--acc) 6%, var(--bg)); --s-bf: none; }
|
|
101
|
+
.ui-s.ui-cfill--image {
|
|
102
|
+
/* velo del color de fondo sobre la imagen: --veil-top/--veil-mid/--veil-bottom (en % de opacidad) */
|
|
103
|
+
--s-bg: linear-gradient(180deg, color-mix(in srgb, var(--bg) var(--veil-top, 62%), transparent) 0%, color-mix(in srgb, var(--bg) var(--veil-mid, 74%), transparent) 45%, color-mix(in srgb, var(--bg) var(--veil-bottom, 92%), transparent) 80%), var(--fill-img, none) center / cover no-repeat, var(--bg);
|
|
104
|
+
--s-bf: none;
|
|
105
|
+
}
|
|
106
|
+
/* Invertida: fondo de acento, texto del color de fondo. Los hijos reciben la paleta invertida entera (un botón
|
|
107
|
+
* primario dentro pasa a ser oscuro sobre acento, sin tocar el botón). --inv-* se calculan en el raíz con los
|
|
108
|
+
* valores originales; redefinir --bg/--fg en el mismo elemento que los lee sería un ciclo. */
|
|
109
|
+
.ui-s.ui-cfill--accent { --inv-a: var(--acc); --inv-b: var(--bg); --s-bg: var(--acc); --s-bf: none; color: var(--bg); text-shadow: none; }
|
|
110
|
+
.ui-cfill--accent > * {
|
|
111
|
+
--bg: var(--inv-a); --fg: var(--inv-b); --acc: var(--inv-b); --acc2: var(--inv-b);
|
|
112
|
+
--mut: color-mix(in srgb, var(--inv-b) 70%, var(--inv-a)); --ln: color-mix(in srgb, var(--inv-b) 26%, transparent);
|
|
113
|
+
--card: color-mix(in srgb, var(--inv-b) 10%, transparent); --legibility-ts: 0 0 transparent;
|
|
114
|
+
}
|
|
115
|
+
/* Tramas: solo el dibujo (--pat), en --acc con poca opacidad para no competir con el texto. Las usan el fill
|
|
116
|
+
* `pattern` y cualquier zona decorativa (la cabecera de BlogCard, por ejemplo). */
|
|
117
|
+
.ui-pat--dots { --pat: radial-gradient(circle, color-mix(in srgb, var(--acc) 40%, transparent) 1.2px, transparent 1.8px) 0 0 / 14px 14px; }
|
|
118
|
+
.ui-pat--grid { --pat: linear-gradient(color-mix(in srgb, var(--acc) 20%, transparent) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, color-mix(in srgb, var(--acc) 20%, transparent) 1px, transparent 1px) 0 0 / 18px 18px; }
|
|
119
|
+
.ui-pat--diagonal { --pat: repeating-linear-gradient(45deg, color-mix(in srgb, var(--acc) 22%, transparent) 0 1px, transparent 1px 11px); }
|
|
120
|
+
.ui-pat--waves { --pat: radial-gradient(circle at 50% 0%, transparent 8px, color-mix(in srgb, var(--acc) 28%, transparent) 9px 10px, transparent 11px) 0 0 / 24px 12px; }
|
|
121
|
+
.ui-pat--checker { --pat: conic-gradient(color-mix(in srgb, var(--acc) 12%, transparent) 25%, transparent 0 50%, color-mix(in srgb, var(--acc) 12%, transparent) 0 75%, transparent 0) 0 0 / 22px 22px; }
|
|
122
|
+
.ui-pat--rays { --pat: repeating-conic-gradient(from 0deg at 100% 0%, color-mix(in srgb, var(--acc) 14%, transparent) 0deg 3deg, transparent 3deg 9deg); }
|
|
123
|
+
|
|
124
|
+
/* ---------- Scrollbars personalizadas ---------- */
|
|
125
|
+
/*
|
|
126
|
+
* Base neutra (tokens, sin --s-*): para cualquier área con overflow que no esté dentro de una
|
|
127
|
+
* superficie con estilo propio — el escenario (.ui-center), el body de un Modal/Drawer largo…
|
|
128
|
+
* Firefox usa scrollbar-width/-color (dos colores, sin más control); WebKit/Blink (Chrome, Edge,
|
|
129
|
+
* Safari) usan los pseudo-elementos ::-webkit-scrollbar-*, que no son propiedades heredadas: hay
|
|
130
|
+
* que declararlos también con el combinador descendiente para alcanzar cualquier hijo que scrollee.
|
|
131
|
+
*/
|
|
132
|
+
html { scrollbar-width: thin; scrollbar-color: var(--ln, rgba(255, 255, 255, 0.25)) transparent; }
|
|
133
|
+
.ui-center::-webkit-scrollbar, .ui-drawer::-webkit-scrollbar, .ui-modal::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
134
|
+
.ui-center::-webkit-scrollbar-track, .ui-drawer::-webkit-scrollbar-track, .ui-modal::-webkit-scrollbar-track { background: transparent; }
|
|
135
|
+
.ui-center::-webkit-scrollbar-thumb, .ui-drawer::-webkit-scrollbar-thumb, .ui-modal::-webkit-scrollbar-thumb { background: var(--ln); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
|
|
136
|
+
.ui-center::-webkit-scrollbar-thumb:hover, .ui-drawer::-webkit-scrollbar-thumb:hover, .ui-modal::-webkit-scrollbar-thumb:hover { background: var(--acc); }
|
|
137
|
+
.ui-modal { max-height: 80vh; overflow-y: auto; }
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* Por estilo: cualquier superficie ui-s--<variante> (o lo que scrollee dentro de ella, p. ej. el
|
|
141
|
+
* <pre> de CodeBlock o la lista de Select) hereda el tratamiento de su variante, en vez de la barra
|
|
142
|
+
* neutra de arriba — el mismo principio que --s-*: se define una vez por estilo, no por componente.
|
|
143
|
+
*/
|
|
144
|
+
.ui-s { scrollbar-width: thin; scrollbar-color: var(--ln) transparent; }
|
|
145
|
+
.ui-s::-webkit-scrollbar, .ui-s ::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
146
|
+
.ui-s::-webkit-scrollbar-track, .ui-s ::-webkit-scrollbar-track { background: transparent; }
|
|
147
|
+
.ui-s::-webkit-scrollbar-thumb, .ui-s ::-webkit-scrollbar-thumb { background: var(--ln); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
|
|
148
|
+
.ui-s::-webkit-scrollbar-thumb:hover, .ui-s ::-webkit-scrollbar-thumb:hover { background: var(--acc); }
|
|
149
|
+
|
|
150
|
+
.ui-s--glass::-webkit-scrollbar-thumb, .ui-s--glass ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--fg) 22%, transparent); backdrop-filter: blur(4px); }
|
|
151
|
+
|
|
152
|
+
.ui-s--solid { scrollbar-color: var(--fg) transparent; }
|
|
153
|
+
.ui-s--solid::-webkit-scrollbar, .ui-s--solid ::-webkit-scrollbar { width: 12px; height: 12px; }
|
|
154
|
+
.ui-s--solid::-webkit-scrollbar-thumb, .ui-s--solid ::-webkit-scrollbar-thumb { background: var(--fg); border: 2px solid var(--bg); border-radius: 4px; background-clip: padding-box; }
|
|
155
|
+
|
|
156
|
+
.ui-s--outline { scrollbar-color: var(--acc) transparent; }
|
|
157
|
+
.ui-s--outline::-webkit-scrollbar, .ui-s--outline ::-webkit-scrollbar { width: 6px; height: 6px; }
|
|
158
|
+
.ui-s--outline::-webkit-scrollbar-thumb, .ui-s--outline ::-webkit-scrollbar-thumb { background: var(--acc); border-radius: 0; border: 0; }
|
|
159
|
+
|
|
160
|
+
.ui-s--neon { scrollbar-color: var(--acc) transparent; }
|
|
161
|
+
.ui-s--neon::-webkit-scrollbar-thumb, .ui-s--neon ::-webkit-scrollbar-thumb { background: var(--acc); border: 0; box-shadow: 0 0 8px var(--acc); }
|
|
162
|
+
|
|
163
|
+
.ui-s--retro { scrollbar-color: var(--acc) color-mix(in srgb, var(--bg) 80%, #000); }
|
|
164
|
+
.ui-s--retro::-webkit-scrollbar, .ui-s--retro ::-webkit-scrollbar { width: 14px; height: 14px; }
|
|
165
|
+
.ui-s--retro::-webkit-scrollbar-track, .ui-s--retro ::-webkit-scrollbar-track { background: color-mix(in srgb, var(--bg) 80%, #000); }
|
|
166
|
+
.ui-s--retro::-webkit-scrollbar-thumb, .ui-s--retro ::-webkit-scrollbar-thumb { background: var(--acc); border: 2px solid var(--fg); border-radius: 0; background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(0, 0, 0, 0.25) 3px 6px); background-clip: padding-box; }
|
|
167
|
+
|
|
168
|
+
.ui-s--terminal { scrollbar-color: var(--acc) color-mix(in srgb, var(--bg) 85%, #000); }
|
|
169
|
+
.ui-s--terminal::-webkit-scrollbar, .ui-s--terminal ::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
170
|
+
.ui-s--terminal::-webkit-scrollbar-track, .ui-s--terminal ::-webkit-scrollbar-track { background: color-mix(in srgb, var(--bg) 85%, #000); }
|
|
171
|
+
.ui-s--terminal::-webkit-scrollbar-thumb, .ui-s--terminal ::-webkit-scrollbar-thumb { background: var(--acc); border-radius: 0; }
|
|
172
|
+
|
|
173
|
+
.ui-s--minimal { scrollbar-color: color-mix(in srgb, var(--fg) 22%, transparent) transparent; }
|
|
174
|
+
.ui-s--minimal::-webkit-scrollbar, .ui-s--minimal ::-webkit-scrollbar { width: 4px; height: 4px; }
|
|
175
|
+
.ui-s--minimal::-webkit-scrollbar-thumb, .ui-s--minimal ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--fg) 22%, transparent); border-radius: 0; }
|
|
176
|
+
|
|
177
|
+
/* ---------- Base compartida ---------- */
|
|
178
|
+
.ui-fill { position: absolute; inset: 0; overflow: hidden; }
|
|
179
|
+
.ui-fill__media { position: absolute; inset: 0; }
|
|
180
|
+
.ui-fill-canvas { display: block; width: 100% !important; height: 100% !important; }
|
|
181
|
+
.ui-center { position: absolute; inset: 0; display: grid; place-content: safe center; justify-items: center; gap: 12px; padding: 24px; overflow: auto; }
|
|
182
|
+
.ui-center--full { padding: 0; }
|
|
183
|
+
.ui-center--top { place-content: start center; padding-top: 0; }
|
|
184
|
+
/* Una columna de hasta 780 px que sí se estira (por defecto los hijos de .ui-center se ajustan al contenido): para galerías. */
|
|
185
|
+
.ui-center--cols { grid-template-columns: minmax(0, 780px); justify-items: stretch; }
|
|
186
|
+
.ui-hint { font-size: 12px; color: var(--mut, #9aa3b5); }
|
|
187
|
+
.ui-sample {
|
|
188
|
+
position: absolute; left: 24px; bottom: 24px; max-width: 320px; display: grid; gap: 4px;
|
|
189
|
+
padding: 14px 16px; border: 1px solid var(--ln); border-radius: var(--r, 12px);
|
|
190
|
+
background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); pointer-events: none;
|
|
191
|
+
}
|
|
192
|
+
.ui-sample strong { font-size: 18px; text-shadow: 0 1px 10px #000; }
|
|
193
|
+
.ui-sample span { font-size: 12px; color: var(--mut); }
|
|
194
|
+
.ui-tone--fg { --tone: var(--fg); } .ui-tone--acc { --tone: var(--acc); } .ui-tone--acc2 { --tone: var(--acc2); } .ui-tone--mut { --tone: var(--mut); }
|
|
195
|
+
|
|
196
|
+
/* Paletas de los fondos: reinterpretan los colores de la escena con los tokens del tema */
|
|
197
|
+
.ui-pal { isolation: isolate; opacity: var(--op, 1); }
|
|
198
|
+
.ui-pal__a, .ui-pal__b { position: absolute; inset: 0; pointer-events: none; display: none; }
|
|
199
|
+
.ui-pal--tint .ui-pal__a { display: block; background: var(--acc); mix-blend-mode: color; opacity: var(--tint, 0.7); }
|
|
200
|
+
.ui-pal--duotone .ui-fill__media { filter: grayscale(1) contrast(1.15) brightness(1.05); }
|
|
201
|
+
.ui-pal--duotone .ui-pal__a { display: block; background: var(--acc); mix-blend-mode: multiply; opacity: var(--tint, 1); }
|
|
202
|
+
.ui-pal--duotone .ui-pal__b { display: block; background: var(--bg); mix-blend-mode: lighten; opacity: var(--tint, 1); }
|
|
203
|
+
.ui-pal--gradient .ui-fill__media { filter: grayscale(1) contrast(1.15) brightness(1.05); }
|
|
204
|
+
.ui-pal--gradient .ui-pal__a { display: block; background: linear-gradient(135deg, var(--acc), var(--acc2)); mix-blend-mode: multiply; opacity: var(--tint, 1); }
|
|
205
|
+
.ui-pal--gradient .ui-pal__b { display: block; background: var(--bg); mix-blend-mode: lighten; opacity: var(--tint, 1); }
|
|
206
|
+
|
|
207
|
+
/* ---------- Button / MagneticButton ---------- */
|
|
208
|
+
.ui-button {
|
|
209
|
+
display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
|
|
210
|
+
font: inherit; font-family: var(--s-ff); font-weight: var(--s-fw, 700); text-transform: var(--s-tt); letter-spacing: var(--s-ls);
|
|
211
|
+
border-radius: var(--s-r); transition: box-shadow 0.2s, filter 0.2s, transform 0.12s, background 0.2s;
|
|
212
|
+
}
|
|
213
|
+
.ui-button--sm { padding: 7px 14px; font-size: 13px; }
|
|
214
|
+
.ui-button--md { padding: 11px 22px; font-size: 15px; }
|
|
215
|
+
.ui-button--lg { padding: 15px 32px; font-size: 18px; }
|
|
216
|
+
.ui-button--full { width: 100%; }
|
|
217
|
+
.ui-button--primary { background: var(--s-pri-bg); color: var(--s-pri-fg); border: var(--s-pri-bd); box-shadow: var(--s-pri-sh); text-shadow: var(--s-pri-ts); }
|
|
218
|
+
.ui-button--secondary { background: var(--s-bg); color: var(--fg); border: var(--s-bd); box-shadow: var(--s-sh); }
|
|
219
|
+
.ui-button--ghost { background: transparent; color: var(--fg); border: 1px solid transparent; box-shadow: none; }
|
|
220
|
+
.ui-button:hover:not(:disabled, [aria-disabled="true"]) { filter: brightness(1.14); }
|
|
221
|
+
.ui-button:disabled, .ui-button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
|
|
222
|
+
a.ui-button { text-decoration: none; }
|
|
223
|
+
.ui-button:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
|
|
224
|
+
|
|
225
|
+
/* Color (intent): las reglas .ui-intent--* están al final del archivo, comunes a todo el kit. En el botón sustituyen
|
|
226
|
+
* --acc; como --s-pri-* se declaran en el mismo elemento (.ui-s) leyendo var(--acc), relleno, borde, halo y texto
|
|
227
|
+
* cambian a la vez en los 7 estilos sin reglas por variante. */
|
|
228
|
+
/* en secondary y ghost el color se nota en el texto; con el acento del tema siguen con el texto normal */
|
|
229
|
+
.ui-button--secondary:not(.ui-intent--accent), .ui-button--ghost:not(.ui-intent--accent) { color: var(--acc); }
|
|
230
|
+
.ui-button--secondary:not(.ui-intent--accent) { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
|
|
231
|
+
|
|
232
|
+
/* Énfasis nuevos: outline (solo borde) y link (texto subrayado, sin caja) */
|
|
233
|
+
.ui-button--outline { background: transparent; color: var(--acc); border: 1px solid var(--acc); box-shadow: none; }
|
|
234
|
+
.ui-s--solid.ui-button--outline, .ui-s--retro.ui-button--outline { border-width: 3px; }
|
|
235
|
+
.ui-s--neon.ui-button--outline { box-shadow: 0 0 12px -2px var(--acc), inset 0 0 10px -6px var(--acc); text-shadow: 0 0 8px var(--acc); }
|
|
236
|
+
.ui-button--outline:hover:not(:disabled, [aria-disabled="true"]) { background: color-mix(in srgb, var(--acc) 12%, transparent); filter: none; }
|
|
237
|
+
.ui-button--link { background: none; border: 0; box-shadow: none; padding-inline: 2px; color: var(--acc); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
|
|
238
|
+
.ui-button--link:hover:not(:disabled, [aria-disabled="true"]) { text-decoration-thickness: 2px; filter: none; }
|
|
239
|
+
|
|
240
|
+
/* Pulsado (active / aria-pressed): hundido en los rellenos, tinte de acento en los demás */
|
|
241
|
+
.ui-button.is-active { filter: brightness(0.9); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35); translate: 0 1px; }
|
|
242
|
+
.ui-button--secondary.is-active, .ui-button--ghost.is-active, .ui-button--outline.is-active {
|
|
243
|
+
filter: none; background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); border-color: var(--acc);
|
|
244
|
+
}
|
|
245
|
+
.ui-button--link.is-active { box-shadow: none; translate: none; filter: none; text-decoration-thickness: 2px; }
|
|
246
|
+
.ui-s--retro.ui-button.is-active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--acc2); }
|
|
247
|
+
.ui-s--terminal.ui-button.is-active::after { content: "*"; }
|
|
248
|
+
|
|
249
|
+
/* Cargando: indicador que hereda el color del texto; el botón no reacciona pero no se atenúa como disabled */
|
|
250
|
+
.ui-button.is-loading { cursor: progress; }
|
|
251
|
+
.ui-button.is-loading:disabled { opacity: 0.85; }
|
|
252
|
+
.ui-button__spin { width: 1em; height: 1em; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin 0.7s linear infinite; }
|
|
253
|
+
.ui-s--terminal .ui-button__spin, .ui-s--retro .ui-button__spin, .ui-s--terminal.ui-button .ui-button__spin, .ui-s--retro.ui-button .ui-button__spin { border-radius: 0; }
|
|
254
|
+
@media (prefers-reduced-motion: reduce) { .ui-button__spin { animation-duration: 2s; } }
|
|
255
|
+
|
|
256
|
+
/* Solo icono: cuadrado */
|
|
257
|
+
.ui-button--icon { aspect-ratio: 1; padding: 0; }
|
|
258
|
+
.ui-button--icon.ui-button--sm { width: 32px; } .ui-button--icon.ui-button--md { width: 42px; } .ui-button--icon.ui-button--lg { width: 54px; }
|
|
259
|
+
.ui-s--terminal.ui-button--primary::before { content: ">"; opacity: 0.8; }
|
|
260
|
+
.ui-s--retro.ui-button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--acc2); }
|
|
261
|
+
.ui-s--minimal.ui-button--primary { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--acc); }
|
|
262
|
+
.ui-s--minimal.ui-button--primary:hover { text-decoration-thickness: 2px; }
|
|
263
|
+
/* minimal no tiene relleno: con un color semántico, el texto lo lleva (si no, «Eliminar» se leería igual que «Guardar») */
|
|
264
|
+
.ui-s--minimal.ui-button--primary:not(.ui-intent--accent) { color: var(--acc); }
|
|
265
|
+
.ui-button__glyph { font-family: var(--mono); display: inline-flex; align-items: center; }
|
|
266
|
+
|
|
267
|
+
/* ---------- TextField ---------- */
|
|
268
|
+
.ui-field { display: grid; gap: 6px; width: min(100%, 340px); font-size: 14px; --tone: var(--acc); }
|
|
269
|
+
/* estado de validación: el color lo pone .ui-intent--* (al final del archivo) */
|
|
270
|
+
.ui-field__label { font-size: 12px; letter-spacing: 0.06em; color: var(--mut); text-transform: none; }
|
|
271
|
+
.ui-field__box { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
|
|
272
|
+
.ui-field--sm .ui-field__box { height: 34px; } .ui-field--md .ui-field__box { height: 42px; } .ui-field--lg .ui-field__box { height: 52px; font-size: 16px; }
|
|
273
|
+
.ui-field__box:focus-within { border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 28%, transparent); }
|
|
274
|
+
.ui-field--state .ui-field__box { border-color: var(--tone); }
|
|
275
|
+
.ui-field__prefix { color: var(--tone); font-family: var(--mono); }
|
|
276
|
+
.ui-field input {
|
|
277
|
+
flex: 1; min-width: 0; font: inherit; color: inherit; text-transform: none; letter-spacing: normal; text-shadow: none;
|
|
278
|
+
background: none; border: 0; outline: none; border-radius: 0; appearance: none; -webkit-appearance: none;
|
|
279
|
+
}
|
|
280
|
+
.ui-field input::placeholder, .ui-field textarea::placeholder { color: var(--mut); }
|
|
281
|
+
.ui-field--multiline .ui-field__box { height: auto; align-items: flex-start; padding: 10px 12px; }
|
|
282
|
+
.ui-field textarea {
|
|
283
|
+
flex: 1; min-width: 0; min-height: 84px; resize: vertical; font: inherit; color: inherit; text-transform: none; letter-spacing: normal; text-shadow: none;
|
|
284
|
+
background: none; border: 0; outline: none; border-radius: 0; appearance: none; -webkit-appearance: none;
|
|
285
|
+
}
|
|
286
|
+
.ui-field__hint { font-size: 12px; color: var(--mut); }
|
|
287
|
+
.ui-field--state .ui-field__hint { color: var(--tone); }
|
|
288
|
+
|
|
289
|
+
/* ---------- Toggle ---------- */
|
|
290
|
+
.ui-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; color: var(--fg); background: none; border: 0; padding: 0; font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); }
|
|
291
|
+
.ui-toggle__track { position: relative; flex: none; width: 44px; height: 24px; background: var(--s-bg); border: var(--s-bd); border-radius: 999px; box-shadow: var(--s-sh); transition: background 0.2s, box-shadow 0.2s; }
|
|
292
|
+
.ui-toggle--sm .ui-toggle__track { width: 34px; height: 18px; } .ui-toggle--lg .ui-toggle__track { width: 56px; height: 30px; }
|
|
293
|
+
.ui-toggle__thumb { position: absolute; top: 50%; left: 3px; width: calc(100% * 0.42); aspect-ratio: 1; height: auto; translate: 0 -50%; border-radius: 50%; background: var(--mut); transition: left 0.18s, background 0.2s; }
|
|
294
|
+
.ui-toggle.is-on .ui-toggle__track { background: color-mix(in srgb, var(--acc) 30%, transparent); }
|
|
295
|
+
.ui-toggle.is-on .ui-toggle__thumb { left: calc(100% - 3px - 100% * 0.42); background: var(--acc); }
|
|
296
|
+
.ui-toggle__text { display: none; font-family: var(--mono); font-weight: 700; color: var(--mut); }
|
|
297
|
+
.ui-toggle.is-on .ui-toggle__text { color: var(--acc); }
|
|
298
|
+
.ui-s--retro .ui-toggle__track, .ui-s--terminal .ui-toggle__track { display: none; }
|
|
299
|
+
.ui-s--retro .ui-toggle__text, .ui-s--terminal .ui-toggle__text { display: inline; }
|
|
300
|
+
.ui-s--retro .ui-toggle__track { border-radius: 0; }
|
|
301
|
+
.ui-s--solid .ui-toggle__track, .ui-s--outline .ui-toggle__track { border-radius: var(--s-r); }
|
|
302
|
+
.ui-s--solid .ui-toggle__thumb, .ui-s--outline .ui-toggle__thumb { border-radius: calc(var(--s-r) - 2px); }
|
|
303
|
+
.ui-s--neon .ui-toggle.is-on .ui-toggle__thumb { box-shadow: 0 0 10px var(--acc); }
|
|
304
|
+
|
|
305
|
+
/* ---------- RangeSlider ---------- */
|
|
306
|
+
.ui-range { display: grid; gap: 8px; width: min(100%, 340px); font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); font-size: 13px; }
|
|
307
|
+
.ui-range__head { display: flex; justify-content: space-between; color: var(--mut); }
|
|
308
|
+
.ui-range__head output { color: var(--acc); font-variant-numeric: tabular-nums; }
|
|
309
|
+
.ui-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
|
|
310
|
+
.ui-range input::-webkit-slider-runnable-track { height: 6px; border-radius: var(--s-r); background: linear-gradient(90deg, var(--acc) var(--pct, 50%), color-mix(in srgb, var(--fg) 16%, transparent) var(--pct, 50%)); border: var(--s-bd); box-shadow: var(--s-sh); }
|
|
311
|
+
.ui-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: calc(var(--s-r) + 999px * 0); background: var(--acc); border: 2px solid var(--bg); }
|
|
312
|
+
.ui-range input::-moz-range-track { height: 6px; background: color-mix(in srgb, var(--fg) 16%, transparent); border-radius: var(--s-r); }
|
|
313
|
+
.ui-range input::-moz-range-thumb { width: 14px; height: 14px; background: var(--acc); border: 2px solid var(--bg); border-radius: var(--s-r); }
|
|
314
|
+
.ui-s--glass .ui-range input::-webkit-slider-thumb, .ui-s--neon .ui-range input::-webkit-slider-thumb, .ui-s--minimal .ui-range input::-webkit-slider-thumb { border-radius: 50%; }
|
|
315
|
+
.ui-s--retro .ui-range input::-webkit-slider-thumb, .ui-s--solid .ui-range input::-webkit-slider-thumb, .ui-s--terminal .ui-range input::-webkit-slider-thumb { border-radius: 0; }
|
|
316
|
+
.ui-s--neon .ui-range input::-webkit-slider-thumb { box-shadow: 0 0 12px var(--acc); }
|
|
317
|
+
.ui-s--retro .ui-range input::-webkit-slider-runnable-track { height: 10px; }
|
|
318
|
+
.ui-s--minimal .ui-range input::-webkit-slider-runnable-track { height: 2px; border: 0; }
|
|
319
|
+
|
|
320
|
+
/* ---------- Tabs ---------- */
|
|
321
|
+
.ui-tabs { display: grid; gap: 14px; width: min(100%, 520px); font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); }
|
|
322
|
+
.ui-tabs__list { display: flex; gap: 4px; padding: 4px; background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); backdrop-filter: var(--s-bf); width: fit-content; max-width: 100%; overflow: auto; }
|
|
323
|
+
.ui-tabs__tab { font: inherit; font-weight: var(--s-fw); text-transform: inherit; letter-spacing: inherit; color: var(--mut); background: none; border: 0; padding: 8px 16px; cursor: pointer; border-radius: calc(var(--s-r) - 2px); white-space: nowrap; transition: color 0.15s, background 0.15s; }
|
|
324
|
+
.ui-tabs__tab:hover { color: var(--fg); }
|
|
325
|
+
.ui-tabs__tab[aria-selected="true"] { color: var(--fg); background: color-mix(in srgb, var(--acc) 22%, transparent); }
|
|
326
|
+
.ui-s--outline .ui-tabs__tab[aria-selected="true"] { background: none; color: var(--acc); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
|
|
327
|
+
.ui-s--neon .ui-tabs__tab[aria-selected="true"] { color: var(--acc); text-shadow: 0 0 8px var(--acc); background: none; box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
|
|
328
|
+
.ui-s--retro .ui-tabs__tab[aria-selected="true"] { background: var(--acc); color: var(--bg); }
|
|
329
|
+
.ui-s--terminal .ui-tabs__tab[aria-selected="true"] { background: none; color: var(--acc); }
|
|
330
|
+
.ui-s--terminal .ui-tabs__tab[aria-selected="true"]::before { content: "["; } .ui-s--terminal .ui-tabs__tab[aria-selected="true"]::after { content: "]"; }
|
|
331
|
+
.ui-s--minimal .ui-tabs__list { padding: 0; border: 0; background: none; gap: 18px; }
|
|
332
|
+
.ui-s--minimal .ui-tabs__tab { padding: 6px 0; border-radius: 0; }
|
|
333
|
+
.ui-s--minimal .ui-tabs__tab[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--acc); }
|
|
334
|
+
.ui-tabs__panel { font-family: var(--s-ff); text-transform: none; letter-spacing: normal; padding: 16px; line-height: 1.6; font-size: 14px; color: var(--fg); background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); backdrop-filter: var(--s-bf); }
|
|
335
|
+
.ui-s--minimal .ui-tabs__panel { border: 0; padding: 4px 0; }
|
|
336
|
+
|
|
337
|
+
/* ---------- Icon (pixel art) ---------- */
|
|
338
|
+
/* Sin `tone` hereda `currentColor`; con `tone` usa el token (--tone lo fija .ui-tone--*). `crispEdges`: al no ser
|
|
339
|
+
el tamaño múltiplo de 24, sin esto cada píxel del icono saldría con los bordes suavizados. */
|
|
340
|
+
.ui-icon { display: inline-block; flex: none; vertical-align: middle; shape-rendering: crispEdges; }
|
|
341
|
+
.ui-icon--tone { color: var(--tone); }
|
|
342
|
+
/* Galería del catálogo (Pixel art → Icono): el elegido en grande y el set curado entero debajo. */
|
|
343
|
+
.ui-icongal { display: grid; align-content: start; gap: 18px; width: 100%; max-width: 780px; }
|
|
344
|
+
.ui-icongal__hero { display: grid; justify-items: center; gap: 8px; padding: 8px 0 4px; }
|
|
345
|
+
.ui-icongal__hero code { font-size: 12px; color: var(--mut); }
|
|
346
|
+
.ui-icongal h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
|
|
347
|
+
.ui-icongal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
|
|
348
|
+
.ui-icongal__cell { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--ln); border-radius: var(--r, 8px); background: var(--card); color: var(--fg); font-size: 10px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
|
|
349
|
+
.ui-icongal__cell span { color: var(--mut); }
|
|
350
|
+
.ui-icongal__cell[data-on="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
|
|
351
|
+
.ui-icongal__cell[data-on="true"] span { color: var(--fg); }
|
|
352
|
+
/* Hoja de sprites del catálogo: la hoja entera a escala 2 con la baldosa elegida marcada. */
|
|
353
|
+
.ui-sheet { position: relative; flex: none; image-rendering: pixelated; background-color: #6b7f99; background-repeat: no-repeat; }
|
|
354
|
+
.ui-sheet__mark { position: absolute; border: 2px solid #fff; outline: 2px solid #000; box-sizing: border-box; pointer-events: none; }
|
|
355
|
+
|
|
356
|
+
/* ---------- PixelFrame / Sprite (Kenney "Pixel UI", CC0) ---------- */
|
|
357
|
+
/* Las imágenes llegan por variable inline (--pf-img / --sp-img) en vez de `url()` aquí: así el empaquetador de CSS no
|
|
358
|
+
intenta resolver una ruta de /public. Escala entera => cada píxel del sprite = --pf-s / --sp-s píxeles CSS exactos. */
|
|
359
|
+
.ui-pframe {
|
|
360
|
+
--pf-s: 2;
|
|
361
|
+
/* El marco es opaco y de tono medio/claro sea cual sea el tema: la paleta del kit se REEMPLAZA aquí dentro por una
|
|
362
|
+
de tinta sobre papel, para que el texto y los componentes que haya dentro (que leen --bg/--fg/--mut/--acc/--card/
|
|
363
|
+
--ln) se lean sobre el marco y no sobre la página. Los acentos también pasan a tinta: un acento de tema (cian,
|
|
364
|
+
rosa neón…) sobre un marco azul u ocre no llega a contraste, y la legibilidad manda sobre el color. Las variantes
|
|
365
|
+
pensadas para fondo oscuro (neon) no son legibles aquí dentro: usa solid, outline, minimal, glass o retro. */
|
|
366
|
+
--bg: #eee; --fg: #000; --mut: #333; --acc: #111; --acc2: #333; --card: rgba(0, 0, 0, 0.06); --ln: rgba(0, 0, 0, 0.4);
|
|
367
|
+
box-sizing: border-box;
|
|
368
|
+
min-width: calc(48px * var(--pf-s));
|
|
369
|
+
border: calc(16px * var(--pf-s)) solid transparent;
|
|
370
|
+
border-image: var(--pf-img) 16 fill / calc(16px * var(--pf-s)) stretch;
|
|
371
|
+
image-rendering: pixelated;
|
|
372
|
+
color: var(--fg);
|
|
373
|
+
/* Relleno del color del marco DETRÁS del border-image, recortado 3 píxeles de sprite hacia dentro (el aro exterior y
|
|
374
|
+
sus esquinas redondeadas quedan libres): con escala de pantalla fraccionaria (110 %, 125 %, 150 %…) el navegador
|
|
375
|
+
deja rendijas de 1 px entre las 9 regiones y sin esto se ve la página a través de ellas. */
|
|
376
|
+
background: linear-gradient(var(--pf-bg, transparent), var(--pf-bg, transparent)) center / calc(100% - 6px * var(--pf-s)) calc(100% - 6px * var(--pf-s)) no-repeat;
|
|
377
|
+
background-origin: border-box;
|
|
378
|
+
}
|
|
379
|
+
.ui-sprite {
|
|
380
|
+
--sp-s: 2; --sp-x: 0; --sp-y: 0;
|
|
381
|
+
display: inline-block; flex: none; vertical-align: middle;
|
|
382
|
+
width: calc(16px * var(--sp-s)); height: calc(16px * var(--sp-s));
|
|
383
|
+
background: var(--sp-img) no-repeat;
|
|
384
|
+
background-size: calc(538px * var(--sp-s)) calc(592px * var(--sp-s));
|
|
385
|
+
background-position: calc(var(--sp-x) * -18px * var(--sp-s)) calc(var(--sp-y) * -18px * var(--sp-s));
|
|
386
|
+
image-rendering: pixelated;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* ---------- Badge ---------- */
|
|
390
|
+
.ui-badge { --tone: var(--fg); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; line-height: 1.5; font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); font-weight: var(--s-fw); color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); border-radius: min(var(--s-r), 999px); text-shadow: var(--s-ts); }
|
|
391
|
+
.ui-badge--lg { padding: 5px 14px; font-size: 14px; }
|
|
392
|
+
.ui-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 8px var(--tone); }
|
|
393
|
+
.ui-s--solid.ui-badge { background: var(--tone); color: var(--bg); border: 2px solid var(--fg); box-shadow: 2px 2px 0 var(--ln); text-shadow: none; }
|
|
394
|
+
.ui-s--retro.ui-badge { background: var(--tone); color: var(--bg); border: 2px solid var(--fg); border-radius: 0; text-shadow: none; }
|
|
395
|
+
.ui-s--neon.ui-badge { background: transparent; box-shadow: 0 0 10px -2px var(--tone); }
|
|
396
|
+
.ui-s--terminal.ui-badge { background: none; border-radius: 2px; }
|
|
397
|
+
.ui-s--terminal.ui-badge::before { content: "["; } .ui-s--terminal.ui-badge::after { content: "]"; }
|
|
398
|
+
.ui-s--terminal.ui-badge { border: 0; padding: 0 2px; }
|
|
399
|
+
.ui-s--minimal.ui-badge { background: none; border: 0; border-radius: 0; padding: 0 2px; }
|
|
400
|
+
|
|
401
|
+
/* ---------- Progress ---------- */
|
|
402
|
+
.ui-progress { display: grid; gap: 8px; width: min(100%, 380px); font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); font-size: 13px; }
|
|
403
|
+
.ui-progress__head { display: flex; justify-content: space-between; color: var(--mut); }
|
|
404
|
+
.ui-progress__head output { color: var(--acc); font-variant-numeric: tabular-nums; }
|
|
405
|
+
.ui-progress__track { position: relative; height: 12px; overflow: hidden; background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); }
|
|
406
|
+
.ui-progress__fill { height: 100%; width: var(--v, 0%); background: var(--acc); transition: width 0.4s; border-radius: inherit; }
|
|
407
|
+
.ui-progress--striped .ui-progress__fill { background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.22) 0 8px, transparent 8px 16px); background-color: var(--acc); background-size: 22px 22px; animation: ui-stripes 0.8s linear infinite; }
|
|
408
|
+
@keyframes ui-stripes { to { background-position: 22px 0; } }
|
|
409
|
+
.ui-s--neon .ui-progress__fill { box-shadow: 0 0 14px var(--acc); }
|
|
410
|
+
.ui-s--retro .ui-progress__track { height: 20px; background-image: repeating-linear-gradient(90deg, transparent 0 9px, var(--bg) 9px 11px); }
|
|
411
|
+
.ui-s--retro .ui-progress__fill { background-image: repeating-linear-gradient(90deg, var(--acc) 0 9px, transparent 9px 11px); animation: none; }
|
|
412
|
+
.ui-s--minimal .ui-progress__track { height: 2px; border: 0; background: color-mix(in srgb, var(--fg) 16%, transparent); }
|
|
413
|
+
.ui-progress__ascii { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--acc); white-space: pre; text-shadow: var(--s-ts); }
|
|
414
|
+
|
|
415
|
+
/* ---------- Alert ---------- */
|
|
416
|
+
.ui-alert { --tone: var(--acc); display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; width: min(100%, 460px); font-size: 14px; line-height: 1.5; }
|
|
417
|
+
.ui-alert__icon { flex: none; display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--mono); font-weight: 800; color: var(--bg); background: var(--tone); }
|
|
418
|
+
.ui-alert__body { display: grid; gap: 2px; flex: 1; min-width: 0; text-transform: none; letter-spacing: normal; }
|
|
419
|
+
.ui-alert__body strong { color: var(--tone); }
|
|
420
|
+
.ui-alert__body span { color: var(--fg); opacity: 0.85; }
|
|
421
|
+
.ui-alert__close { flex: none; background: none; border: 0; color: var(--mut); cursor: pointer; font: inherit; font-size: 16px; line-height: 1; padding: 2px 4px; }
|
|
422
|
+
.ui-alert__close:hover { color: var(--fg); }
|
|
423
|
+
.ui-alert.ui-surface { border-left: 3px solid var(--tone); }
|
|
424
|
+
.ui-s--retro .ui-alert__icon, .ui-s--solid .ui-alert__icon { border-radius: 0; }
|
|
425
|
+
.ui-s--terminal .ui-alert__icon, .ui-s--minimal .ui-alert__icon { background: none; color: var(--tone); width: auto; }
|
|
426
|
+
.ui-s--terminal .ui-alert__icon::before { content: "["; } .ui-s--terminal .ui-alert__icon::after { content: "]"; }
|
|
427
|
+
.ui-s--neon .ui-alert__icon { box-shadow: 0 0 12px var(--tone); }
|
|
428
|
+
|
|
429
|
+
/* ---------- Spinner ---------- */
|
|
430
|
+
.ui-spin { display: inline-flex; align-items: center; gap: 10px; font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); color: var(--fg); font-size: 14px; }
|
|
431
|
+
.ui-spin__frames { font-family: var(--mono); color: var(--acc); white-space: pre; text-shadow: var(--s-ts); }
|
|
432
|
+
.ui-spin__ring { width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--acc) 25%, transparent); border-top-color: var(--acc); animation: ui-spin 0.8s linear infinite; }
|
|
433
|
+
@keyframes ui-spin { to { rotate: 360deg; } }
|
|
434
|
+
|
|
435
|
+
/* ---------- NavBar ---------- */
|
|
436
|
+
.ui-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; width: 100%; font-size: 14px; }
|
|
437
|
+
.ui-nav__brand { font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
|
|
438
|
+
.ui-s--terminal .ui-nav__brand::before { content: "~/"; color: var(--acc); }
|
|
439
|
+
.ui-nav__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow: auto; }
|
|
440
|
+
.ui-nav__link { position: relative; font: inherit; text-transform: inherit; letter-spacing: inherit; color: var(--mut); background: none; border: 0; padding: 8px 12px; cursor: pointer; border-radius: calc(var(--s-r) - 2px); white-space: nowrap; transition: color 0.15s, background 0.15s; }
|
|
441
|
+
.ui-nav__link:hover { color: var(--fg); }
|
|
442
|
+
.ui-nav__link[aria-current="true"] { color: var(--fg); background: color-mix(in srgb, var(--acc) 20%, transparent); }
|
|
443
|
+
.ui-s--outline .ui-nav__link[aria-current="true"], .ui-s--minimal .ui-nav__link[aria-current="true"] { background: none; box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
|
|
444
|
+
.ui-s--neon .ui-nav__link[aria-current="true"] { background: none; color: var(--acc); text-shadow: 0 0 8px var(--acc); }
|
|
445
|
+
.ui-s--retro .ui-nav__link[aria-current="true"] { background: var(--acc); color: var(--bg); border-radius: 0; }
|
|
446
|
+
.ui-s--terminal .ui-nav__link[aria-current="true"] { background: none; color: var(--acc); }
|
|
447
|
+
.ui-s--terminal .ui-nav__link[aria-current="true"]::before { content: "> "; }
|
|
448
|
+
.ui-nav--floating { width: fit-content; border-radius: 999px; }
|
|
449
|
+
|
|
450
|
+
/* ---------- Accordion ---------- */
|
|
451
|
+
.ui-acc { display: grid; gap: 8px; width: min(100%, 520px); font-family: var(--s-ff); }
|
|
452
|
+
.ui-acc__item { background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); backdrop-filter: var(--s-bf); overflow: hidden; }
|
|
453
|
+
.ui-s--minimal .ui-acc__item { border: 0; border-radius: 0; }
|
|
454
|
+
.ui-acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font: inherit; font-weight: var(--s-fw); text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); color: var(--fg); background: none; border: 0; text-align: left; cursor: pointer; }
|
|
455
|
+
.ui-acc__mark { font-family: var(--mono); color: var(--acc); transition: rotate 0.2s; flex: none; }
|
|
456
|
+
.ui-acc__item.is-open .ui-acc__mark { rotate: 45deg; }
|
|
457
|
+
.ui-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
|
|
458
|
+
.ui-acc__item.is-open .ui-acc__panel { grid-template-rows: 1fr; }
|
|
459
|
+
.ui-acc__panel > div { overflow: hidden; }
|
|
460
|
+
.ui-acc__panel p { margin: 0; padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--fg); opacity: 0.85; text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
461
|
+
|
|
462
|
+
/* ---------- Panel ---------- */
|
|
463
|
+
.ui-panel { width: min(100%, 420px); overflow: hidden; }
|
|
464
|
+
.ui-panel__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ln); font-size: 12px; font-weight: var(--s-fw); color: var(--mut); }
|
|
465
|
+
.ui-panel__bar i { width: 9px; height: 9px; border-radius: 50%; }
|
|
466
|
+
.ui-panel__body { padding: 16px; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
467
|
+
.ui-panel__body h4 { margin: 0; font-size: 18px; text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
468
|
+
.ui-panel__body p { margin: 0; opacity: 0.85; }
|
|
469
|
+
.ui-panel__foot { padding: 10px 16px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--mut); }
|
|
470
|
+
.ui-panel[data-corners]::before { content: attr(data-corners); position: absolute; left: 8px; top: 6px; color: var(--acc); font-size: 12px; }
|
|
471
|
+
.ui-panel { position: relative; }
|
|
472
|
+
|
|
473
|
+
/* ---------- PricingCard ---------- */
|
|
474
|
+
/* PricingCard */
|
|
475
|
+
.ui-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
476
|
+
.ui-price { position: relative; display: grid; gap: 16px; align-content: start; padding: 24px; width: min(100%, 300px); text-align: start; }
|
|
477
|
+
.ui-price__badge { position: absolute; top: -12px; left: 20px; }
|
|
478
|
+
.ui-price__head { display: grid; gap: 6px; }
|
|
479
|
+
.ui-price__name { font-size: 13px; letter-spacing: 0.14em; color: var(--mut); }
|
|
480
|
+
.ui-price__desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
481
|
+
.ui-price__cost { display: grid; gap: 6px; }
|
|
482
|
+
.ui-price__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 42px; font-weight: 800; line-height: 1; text-transform: none; }
|
|
483
|
+
.ui-price__amount small { font-size: 14px; color: var(--mut); font-weight: 500; }
|
|
484
|
+
.ui-price__was { font-size: 18px; font-weight: 500; color: var(--mut); text-decoration-thickness: 2px; }
|
|
485
|
+
.ui-price__note { font-size: 12px; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
486
|
+
.ui-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
487
|
+
.ui-price li { display: flex; gap: 8px; }
|
|
488
|
+
.ui-price li::before { content: "+"; flex: none; color: var(--acc); font-family: var(--mono); }
|
|
489
|
+
.ui-s--terminal.ui-price li::before { content: "[x]"; }
|
|
490
|
+
.ui-s--retro.ui-price li::before { content: ">"; }
|
|
491
|
+
.ui-price li.ui-price__off { color: var(--mut); opacity: 0.6; text-decoration: line-through; }
|
|
492
|
+
.ui-price li.ui-price__off::before { content: "–"; color: var(--mut); }
|
|
493
|
+
.ui-s--terminal.ui-price li.ui-price__off::before { content: "[ ]"; }
|
|
494
|
+
.ui-price__inline { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
495
|
+
/* destacado */
|
|
496
|
+
.ui-price--hl { translate: 0 -4px; }
|
|
497
|
+
.ui-price--hl-glow { border-color: var(--acc); box-shadow: var(--s-sh), 0 0 0 1px var(--acc), 0 20px 50px -24px var(--acc); }
|
|
498
|
+
.ui-price--hl-border { border: 3px solid var(--acc); }
|
|
499
|
+
.ui-price--hl-invert { box-shadow: var(--s-sh), 0 24px 60px -26px var(--acc); }
|
|
500
|
+
.ui-price--hl-invert .ui-price__amount { font-size: 48px; }
|
|
501
|
+
/* la insignia queda a caballo entre la tarjeta y la página: sólida, para leerse sobre ambos */
|
|
502
|
+
.ui-price--hl-invert > .ui-price__badge > * { background: var(--inv-b); color: var(--inv-a); border-color: var(--inv-a); }
|
|
503
|
+
/* maquetaciones */
|
|
504
|
+
.ui-price--compact { gap: 12px; padding: 20px; }
|
|
505
|
+
.ui-price--compact .ui-price__amount { font-size: 34px; }
|
|
506
|
+
.ui-price--horizontal { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
|
|
507
|
+
.ui-price__main { flex: 999 1 260px; display: grid; gap: 14px; }
|
|
508
|
+
.ui-price__main ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
|
|
509
|
+
.ui-price__side { flex: 1 1 200px; display: grid; gap: 14px; }
|
|
510
|
+
/* PricingSection: selector mensual/anual y lista */
|
|
511
|
+
.ui-billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: max(var(--s-r), 999px); }
|
|
512
|
+
.ui-s--retro.ui-billing, .ui-s--terminal.ui-billing, .ui-s--outline.ui-billing { border-radius: var(--s-r); }
|
|
513
|
+
.ui-billing button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: inherit; background: transparent; color: var(--mut); font: inherit; font-size: 14px; cursor: pointer; }
|
|
514
|
+
.ui-billing button[aria-pressed="true"] { background: var(--acc); color: var(--bg); }
|
|
515
|
+
.ui-billing button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
|
|
516
|
+
.ui-billing__note { padding: 2px 7px; border-radius: 999px; font-size: 11px; background: color-mix(in srgb, var(--acc2) 22%, transparent); color: var(--fg); }
|
|
517
|
+
.ui-billing button[aria-pressed="true"] .ui-billing__note { background: color-mix(in srgb, var(--bg) 22%, transparent); color: inherit; }
|
|
518
|
+
.ui-pricing__grid.ui-pricing__grid--list { max-width: 820px; grid-template-columns: 1fr; gap: 24px; }
|
|
519
|
+
|
|
520
|
+
/* ---------- Testimonial ---------- */
|
|
521
|
+
.ui-quote { display: grid; gap: 16px; padding: 24px; width: min(100%, 440px); }
|
|
522
|
+
.ui-quote__stars { color: var(--acc); letter-spacing: 0.2em; font-family: var(--mono); font-size: 14px; }
|
|
523
|
+
.ui-quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
524
|
+
.ui-quote__by { display: flex; align-items: center; gap: 12px; font-size: 13px; }
|
|
525
|
+
.ui-quote__avatar { display: grid; place-content: center; width: 40px; height: 40px; border-radius: min(var(--s-r), 50%); background: color-mix(in srgb, var(--acc) 22%, transparent); border: 1px solid var(--acc); color: var(--acc); font-weight: 800; font-family: var(--mono); }
|
|
526
|
+
.ui-quote__by strong { display: block; } .ui-quote__by span { color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
527
|
+
|
|
528
|
+
/* ---------- SectionHeader ---------- */
|
|
529
|
+
.ui-sh { display: grid; gap: 10px; width: min(100%, 560px); min-width: 0; font-family: var(--s-ff); }
|
|
530
|
+
.ui-sh--center { text-align: center; justify-items: center; }
|
|
531
|
+
.ui-sh__kicker { font-size: 12px; letter-spacing: 0.2em; color: var(--acc); text-transform: uppercase; text-shadow: var(--s-ts), var(--legibility-ts); }
|
|
532
|
+
.ui-sh h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -0.02em; text-transform: var(--s-tt); text-shadow: var(--s-ts), var(--legibility-ts); font-weight: 800; }
|
|
533
|
+
.ui-sh p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mut); text-transform: none; letter-spacing: normal; text-shadow: var(--legibility-ts); }
|
|
534
|
+
.ui-sh__rule { color: var(--ln); font-family: var(--mono); overflow: hidden; white-space: nowrap; width: 100%; }
|
|
535
|
+
.ui-sh__line { height: 1px; width: 64px; background: var(--acc); }
|
|
536
|
+
|
|
537
|
+
/* ---------- Divider ---------- */
|
|
538
|
+
.ui-div { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--mut); font-family: var(--s-ff); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: var(--legibility-ts); }
|
|
539
|
+
.ui-div__rule { flex: 1; overflow: hidden; white-space: nowrap; color: var(--ln); font-family: var(--mono); }
|
|
540
|
+
.ui-div__rule--line { height: 1px; background: var(--ln); font-size: 0; }
|
|
541
|
+
.ui-s--neon .ui-div__rule--line { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
|
|
542
|
+
.ui-s--retro .ui-div__rule--line { height: 3px; background: repeating-linear-gradient(90deg, var(--acc) 0 8px, transparent 8px 12px); }
|
|
543
|
+
|
|
544
|
+
/* ---------- AsciiChart ---------- */
|
|
545
|
+
.ui-chart { display: grid; gap: 6px; font-family: var(--mono); }
|
|
546
|
+
/* Mismo caso que .ui-bitmap: barras en <pre>, sin salto de línea posible — max-width + overflow-x
|
|
547
|
+
evita que fuerce el ancho mínimo de un contenedor grid/flex sin `min-width: 0` en móvil. */
|
|
548
|
+
.ui-chart pre { margin: 0; max-width: 100%; overflow-x: auto; font-size: 13px; line-height: 1.15; color: var(--acc); text-shadow: var(--s-ts); white-space: pre; }
|
|
549
|
+
.ui-chart__labels { max-width: 100%; overflow-x: auto; font-size: 11px; color: var(--mut); white-space: pre; }
|
|
550
|
+
.ui-s--terminal.ui-chart pre { color: var(--acc); } .ui-s--retro.ui-chart pre { color: var(--acc2); }
|
|
551
|
+
|
|
552
|
+
/* ---------- Typewriter / NeonSign ---------- */
|
|
553
|
+
.ui-type { font-family: var(--s-ff); color: var(--fg); font-weight: 800; letter-spacing: -0.01em; text-shadow: var(--s-ts), var(--legibility-ts); text-transform: var(--s-tt); }
|
|
554
|
+
.ui-type__cursor { display: inline-block; width: 0.1em; min-width: 3px; height: 1em; margin-left: 4px; vertical-align: text-bottom; background: var(--acc); animation: ui-blink 1s steps(1) infinite; }
|
|
555
|
+
.ui-type__cursor--block { width: 0.55em; } .ui-type__cursor--underscore { height: 0.12em; width: 0.6em; vertical-align: baseline; }
|
|
556
|
+
.ui-neon { margin: 0; font-weight: 800; letter-spacing: 0.04em; text-align: center; color: color-mix(in srgb, var(--tone, var(--acc)) 30%, #fff); }
|
|
557
|
+
.ui-neon--tube { text-shadow: 0 0 4px #fff, 0 0 12px var(--tone), 0 0 28px var(--tone), 0 0 60px var(--tone); }
|
|
558
|
+
.ui-neon--outline { color: transparent; -webkit-text-stroke: 2px var(--tone); text-shadow: 0 0 18px var(--tone); }
|
|
559
|
+
.ui-neon--pixel { color: var(--tone); font-family: "Courier New", monospace; text-transform: uppercase; text-shadow: 4px 4px 0 var(--acc2); }
|
|
560
|
+
.ui-neon--flicker { animation: ui-neonflick 3.4s steps(1) infinite; }
|
|
561
|
+
@keyframes ui-neonflick { 0%, 18%, 22%, 62%, 66%, 100% { opacity: 1; } 20% { opacity: 0.4; } 64% { opacity: 0.55; } }
|
|
562
|
+
@keyframes ui-blink { 50% { opacity: 0; } }
|
|
563
|
+
|
|
564
|
+
/* ---------- Reveal / Spotlight ---------- */
|
|
565
|
+
/* ---------- Reveal (components/ui/Reveal.tsx) ----------
|
|
566
|
+
* Una sola variable, --rv-p (0 oculto → 1 visible), mueve todos los efectos; está registrada con @property para
|
|
567
|
+
* poder interpolarla. El CSS solo declara estados estáticos: el contenedor fija el objetivo --rv-t (0/1, o el
|
|
568
|
+
* progreso del scroll con trigger="scroll") y cada unidad (el contenedor, sus hijos o las palabras/letras) deriva
|
|
569
|
+
* de él su --rv-p. La animación 0 → 1 la hace Reveal.tsx con la Web Animations API sobre --rv-p, así que no toca
|
|
570
|
+
* la propiedad `transition` de nadie (los hijos conservan sus propias transiciones de hover).
|
|
571
|
+
* En modo scroll el escalonado se reparte en el recorrido con --rv-k. */
|
|
572
|
+
@property --rv-p { syntax: "<number>"; inherits: false; initial-value: 1; }
|
|
573
|
+
.ui-rv {
|
|
574
|
+
--rv-t: 1; --rv-dx: 0px; --rv-dy: 0px; --rv-rx: 0deg; --rv-ry: 0deg; --rv-origin: 50% 50%;
|
|
575
|
+
--rv-ct: 0%; --rv-cr: 0%; --rv-cb: 0%; --rv-cl: 0%;
|
|
576
|
+
}
|
|
577
|
+
.ui-rv[data-rv="0"] { --rv-t: 0; }
|
|
578
|
+
.ui-rv--self, .ui-rv--each > :not(.ui-rv__sr), .ui-rv__word > .ui-rv__u {
|
|
579
|
+
--rv-p: clamp(0, calc(var(--rv-t) * (1 + (var(--rv-n, 1) - 1) * var(--rv-k, 0)) - var(--rv-i, 0) * var(--rv-k, 0)), 1);
|
|
580
|
+
}
|
|
581
|
+
/* Unidades de texto troceado: inline-block para poder moverlas; las letras no parten palabras */
|
|
582
|
+
.ui-rv__u { display: inline-block; }
|
|
583
|
+
.ui-rv__word { display: inline-block; white-space: nowrap; }
|
|
584
|
+
.ui-rv__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
585
|
+
|
|
586
|
+
.ui-rv--fade:not([data-rv-done]).ui-rv--self, .ui-rv--fade:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--fade:not([data-rv-done]) .ui-rv__word > .ui-rv__u { opacity: var(--rv-p); }
|
|
587
|
+
.ui-rv--slide:not([data-rv-done]).ui-rv--self, .ui-rv--slide:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--slide:not([data-rv-done]) .ui-rv__word > .ui-rv__u { opacity: var(--rv-p); translate: calc((1 - var(--rv-p)) * var(--rv-dx)) calc((1 - var(--rv-p)) * var(--rv-dy)); }
|
|
588
|
+
.ui-rv--scale:not([data-rv-done]).ui-rv--self, .ui-rv--scale:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--scale:not([data-rv-done]) .ui-rv__word > .ui-rv__u { opacity: var(--rv-p); scale: calc(1 - (1 - var(--rv-p)) * 0.14); }
|
|
589
|
+
.ui-rv--blur:not([data-rv-done]).ui-rv--self, .ui-rv--blur:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--blur:not([data-rv-done]) .ui-rv__word > .ui-rv__u { opacity: var(--rv-p); filter: blur(calc((1 - var(--rv-p)) * 12px)); translate: calc((1 - var(--rv-p)) * var(--rv-dx) * 0.35) calc((1 - var(--rv-p)) * var(--rv-dy) * 0.35); }
|
|
590
|
+
.ui-rv--wipe:not([data-rv-done]).ui-rv--self, .ui-rv--wipe:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--wipe:not([data-rv-done]) .ui-rv__word > .ui-rv__u { clip-path: inset(calc((1 - var(--rv-p)) * var(--rv-ct)) calc((1 - var(--rv-p)) * var(--rv-cr)) calc((1 - var(--rv-p)) * var(--rv-cb)) calc((1 - var(--rv-p)) * var(--rv-cl))); }
|
|
591
|
+
.ui-rv--flip:not([data-rv-done]).ui-rv--self, .ui-rv--flip:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--flip:not([data-rv-done]) .ui-rv__word > .ui-rv__u { opacity: var(--rv-p); transform-origin: var(--rv-origin); transform: perspective(900px) rotateX(calc((1 - var(--rv-p)) * var(--rv-rx))) rotateY(calc((1 - var(--rv-p)) * var(--rv-ry))); }
|
|
592
|
+
.ui-rv--iris:not([data-rv-done]).ui-rv--self, .ui-rv--iris:not([data-rv-done]).ui-rv--each > :not(.ui-rv__sr), .ui-rv--iris:not([data-rv-done]) .ui-rv__word > .ui-rv__u { clip-path: circle(calc(var(--rv-p) * 75%) at 50% 50%); }
|
|
593
|
+
|
|
594
|
+
/* Las reglas de efecto dejan de aplicarse al terminar ([data-rv-done]): no queda transform/filter/clip-path
|
|
595
|
+
* residual (un transform, aunque valga 0, atrapa a los position: fixed de dentro — Modal, Drawer, guía §12) y cada
|
|
596
|
+
* elemento vuelve a sus propios estilos. Sin JS o con movimiento reducido el contenido se ve directamente. */
|
|
597
|
+
@media (prefers-reduced-motion: reduce) { .ui-rv { --rv-t: 1 !important; } }
|
|
598
|
+
.ui-spot { position: relative; overflow: hidden; }
|
|
599
|
+
.ui-spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--spot-o, 0); transition: opacity 0.25s; background: radial-gradient(var(--spot-r, 220px) circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--acc)) var(--spot-i, 30%), transparent), transparent 70%); }
|
|
600
|
+
.ui-spot:hover { --spot-o: 1; }
|
|
601
|
+
.ui-spot--border::after { content: ""; position: absolute; inset: 0; pointer-events: none; padding: 1px; border-radius: inherit; background: radial-gradient(var(--spot-r, 220px) circle at var(--mx, 50%) var(--my, 50%), var(--tone, var(--acc)), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: var(--spot-o, 0); transition: opacity 0.25s; }
|
|
602
|
+
|
|
603
|
+
/* ---------- GridBackground / CrtOverlay ---------- */
|
|
604
|
+
.ui-grid { position: absolute; inset: 0; overflow: hidden; background-color: var(--bg); }
|
|
605
|
+
.ui-grid__layer { position: absolute; inset: -80px; opacity: var(--gop, 0.6); }
|
|
606
|
+
.ui-grid--dots .ui-grid__layer { background-image: radial-gradient(var(--acc) 1.2px, transparent 1.4px); background-size: var(--gs, 28px) var(--gs, 28px); }
|
|
607
|
+
.ui-grid--lines .ui-grid__layer { background-image: linear-gradient(var(--ln) 1px, transparent 1px), linear-gradient(90deg, var(--ln) 1px, transparent 1px); background-size: var(--gs, 28px) var(--gs, 28px); }
|
|
608
|
+
.ui-grid--cross .ui-grid__layer { background-image: linear-gradient(var(--acc) 1px, transparent 1px), linear-gradient(90deg, var(--acc) 1px, transparent 1px); background-size: var(--gs, 28px) var(--gs, 28px); mask-image: radial-gradient(circle at center, #000 0 1.5px, transparent 2px); mask-size: var(--gs, 28px) var(--gs, 28px); }
|
|
609
|
+
.ui-grid--diagonal .ui-grid__layer { background-image: repeating-linear-gradient(45deg, var(--ln) 0 1px, transparent 1px var(--gs, 28px)); }
|
|
610
|
+
.ui-grid--drift .ui-grid__layer { animation: ui-drift 14s linear infinite; }
|
|
611
|
+
@keyframes ui-drift { to { transform: translate(var(--gs, 28px), var(--gs, 28px)); } }
|
|
612
|
+
.ui-grid--fade { mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%); }
|
|
613
|
+
.ui-crt { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
|
|
614
|
+
.ui-crt__scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, var(--scan, 0.3)) 0 1px, transparent 1px 3px); }
|
|
615
|
+
.ui-crt__vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, var(--vig, 0.6)) 100%); }
|
|
616
|
+
.ui-crt__flick { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.04); animation: ui-crtflick 0.16s steps(2) infinite; opacity: var(--flk, 0.5); }
|
|
617
|
+
@keyframes ui-crtflick { 50% { opacity: 0; } }
|
|
618
|
+
.ui-crt__bar { position: absolute; left: 0; right: 0; height: 18%; background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.07), transparent); animation: ui-crtbar 5s linear infinite; }
|
|
619
|
+
@keyframes ui-crtbar { from { top: -20%; } to { top: 110%; } }
|
|
620
|
+
|
|
621
|
+
/* ---------- Timeline / Table ---------- */
|
|
622
|
+
.ui-tl { position: relative; display: grid; gap: 22px; width: min(100%, 460px); margin: 0; padding: 0 0 0 34px; list-style: none; font-family: var(--s-ff); }
|
|
623
|
+
.ui-tl::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--ln); }
|
|
624
|
+
.ui-tl li { position: relative; display: grid; gap: 2px; }
|
|
625
|
+
.ui-tl__dot { position: absolute; left: -34px; top: 1px; box-sizing: border-box; width: 22px; height: 22px; display: grid; place-content: center; font-size: 12px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; text-shadow: none; font-family: var(--mono); color: var(--bg); background: var(--acc); border-radius: min(var(--s-r), 50%); }
|
|
626
|
+
.ui-tl strong { text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
627
|
+
.ui-tl li > span:not(.ui-tl__dot) { font-size: 13px; color: var(--mut); line-height: 1.5; text-transform: none; letter-spacing: normal; }
|
|
628
|
+
.ui-s--retro .ui-tl__dot, .ui-s--solid .ui-tl__dot { border-radius: 0; }
|
|
629
|
+
.ui-s--terminal .ui-tl__dot, .ui-s--minimal .ui-tl__dot { background: none; color: var(--acc); border: 1px solid var(--acc); }
|
|
630
|
+
.ui-s--neon .ui-tl__dot { box-shadow: 0 0 12px var(--acc); }
|
|
631
|
+
.ui-table { border-collapse: collapse; width: min(100%, 520px); font-size: 14px; }
|
|
632
|
+
.ui-table th, .ui-table td { padding: 10px 14px; text-align: left; }
|
|
633
|
+
.ui-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--ln); font-weight: 700; }
|
|
634
|
+
.ui-table td { border-bottom: 1px solid color-mix(in srgb, var(--ln) 55%, transparent); text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
635
|
+
.ui-table--striped tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--fg) 5%, transparent); }
|
|
636
|
+
.ui-table tbody tr:hover td { background: color-mix(in srgb, var(--acc) 12%, transparent); }
|
|
637
|
+
.ui-table-wrap { overflow: auto; max-width: 100%; }
|
|
638
|
+
.ui-s--solid .ui-table th { background: color-mix(in srgb, var(--fg) 12%, var(--bg)); border-bottom-width: 3px; }
|
|
639
|
+
.ui-s--retro .ui-table th { background: var(--acc); color: var(--bg); }
|
|
640
|
+
.ui-s--terminal .ui-table td:first-child { color: var(--acc); }
|
|
641
|
+
|
|
642
|
+
/* ---------- ScrambleText / BitmapText / StatCounter ---------- */
|
|
643
|
+
.ui-scramble { margin: 0; line-height: 1.05; letter-spacing: -0.02em; color: var(--tone, var(--fg)); }
|
|
644
|
+
.ui-scramble--gradient { background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
|
|
645
|
+
.ui-scramble--upper { text-transform: uppercase; }
|
|
646
|
+
/* max-width + overflow-x: el arte ASCII no puede reflotar (es <pre>, ancho fijo por carácter), así
|
|
647
|
+
que un texto largo con `size` por defecto puede ser más ancho que el viewport en móvil. Antes
|
|
648
|
+
solo tenía `overflow: hidden`, que no reduce el ancho de la caja (sigue empujando la página) y
|
|
649
|
+
además recorta el arte en vez de dejarlo legible — con scroll horizontal contenido no se sale de
|
|
650
|
+
la página y el texto completo sigue accesible. */
|
|
651
|
+
.ui-bitmap { margin: 0; max-width: 100%; color: var(--tone, var(--acc)); font-family: var(--mono, ui-monospace, Consolas, monospace); white-space: pre; letter-spacing: 0; overflow-x: auto; overflow-y: hidden; }
|
|
652
|
+
.ui-bitmap--glow { text-shadow: 0 0 8px var(--tone, var(--acc)); }
|
|
653
|
+
.ui-bitmap--flicker { animation: ui-flicker 2.4s steps(1) infinite; }
|
|
654
|
+
@keyframes ui-flicker { 0%, 92%, 96% { opacity: 1; } 93% { opacity: 0.35; } 97% { opacity: 0.6; } }
|
|
655
|
+
.ui-bitmap--scan { -webkit-mask-image: linear-gradient(180deg, #000 0 40%, rgba(0, 0, 0, 0.35) 50%, #000 60% 100%); -webkit-mask-size: 100% 300%; animation: ui-scan 3s linear infinite; }
|
|
656
|
+
@keyframes ui-scan { from { -webkit-mask-position: 0 100%; } to { -webkit-mask-position: 0 -100%; } }
|
|
657
|
+
.ui-stat { display: grid; gap: 10px; }
|
|
658
|
+
.ui-stat--center { justify-items: center; text-align: center; } .ui-stat--left { justify-items: start; } .ui-stat--right { justify-items: end; }
|
|
659
|
+
/* Mismo caso que .ui-bitmap / .ui-chart pre: arte en <pre>, sin salto de línea posible. */
|
|
660
|
+
.ui-stat__art { margin: 0; max-width: 100%; overflow-x: auto; color: var(--tone, var(--acc)); font-family: ui-monospace, Consolas, monospace; font-size: 8px; line-height: 8px; white-space: pre; text-shadow: 0 0 8px var(--tone, var(--acc)); }
|
|
661
|
+
.ui-stat__label { font-size: 12px; letter-spacing: 0.18em; color: var(--mut); }
|
|
662
|
+
|
|
663
|
+
/* ---------- Marquee ---------- */
|
|
664
|
+
.ui-marquee { width: 100%; overflow: hidden; font-weight: 800; line-height: 1.4; font-family: var(--s-ff); text-transform: var(--s-tt); }
|
|
665
|
+
.ui-marquee--edges { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
|
|
666
|
+
.ui-marquee__row { overflow: hidden; white-space: nowrap; }
|
|
667
|
+
.ui-marquee__track { display: inline-flex; animation: ui-marq linear infinite; will-change: transform; }
|
|
668
|
+
.ui-marquee--pause:hover .ui-marquee__track { animation-play-state: paused; }
|
|
669
|
+
@keyframes ui-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
|
|
670
|
+
.ui-marquee--glass { color: var(--tone, var(--fg)); opacity: 0.9; }
|
|
671
|
+
.ui-marquee--solid { color: var(--bg); background: var(--tone, var(--acc)); }
|
|
672
|
+
.ui-marquee--outline { color: transparent; -webkit-text-stroke: 1px var(--tone, var(--acc)); }
|
|
673
|
+
.ui-marquee--neon { color: var(--tone, var(--acc)); text-shadow: 0 0 10px var(--tone, var(--acc)); }
|
|
674
|
+
.ui-marquee--retro { color: var(--tone, var(--acc)); background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.25) 3px 4px); }
|
|
675
|
+
.ui-marquee--terminal { color: var(--tone, var(--acc)); font-family: var(--mono); }
|
|
676
|
+
.ui-marquee--minimal { color: var(--tone, var(--mut)); font-weight: 500; }
|
|
677
|
+
|
|
678
|
+
/* ---------- GlyphCursor ---------- */
|
|
679
|
+
.ui-cursor-scope { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
|
|
680
|
+
.ui-cursor { position: absolute; left: 0; top: 0; color: var(--tone, var(--acc)); line-height: 1; }
|
|
681
|
+
.ui-cursor--glow { text-shadow: 0 0 10px var(--tone, var(--acc)); }
|
|
682
|
+
.ui-cursor--spin { animation: ui-spin 3s linear infinite; }
|
|
683
|
+
.ui-cursor--ring { border: 2px solid var(--tone, var(--acc)); border-radius: 50%; margin: -12px 0 0 -12px; }
|
|
684
|
+
.ui-cursor--dot { background: var(--tone, var(--acc)); border-radius: 50%; margin: -5px 0 0 -5px; }
|
|
685
|
+
|
|
686
|
+
/* ---------- SceneFlash ---------- */
|
|
687
|
+
.ui-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; overflow: hidden; }
|
|
688
|
+
.ui-flash--sweep { background: linear-gradient(0deg, transparent 0%, var(--acc2) 45%, var(--acc) 55%, transparent 100%); }
|
|
689
|
+
.ui-flash--iris { inset: auto; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, transparent 55%, var(--acc) 62%, transparent 70%); }
|
|
690
|
+
.ui-flash--slices { background: repeating-linear-gradient(0deg, var(--acc) 0 6px, transparent 6px 20px, var(--acc2) 20px 24px, transparent 24px 46px); mix-blend-mode: screen; }
|
|
691
|
+
.ui-flash--blinds, .ui-flash--pixels { display: grid; opacity: 1; }
|
|
692
|
+
.ui-flash--blinds { grid-template-columns: repeat(10, 1fr); }
|
|
693
|
+
.ui-flash--pixels { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); }
|
|
694
|
+
.ui-flash__cell { background: var(--acc); opacity: 0; }
|
|
695
|
+
.ui-flash__cell:nth-child(even) { background: var(--acc2); }
|
|
696
|
+
|
|
697
|
+
/* ---------- TerminalTyper ---------- */
|
|
698
|
+
.ui-term { width: 100%; overflow: hidden; font-family: var(--mono); }
|
|
699
|
+
.ui-term__bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, 0.06); font-size: 11px; color: var(--mut); }
|
|
700
|
+
.ui-term__bar i { width: 10px; height: 10px; border-radius: 50%; }
|
|
701
|
+
.ui-term__body { margin: 0; padding: 16px; min-height: 150px; font-size: 13px; line-height: 1.7; color: var(--fg); white-space: pre-wrap; text-transform: none; letter-spacing: normal; }
|
|
702
|
+
.ui-term__cmd { color: var(--acc2); } .ui-term__ok { color: var(--acc); }
|
|
703
|
+
.ui-term__cursor { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--fg); animation: ui-blink 1s steps(1) infinite; }
|
|
704
|
+
.ui-term__cursor--bar { width: 2px; } .ui-term__cursor--underscore { height: 2px; width: 9px; vertical-align: baseline; }
|
|
705
|
+
.ui-s--retro.ui-term { background: #031006; border-color: var(--acc); box-shadow: inset 0 0 40px color-mix(in srgb, var(--acc) 18%, transparent), var(--s-sh); }
|
|
706
|
+
.ui-s--retro .ui-term__body { color: var(--acc); text-shadow: 0 0 6px color-mix(in srgb, var(--acc) 70%, transparent); background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.25) 2px 3px); }
|
|
707
|
+
.ui-s--retro .ui-term__cmd, .ui-s--retro .ui-term__ok { color: var(--fg); }
|
|
708
|
+
|
|
709
|
+
/* ---------- AsciiCard ---------- */
|
|
710
|
+
.ui-card { position: relative; overflow: hidden; min-height: 250px; transform-style: preserve-3d; will-change: transform; color: var(--fg); }
|
|
711
|
+
.ui-card--center .ui-card__inner { text-align: center; justify-items: center; }
|
|
712
|
+
.ui-card::before, .ui-card::after { content: attr(data-corner); position: absolute; z-index: 3; font-size: 12px; line-height: 1; color: var(--acc); pointer-events: none; }
|
|
713
|
+
.ui-card::before { left: 8px; top: 8px; } .ui-card::after { right: 8px; bottom: 8px; }
|
|
714
|
+
.ui-card__bg, .ui-card__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
|
715
|
+
.ui-card__fx { z-index: 4; }
|
|
716
|
+
.ui-card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--acc) 26%, transparent), transparent 70%); }
|
|
717
|
+
.ui-card--glowon:hover .ui-card__glow { opacity: 1; }
|
|
718
|
+
.ui-card__inner { position: relative; z-index: 2; padding: 22px; display: grid; gap: 10px; transform: translateZ(30px); }
|
|
719
|
+
.ui-card__art { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 5px; line-height: 5px; color: var(--acc); text-shadow: 0 0 8px var(--acc); white-space: pre; overflow: hidden; }
|
|
720
|
+
.ui-card h3 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.01em; min-height: 1.2em; text-transform: var(--s-tt); text-shadow: var(--s-ts); }
|
|
721
|
+
.ui-card p { margin: 0; font-size: 14px; line-height: 1.55; opacity: 0.85; text-transform: none; letter-spacing: normal; text-shadow: none; }
|
|
722
|
+
.ui-card__meta { font-size: 12px; letter-spacing: 0.08em; color: var(--acc2); }
|
|
723
|
+
.ui-s--minimal.ui-card { border-width: 0; border-top: 1px solid var(--ln); }
|
|
724
|
+
|
|
725
|
+
.ui-s--terminal .ui-alert__icon, .ui-s--minimal .ui-alert__icon { white-space: nowrap; flex: none; }
|
|
726
|
+
|
|
727
|
+
/* ---------- Presence (aparición / desaparición) ---------- */
|
|
728
|
+
.ui-tx { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
|
|
729
|
+
.ui-tx__content { position: relative; z-index: 1; will-change: transform, filter, opacity, clip-path; }
|
|
730
|
+
.ui-tx__clones { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
|
|
731
|
+
.ui-tx__clone { position: absolute; inset: 0; overflow: hidden; will-change: transform, opacity; }
|
|
732
|
+
.ui-tx__fx { position: absolute; inset: 0; z-index: 3; width: 100% !important; height: 100% !important; pointer-events: none; }
|
|
733
|
+
.ui-tx__boot {
|
|
734
|
+
position: absolute; inset: 0; z-index: 4; margin: 0; padding: 18px; pointer-events: none;
|
|
735
|
+
background: var(--bg); font-family: var(--mono, ui-monospace, Consolas, monospace); font-size: 13px;
|
|
736
|
+
line-height: 1.7; white-space: pre-wrap; overflow: hidden; opacity: 0; visibility: hidden;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/* Presence en modo fill: ocupa el contenedor en vez de ajustarse al contenido */
|
|
740
|
+
.ui-tx--fill { position: absolute; inset: 0; display: block; }
|
|
741
|
+
.ui-tx--fill .ui-tx__content { position: absolute; inset: 0; }
|
|
742
|
+
|
|
743
|
+
/* ---------- HoverFX (envoltorio de hover reutilizable) ---------- */
|
|
744
|
+
.ui-hoverfx { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
|
|
745
|
+
.ui-hoverfx--fill { position: absolute; inset: 0; display: block; }
|
|
746
|
+
.ui-hoverfx--fill .ui-hoverfx__inner { position: absolute; inset: 0; }
|
|
747
|
+
.ui-hoverfx__inner { position: relative; z-index: 1; }
|
|
748
|
+
|
|
749
|
+
.ui-hoverfx--lift .ui-hoverfx__inner { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s; }
|
|
750
|
+
.ui-hoverfx--lift:hover .ui-hoverfx__inner {
|
|
751
|
+
transform: translateY(calc(var(--hf-strength, 0.6) * -10px));
|
|
752
|
+
filter: drop-shadow(0 calc(var(--hf-strength, 0.6) * 16px) calc(var(--hf-strength, 0.6) * 20px) rgba(0, 0, 0, 0.35));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.ui-hoverfx--scale .ui-hoverfx__inner { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: center; }
|
|
756
|
+
.ui-hoverfx--scale:hover .ui-hoverfx__inner { transform: scale(calc(1 + var(--hf-strength, 0.6) * 0.08)); }
|
|
757
|
+
|
|
758
|
+
.ui-hoverfx--tilt { perspective: 900px; }
|
|
759
|
+
.ui-hoverfx--tilt .ui-hoverfx__inner { transform-style: preserve-3d; will-change: transform; }
|
|
760
|
+
|
|
761
|
+
.ui-hoverfx__glow {
|
|
762
|
+
position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.3s; border-radius: inherit;
|
|
763
|
+
background: radial-gradient(var(--hf-radius, 220px) circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--acc)) calc(var(--hf-strength, 0.6) * 55%), transparent), transparent 70%);
|
|
764
|
+
}
|
|
765
|
+
.ui-hoverfx--glow:hover .ui-hoverfx__glow { opacity: 1; }
|
|
766
|
+
|
|
767
|
+
.ui-hoverfx--shine { overflow: hidden; border-radius: inherit; }
|
|
768
|
+
.ui-hoverfx__shine {
|
|
769
|
+
position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none;
|
|
770
|
+
background: linear-gradient(115deg, transparent 42%, color-mix(in srgb, var(--tone, var(--acc)) 55%, transparent) 50%, transparent 58%);
|
|
771
|
+
transform: translateX(-60%); transition: transform 0.7s ease;
|
|
772
|
+
}
|
|
773
|
+
.ui-hoverfx--shine:hover .ui-hoverfx__shine { transform: translateX(60%); }
|
|
774
|
+
|
|
775
|
+
.ui-hoverfx--scanline { overflow: hidden; border-radius: inherit; }
|
|
776
|
+
.ui-hoverfx__scan {
|
|
777
|
+
position: absolute; left: 0; right: 0; top: -30%; height: 26%; z-index: 2; pointer-events: none; opacity: 0;
|
|
778
|
+
background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone, var(--acc)) 45%, transparent), transparent);
|
|
779
|
+
animation: ui-hf-scan 1.6s linear infinite; animation-play-state: paused;
|
|
780
|
+
}
|
|
781
|
+
.ui-hoverfx--scanline:hover .ui-hoverfx__scan { opacity: 1; animation-play-state: running; }
|
|
782
|
+
@keyframes ui-hf-scan { from { top: -30%; } to { top: 110%; } }
|
|
783
|
+
|
|
784
|
+
.ui-hoverfx--jitter:hover .ui-hoverfx__inner { animation: ui-hf-jitter 0.22s steps(2, end) infinite; }
|
|
785
|
+
@keyframes ui-hf-jitter {
|
|
786
|
+
0% { transform: translate(0, 0) skewX(0deg); filter: none; }
|
|
787
|
+
25% { transform: translate(calc(var(--hf-strength, 0.6) * -3px), calc(var(--hf-strength, 0.6) * 1px)) skewX(-1deg); }
|
|
788
|
+
50% {
|
|
789
|
+
transform: translate(calc(var(--hf-strength, 0.6) * 3px), 0) skewX(1deg);
|
|
790
|
+
filter: drop-shadow(calc(var(--hf-strength, 0.6) * 2px) 0 0 var(--acc)) drop-shadow(calc(var(--hf-strength, 0.6) * -2px) 0 0 var(--acc2));
|
|
791
|
+
}
|
|
792
|
+
75% { transform: translate(0, calc(var(--hf-strength, 0.6) * -1px)); }
|
|
793
|
+
100% { transform: translate(0, 0); filter: none; }
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.ui-hoverfx__bracket {
|
|
797
|
+
position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
|
|
798
|
+
border-color: var(--tone, var(--acc)); border-style: solid; border-width: 0; opacity: 0;
|
|
799
|
+
transition: opacity 0.25s, transform 0.25s;
|
|
800
|
+
}
|
|
801
|
+
.ui-hoverfx--brackets:hover .ui-hoverfx__bracket { opacity: 1; }
|
|
802
|
+
.ui-hoverfx__bracket--tl { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; transform: translate(7px, 7px); }
|
|
803
|
+
.ui-hoverfx--brackets:hover .ui-hoverfx__bracket--tl { transform: translate(0, 0); }
|
|
804
|
+
.ui-hoverfx__bracket--tr { top: -7px; right: -7px; border-top-width: 2px; border-right-width: 2px; transform: translate(-7px, 7px); }
|
|
805
|
+
.ui-hoverfx--brackets:hover .ui-hoverfx__bracket--tr { transform: translate(0, 0); }
|
|
806
|
+
.ui-hoverfx__bracket--bl { bottom: -7px; left: -7px; border-bottom-width: 2px; border-left-width: 2px; transform: translate(7px, -7px); }
|
|
807
|
+
.ui-hoverfx--brackets:hover .ui-hoverfx__bracket--bl { transform: translate(0, 0); }
|
|
808
|
+
.ui-hoverfx__bracket--br { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(-7px, -7px); }
|
|
809
|
+
.ui-hoverfx--brackets:hover .ui-hoverfx__bracket--br { transform: translate(0, 0); }
|
|
810
|
+
|
|
811
|
+
.ui-hoverfx--underline .ui-hoverfx__inner::after {
|
|
812
|
+
content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
|
|
813
|
+
background: var(--tone, var(--acc)); transition: right 0.3s ease;
|
|
814
|
+
}
|
|
815
|
+
.ui-hoverfx--underline:hover .ui-hoverfx__inner::after { right: 0; }
|
|
816
|
+
|
|
817
|
+
@media (prefers-reduced-motion: reduce) {
|
|
818
|
+
.ui-hoverfx__inner, .ui-hoverfx__shine, .ui-hoverfx__scan, .ui-hoverfx__glow, .ui-hoverfx__bracket { transition: none !important; animation: none !important; }
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/* =====================================================================
|
|
822
|
+
Secciones compuestas (prefijo ui-, categoría "secciones")
|
|
823
|
+
Combinan los componentes de arriba en bloques de página completos:
|
|
824
|
+
Hero, ContactForm, CTASection, FAQSection, StatsSection, PricingSection,
|
|
825
|
+
TestimonialSection, Footer. No definen tokens ni --s-* propios: leen los
|
|
826
|
+
mismos tokens y pasan `variant` a las piezas que envuelven.
|
|
827
|
+
===================================================================== */
|
|
828
|
+
|
|
829
|
+
/* ---------- Hero ---------- */
|
|
830
|
+
.ui-hero { position: relative; width: 100%; overflow: hidden; padding: clamp(40px, 8vw, 88px) clamp(20px, 5vw, 56px); }
|
|
831
|
+
.ui-hero__inner { position: relative; z-index: 1; display: grid; gap: 16px; max-width: 720px; }
|
|
832
|
+
.ui-hero--center { text-align: center; justify-items: center; margin-inline: auto; }
|
|
833
|
+
.ui-hero--left { text-align: left; justify-items: start; }
|
|
834
|
+
.ui-hero__kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--acc); text-shadow: var(--legibility-ts); }
|
|
835
|
+
.ui-hero h1 { margin: 0; font-size: clamp(32px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; text-shadow: var(--legibility-ts); }
|
|
836
|
+
.ui-hero p { margin: 0; max-width: 52ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--mut); text-shadow: var(--legibility-ts); }
|
|
837
|
+
.ui-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
|
|
838
|
+
.ui-hero--center .ui-hero__cta { justify-content: center; }
|
|
839
|
+
.ui-hero__trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
|
|
840
|
+
.ui-hero--center .ui-hero__trust { justify-content: center; }
|
|
841
|
+
.ui-hero--bd-grid::before, .ui-hero--bd-dots::before, .ui-hero--bd-glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
|
|
842
|
+
.ui-hero--bd-grid::before { background-image: linear-gradient(var(--ln) 1px, transparent 1px), linear-gradient(90deg, var(--ln) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); }
|
|
843
|
+
.ui-hero--bd-dots::before { background-image: radial-gradient(var(--mut) 1.2px, transparent 1.4px); background-size: 26px 26px; opacity: 0.5; }
|
|
844
|
+
.ui-hero--bd-glow::before { background: radial-gradient(480px circle at 50% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%); }
|
|
845
|
+
|
|
846
|
+
/* ---------- ContactForm ---------- */
|
|
847
|
+
.ui-cform { position: relative; width: min(100%, 480px); display: grid; gap: 14px; padding: 24px; }
|
|
848
|
+
.ui-cform h3 { margin: 0; font-size: 20px; text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
849
|
+
.ui-cform__sub { margin: 0; margin-top: -8px; font-size: 13px; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
850
|
+
.ui-cform__row { display: grid; gap: 14px; }
|
|
851
|
+
.ui-cform__row .ui-field { width: 100%; }
|
|
852
|
+
.ui-cform--inline { width: 100%; max-width: 560px; }
|
|
853
|
+
.ui-cform--inline .ui-cform__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
|
|
854
|
+
.ui-cform--inline .ui-field { flex: 1; min-width: 200px; width: auto; }
|
|
855
|
+
.ui-cform--sent { display: grid; gap: 8px; text-align: center; justify-items: center; padding: 32px 24px; }
|
|
856
|
+
.ui-cform--sent strong { font-size: 18px; color: var(--acc); }
|
|
857
|
+
.ui-cform--sent p { margin: 0; color: var(--mut); font-size: 14px; }
|
|
858
|
+
.ui-cform__again { margin-top: 8px; font: inherit; font-size: 13px; color: var(--acc); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
|
|
859
|
+
|
|
860
|
+
/* ---------- CTASection ---------- */
|
|
861
|
+
.ui-cta { position: relative; width: 100%; display: grid; gap: 12px; padding: clamp(32px, 6vw, 56px); overflow: hidden; }
|
|
862
|
+
.ui-cta--center { text-align: center; justify-items: center; }
|
|
863
|
+
.ui-cta--left { text-align: left; justify-items: start; }
|
|
864
|
+
.ui-cta__kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
|
|
865
|
+
.ui-cta h3 { margin: 0; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.01em; text-transform: var(--s-tt); text-shadow: var(--s-ts); }
|
|
866
|
+
.ui-cta p { margin: 0; max-width: 48ch; color: var(--mut); font-size: 15px; line-height: 1.6; text-transform: none; }
|
|
867
|
+
.ui-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
|
|
868
|
+
.ui-cta--center .ui-cta__actions { justify-content: center; }
|
|
869
|
+
|
|
870
|
+
/* ---------- FAQSection / StatsSection / PricingSection / TestimonialSection ---------- */
|
|
871
|
+
.ui-faqs, .ui-stats, .ui-pricing, .ui-testimonials { width: 100%; min-width: 0; display: grid; gap: 28px; justify-items: center; text-align: center; }
|
|
872
|
+
.ui-faqs--left { justify-items: start; text-align: left; }
|
|
873
|
+
.ui-faqs__body { width: 100%; min-width: 0; display: flex; justify-content: center; }
|
|
874
|
+
.ui-stats__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 6vw, 64px); }
|
|
875
|
+
.ui-pricing__grid, .ui-testimonials__grid { width: 100%; min-width: 0; max-width: 980px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
|
|
876
|
+
.ui-pricing__grid > *, .ui-testimonials__grid > *, .ui-articles__grid > * { width: 100%; }
|
|
877
|
+
|
|
878
|
+
/* ---------- Footer ---------- */
|
|
879
|
+
.ui-footer { width: 100%; padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px) 20px; }
|
|
880
|
+
.ui-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 24px; }
|
|
881
|
+
.ui-footer__brand { max-width: 280px; display: grid; gap: 10px; }
|
|
882
|
+
.ui-footer__brand strong { font-size: 16px; }
|
|
883
|
+
.ui-footer__brand p { margin: 0; font-size: 13px; color: var(--mut); line-height: 1.6; text-transform: none; }
|
|
884
|
+
.ui-footer__social { display: flex; gap: 10px; margin-top: 4px; }
|
|
885
|
+
.ui-footer__social span { display: grid; place-content: center; width: 30px; height: 30px; border: 1px solid var(--ln); border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; color: var(--mut); }
|
|
886
|
+
.ui-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
|
|
887
|
+
.ui-footer__cols > div { display: grid; gap: 10px; min-width: 120px; }
|
|
888
|
+
.ui-footer__cols span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
|
|
889
|
+
.ui-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
|
|
890
|
+
.ui-footer__bottom { padding-top: 18px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--mut); }
|
|
891
|
+
|
|
892
|
+
/* =====================================================================
|
|
893
|
+
Overlays (prefijo ui-, categoría "overlays")
|
|
894
|
+
Elementos que aparecen por encima de la página: diálogos, notificaciones, ayuda contextual.
|
|
895
|
+
Modal y Drawer usan `position: fixed` (no portal): escapan de cualquier `overflow` ancestro sin
|
|
896
|
+
`createPortal`. Toast se apoya en `sonner` (ver components/ui/Toast.tsx) en vez de reimplementar
|
|
897
|
+
apilado/gestos/temporizador; aquí solo se le da el aspecto del kit con `unstyled` + estas clases.
|
|
898
|
+
===================================================================== */
|
|
899
|
+
|
|
900
|
+
/* ---------- Modal ---------- */
|
|
901
|
+
.ui-modal__backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); animation: ui-fade-in 0.15s ease; }
|
|
902
|
+
.ui-modal { width: min(100%, 420px); display: grid; gap: 14px; padding: 24px; animation: ui-modal-in 0.2s ease; }
|
|
903
|
+
.ui-modal--sm { width: min(100%, 320px); }
|
|
904
|
+
.ui-modal--lg { width: min(100%, 560px); }
|
|
905
|
+
.ui-modal h3 { margin: 0; font-size: 19px; text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
906
|
+
.ui-modal p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
907
|
+
.ui-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
|
|
908
|
+
@keyframes ui-fade-in { from { opacity: 0; } }
|
|
909
|
+
@keyframes ui-modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
|
|
910
|
+
|
|
911
|
+
/* ---------- Toast (sonner) ---------- */
|
|
912
|
+
.ui-toast { position: relative; display: flex; align-items: flex-start; gap: 10px; width: min(100%, 360px); padding: 14px 16px; }
|
|
913
|
+
.ui-toast__title { display: block; font-size: 14px; font-weight: var(--s-fw, 700); text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); color: var(--fg); }
|
|
914
|
+
.ui-toast__desc { display: block; margin-top: 2px; font-size: 13px; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
915
|
+
.ui-toast__icon { flex: none; color: var(--acc); }
|
|
916
|
+
.ui-toast__close { position: absolute; top: 6px; right: 6px; background: none; border: 0; color: var(--mut); cursor: pointer; font-size: 14px; padding: 4px; }
|
|
917
|
+
.ui-toast__close:hover { color: var(--fg); }
|
|
918
|
+
.ui-toast__action, .ui-toast__cancel { font: inherit; font-size: 12px; border-radius: calc(var(--s-r, 12px) - 2px); padding: 5px 10px; cursor: pointer; margin-top: 8px; }
|
|
919
|
+
.ui-toast__action { background: var(--acc); color: var(--bg); border: 0; }
|
|
920
|
+
.ui-toast__cancel { background: none; border: 1px solid var(--ln); color: var(--fg); }
|
|
921
|
+
|
|
922
|
+
/* ---------- Tooltip ---------- */
|
|
923
|
+
.ui-tip { position: relative; display: inline-block; border-bottom: 1px dashed var(--mut); cursor: help; font-size: 14px; }
|
|
924
|
+
/* envolviendo un botón/icono: sin subrayado ni cursor de ayuda; el disparador conserva su aspecto */
|
|
925
|
+
.ui-tip--wrap { border-bottom: 0; cursor: inherit; font-size: inherit; }
|
|
926
|
+
.ui-tip__bubble { position: absolute; z-index: 20; width: max-content; max-width: 220px; padding: 8px 12px; font-size: 13px; line-height: 1.5; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
|
|
927
|
+
.ui-tip:hover .ui-tip__bubble, .ui-tip:focus-within .ui-tip__bubble { opacity: 1; visibility: visible; }
|
|
928
|
+
.ui-tip--top .ui-tip__bubble { bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); }
|
|
929
|
+
.ui-tip--top:hover .ui-tip__bubble, .ui-tip--top:focus-within .ui-tip__bubble { transform: translate(-50%, 0); }
|
|
930
|
+
.ui-tip--bottom .ui-tip__bubble { top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); }
|
|
931
|
+
.ui-tip--bottom:hover .ui-tip__bubble, .ui-tip--bottom:focus-within .ui-tip__bubble { transform: translate(-50%, 0); }
|
|
932
|
+
.ui-tip--left .ui-tip__bubble { right: calc(100% + 8px); top: 50%; transform: translate(4px, -50%); }
|
|
933
|
+
.ui-tip--left:hover .ui-tip__bubble, .ui-tip--left:focus-within .ui-tip__bubble { transform: translate(0, -50%); }
|
|
934
|
+
.ui-tip--right .ui-tip__bubble { left: calc(100% + 8px); top: 50%; transform: translate(-4px, -50%); }
|
|
935
|
+
.ui-tip--right:hover .ui-tip__bubble, .ui-tip--right:focus-within .ui-tip__bubble { transform: translate(0, -50%); }
|
|
936
|
+
|
|
937
|
+
/* ---------- Drawer ---------- */
|
|
938
|
+
.ui-drawer__backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.55); animation: ui-fade-in 0.15s ease; }
|
|
939
|
+
.ui-drawer { position: fixed; top: 0; bottom: 0; width: min(84vw, 340px); display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 20px; overflow: auto; }
|
|
940
|
+
.ui-drawer--left { left: 0; animation: ui-drawer-in-left 0.22s ease; }
|
|
941
|
+
.ui-drawer--right { right: 0; animation: ui-drawer-in-right 0.22s ease; }
|
|
942
|
+
.ui-drawer__head { display: flex; align-items: center; justify-content: space-between; }
|
|
943
|
+
.ui-drawer__head strong { font-size: 16px; text-transform: var(--s-tt); letter-spacing: var(--s-ls); }
|
|
944
|
+
.ui-drawer__close { background: none; border: 0; color: var(--mut); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
|
|
945
|
+
.ui-drawer__close:hover { color: var(--fg); }
|
|
946
|
+
.ui-drawer p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
947
|
+
@keyframes ui-drawer-in-left { from { transform: translateX(-100%); } }
|
|
948
|
+
@keyframes ui-drawer-in-right { from { transform: translateX(100%); } }
|
|
949
|
+
|
|
950
|
+
/* ---------- Select ---------- */
|
|
951
|
+
.ui-select { position: relative; display: grid; gap: 6px; width: min(100%, 280px); font-size: 14px; }
|
|
952
|
+
.ui-select__label { font-size: 12px; letter-spacing: 0.06em; color: var(--mut); }
|
|
953
|
+
.ui-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0 12px; cursor: pointer; color: var(--fg); text-align: left; }
|
|
954
|
+
.ui-select--sm .ui-select__trigger { height: 34px; }
|
|
955
|
+
.ui-select--md .ui-select__trigger { height: 42px; }
|
|
956
|
+
.ui-select--lg .ui-select__trigger { height: 52px; font-size: 16px; }
|
|
957
|
+
.ui-select__placeholder { color: var(--mut); }
|
|
958
|
+
.ui-select__mark { color: var(--mut); transition: rotate 0.15s; }
|
|
959
|
+
.ui-select__trigger[aria-expanded="true"] .ui-select__mark { rotate: 180deg; }
|
|
960
|
+
.ui-select__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 220px; overflow: auto; padding: 6px; list-style: none; margin: 0; display: grid; gap: 2px; }
|
|
961
|
+
.ui-select__opt { width: 100%; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; padding: 8px 10px; border-radius: calc(var(--s-r, 12px) - 4px); cursor: pointer; }
|
|
962
|
+
.ui-select__opt:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); }
|
|
963
|
+
.ui-select__opt.is-selected { color: var(--acc); font-weight: 700; }
|
|
964
|
+
|
|
965
|
+
/* ---------- CheckboxGroup / RadioGroup ---------- */
|
|
966
|
+
.ui-cgroup, .ui-rgroup { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; font-family: var(--s-ff); }
|
|
967
|
+
.ui-cgroup legend, .ui-rgroup legend { padding: 0 0 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
|
|
968
|
+
.ui-cgroup__item, .ui-rgroup__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); cursor: pointer; text-transform: none; letter-spacing: normal; }
|
|
969
|
+
.ui-cgroup__box { flex: none; width: 20px; height: 20px; display: grid; place-content: center; background: var(--s-bg); border: var(--s-bd); border-radius: calc(var(--s-r, 12px) / 3); box-shadow: var(--s-sh); cursor: pointer; color: var(--acc); font-size: 12px; padding: 0; }
|
|
970
|
+
.ui-cgroup__box span { opacity: 0; transition: opacity 0.12s; }
|
|
971
|
+
.ui-cgroup__box.is-on span { opacity: 1; }
|
|
972
|
+
.ui-cgroup__box.is-on { border-color: var(--acc); }
|
|
973
|
+
.ui-rgroup__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--s-bg); border: var(--s-bd); box-shadow: var(--s-sh); cursor: pointer; position: relative; padding: 0; }
|
|
974
|
+
.ui-rgroup__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--acc); opacity: 0; transition: opacity 0.12s; }
|
|
975
|
+
.ui-rgroup__dot.is-on { border-color: var(--acc); }
|
|
976
|
+
.ui-rgroup__dot.is-on::after { opacity: 1; }
|
|
977
|
+
.ui-s--retro .ui-cgroup__box, .ui-s--terminal .ui-cgroup__box { width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; font-family: var(--mono); }
|
|
978
|
+
.ui-s--retro .ui-cgroup__box::before, .ui-s--terminal .ui-cgroup__box::before { content: "[ ]"; }
|
|
979
|
+
.ui-s--retro .ui-cgroup__box.is-on::before, .ui-s--terminal .ui-cgroup__box.is-on::before { content: "[x]"; color: var(--acc); }
|
|
980
|
+
.ui-s--retro .ui-cgroup__box span, .ui-s--terminal .ui-cgroup__box span { display: none; }
|
|
981
|
+
.ui-s--retro .ui-rgroup__dot, .ui-s--terminal .ui-rgroup__dot { width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; font-family: var(--mono); }
|
|
982
|
+
.ui-s--retro .ui-rgroup__dot::before, .ui-s--terminal .ui-rgroup__dot::before { content: "( )"; }
|
|
983
|
+
.ui-s--retro .ui-rgroup__dot.is-on::before, .ui-s--terminal .ui-rgroup__dot.is-on::before { content: "(•)"; color: var(--acc); }
|
|
984
|
+
.ui-s--retro .ui-rgroup__dot::after, .ui-s--terminal .ui-rgroup__dot::after { display: none; }
|
|
985
|
+
|
|
986
|
+
/* ---------- Stepper ---------- */
|
|
987
|
+
.ui-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; width: 100%; overflow: auto; font-family: var(--s-ff); }
|
|
988
|
+
.ui-steps__item { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; white-space: nowrap; }
|
|
989
|
+
.ui-steps__item:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--ln); margin-left: 8px; }
|
|
990
|
+
.ui-steps__mark { flex: none; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; background: var(--s-bg); border: var(--s-bd); font-size: 11px; font-weight: 700; color: var(--mut); }
|
|
991
|
+
.ui-steps__item.is-current { color: var(--fg); font-weight: 700; }
|
|
992
|
+
.ui-steps__item.is-current .ui-steps__mark { color: var(--bg); background: var(--acc); border-color: var(--acc); }
|
|
993
|
+
.ui-steps__item.is-done .ui-steps__mark { color: var(--acc); border-color: var(--acc); }
|
|
994
|
+
.ui-steps__item.is-done:not(:last-child)::after { background: var(--acc); }
|
|
995
|
+
|
|
996
|
+
/* ---------- OtpInput ---------- */
|
|
997
|
+
.ui-otp { display: flex; gap: 8px; }
|
|
998
|
+
.ui-otp__box { text-align: center; font: inherit; font-family: var(--mono); font-weight: 700; color: var(--fg); background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); outline: none; appearance: none; -webkit-appearance: none; }
|
|
999
|
+
.ui-otp__box:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 28%, transparent); }
|
|
1000
|
+
.ui-otp--sm .ui-otp__box { width: 32px; height: 38px; font-size: 15px; }
|
|
1001
|
+
.ui-otp--md .ui-otp__box { width: 40px; height: 48px; font-size: 18px; }
|
|
1002
|
+
.ui-otp--lg .ui-otp__box { width: 50px; height: 58px; font-size: 22px; }
|
|
1003
|
+
|
|
1004
|
+
/* ---------- Breadcrumbs ---------- */
|
|
1005
|
+
.ui-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-family: var(--s-ff); text-transform: var(--s-tt); letter-spacing: var(--s-ls); }
|
|
1006
|
+
.ui-crumbs__item { display: inline-flex; align-items: center; gap: 6px; }
|
|
1007
|
+
.ui-crumbs__link { font: inherit; color: var(--mut); background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
|
|
1008
|
+
.ui-crumbs__link:hover { color: var(--acc); text-decoration: underline; }
|
|
1009
|
+
.ui-crumbs [aria-current="page"] { color: var(--fg); font-weight: 700; }
|
|
1010
|
+
.ui-crumbs__sep { color: var(--ln); font-family: var(--mono); }
|
|
1011
|
+
|
|
1012
|
+
/* ---------- Pagination ---------- */
|
|
1013
|
+
.ui-page { display: flex; align-items: center; gap: 4px; font-family: var(--s-ff); }
|
|
1014
|
+
.ui-page__nav, .ui-page__num { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-content: center; font: inherit; font-size: 13px; color: var(--fg); background: var(--s-bg); border: var(--s-bd); border-radius: var(--s-r); box-shadow: var(--s-sh); cursor: pointer; }
|
|
1015
|
+
.ui-page__nav:disabled { opacity: 0.35; cursor: not-allowed; }
|
|
1016
|
+
.ui-page__num.is-on { background: var(--acc); color: var(--bg); border-color: transparent; font-weight: 700; }
|
|
1017
|
+
.ui-page__gap { min-width: 24px; text-align: center; color: var(--mut); }
|
|
1018
|
+
.ui-s--minimal .ui-page__nav, .ui-s--minimal .ui-page__num { background: none; border: 0; box-shadow: none; }
|
|
1019
|
+
.ui-s--minimal .ui-page__num.is-on { background: none; color: var(--acc); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
|
|
1020
|
+
.ui-s--terminal .ui-page__num.is-on { background: none; color: var(--acc); }
|
|
1021
|
+
.ui-s--terminal .ui-page__num.is-on::before { content: "["; }
|
|
1022
|
+
.ui-s--terminal .ui-page__num.is-on::after { content: "]"; }
|
|
1023
|
+
|
|
1024
|
+
/* ---------- Dropdown ---------- */
|
|
1025
|
+
.ui-ddown { position: relative; display: inline-block; }
|
|
1026
|
+
.ui-ddown__trigger { min-width: 36px; height: 36px; padding: 0 12px; display: grid; place-content: center; font: inherit; font-size: 16px; color: var(--fg); cursor: pointer; }
|
|
1027
|
+
.ui-ddown__menu { position: absolute; z-index: 20; top: calc(100% + 6px); min-width: 180px; list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
|
|
1028
|
+
.ui-ddown__menu--right { right: 0; }
|
|
1029
|
+
.ui-ddown__menu--left { left: 0; }
|
|
1030
|
+
.ui-ddown__item { width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--fg); background: none; border: 0; padding: 8px 10px; border-radius: calc(var(--s-r, 12px) - 4px); cursor: pointer; }
|
|
1031
|
+
.ui-ddown__item:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); }
|
|
1032
|
+
|
|
1033
|
+
/* ---------- BlogCard ---------- */
|
|
1034
|
+
/* BlogCard: cuatro maquetaciones sobre la misma anatomía (cabecera + cuerpo). Siempre alineada a la izquierda,
|
|
1035
|
+
* aunque la sección que la contenga centre su texto. */
|
|
1036
|
+
.ui-blog { position: relative; width: 100%; overflow: hidden; display: flex; flex-direction: column; text-align: start; color: var(--fg); text-decoration: none; }
|
|
1037
|
+
.ui-blog__media { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--s-bd); background: var(--pat, none), color-mix(in srgb, var(--acc) 10%, var(--bg)); }
|
|
1038
|
+
.ui-blog__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
|
|
1039
|
+
.ui-blog__media--glyph { aspect-ratio: auto; height: 64px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.1em; color: color-mix(in srgb, var(--acc) 55%, transparent); word-break: break-all; }
|
|
1040
|
+
.ui-blog__media--pattern::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--acc2) 22%, transparent), transparent 60%); }
|
|
1041
|
+
.ui-blog__body { flex: 1; padding: 16px; display: grid; gap: 8px; align-content: start; }
|
|
1042
|
+
.ui-blog__cat { justify-self: start; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); }
|
|
1043
|
+
.ui-blog__body h4 { margin: 0; font-size: 17px; line-height: 1.3; text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
1044
|
+
.ui-blog__body p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
1045
|
+
.ui-blog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--mut); text-transform: none; }
|
|
1046
|
+
.ui-blog__meta > span + span:not(.ui-blog__more)::before { content: "·"; margin-right: 10px; }
|
|
1047
|
+
.ui-blog__author { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
|
|
1048
|
+
.ui-blog__avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 10px; font-weight: 700; background: color-mix(in srgb, var(--acc) 24%, var(--bg)); color: var(--acc); }
|
|
1049
|
+
.ui-blog__more { margin-left: auto; color: var(--acc); font-weight: 600; }
|
|
1050
|
+
/* enlace: toda la tarjeta; sube un poco y la imagen se acerca */
|
|
1051
|
+
.ui-blog--link { cursor: pointer; transition: translate 0.25s ease, box-shadow 0.25s ease; }
|
|
1052
|
+
.ui-blog--link:hover { translate: 0 -3px; box-shadow: var(--s-sh), 0 16px 34px -20px var(--acc); }
|
|
1053
|
+
.ui-blog--link:hover .ui-blog__media img { scale: 1.05; }
|
|
1054
|
+
.ui-blog--link:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
|
|
1055
|
+
/* horizontal: cabecera a la izquierda; al no caber (tarjeta estrecha) se apila sola, sin media queries */
|
|
1056
|
+
.ui-blog--horizontal { flex-direction: row; flex-wrap: wrap; }
|
|
1057
|
+
.ui-blog--horizontal .ui-blog__media { flex: 1 1 170px; aspect-ratio: auto; min-height: 140px; border-bottom: 0; border-right: var(--s-bd); }
|
|
1058
|
+
.ui-blog--horizontal .ui-blog__body { flex: 999 1 240px; }
|
|
1059
|
+
/* overlay: la imagen (o el degradado) es el fondo de toda la tarjeta y el texto se apoya abajo */
|
|
1060
|
+
.ui-blog--overlay { min-height: 320px; justify-content: flex-end; --veil-top: 8%; --veil-mid: 40%; --veil-bottom: 94%; }
|
|
1061
|
+
.ui-blog--overlay .ui-blog__body { flex: none; padding: 22px; }
|
|
1062
|
+
.ui-blog--overlay .ui-blog__body h4 { font-size: clamp(19px, 2.4vw, 26px); }
|
|
1063
|
+
.ui-blog--overlay .ui-blog__body p { color: color-mix(in srgb, var(--fg) 82%, transparent); }
|
|
1064
|
+
.ui-blog--overlay .ui-blog__cat { padding: 3px 8px; border-radius: 999px; background: var(--acc); color: var(--bg); }
|
|
1065
|
+
/* minimal: sin cabecera; el acento marca el borde izquierdo */
|
|
1066
|
+
.ui-blog--minimal { box-shadow: inset 3px 0 0 var(--acc), var(--s-sh); }
|
|
1067
|
+
.ui-blog--minimal .ui-blog__body { padding: 18px 18px 18px 22px; }
|
|
1068
|
+
.ui-blog--minimal .ui-blog__body h4 { font-size: 19px; }
|
|
1069
|
+
/* ArticlesSection: composiciones */
|
|
1070
|
+
.ui-articles__grid.ui-articles__grid--grid { align-items: stretch; }
|
|
1071
|
+
.ui-articles__grid.ui-articles__grid--list { max-width: 760px; grid-template-columns: 1fr; }
|
|
1072
|
+
.ui-articles__grid.ui-articles__grid--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: stretch; }
|
|
1073
|
+
.ui-articles__grid--featured > :first-child { grid-row: span var(--feat-rows, 2); min-height: 380px; }
|
|
1074
|
+
.ui-articles__grid--featured > :not(:first-child) .ui-blog__media { flex-basis: 130px; min-height: 110px; }
|
|
1075
|
+
|
|
1076
|
+
/* ---------- CodeBlock ---------- */
|
|
1077
|
+
.ui-code { width: 100%; max-width: 640px; overflow: hidden; font-family: var(--mono); }
|
|
1078
|
+
.ui-code__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ln); }
|
|
1079
|
+
.ui-code__dots { display: flex; gap: 6px; }
|
|
1080
|
+
.ui-code__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ln); }
|
|
1081
|
+
.ui-code__name { flex: 1; font-size: 12px; color: var(--mut); }
|
|
1082
|
+
.ui-code__copy { font: inherit; font-size: 12px; color: var(--mut); background: none; border: 1px solid var(--ln); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
|
|
1083
|
+
.ui-code__copy:hover { color: var(--fg); border-color: var(--acc); }
|
|
1084
|
+
.ui-code__pre { margin: 0; padding: 12px 0; overflow: auto; font-size: 13px; line-height: 1.7; }
|
|
1085
|
+
.ui-code__line { display: block; padding: 0 16px; white-space: pre; }
|
|
1086
|
+
.ui-code__ln { display: inline-block; width: 26px; margin-right: 12px; text-align: right; color: var(--mut); opacity: 0.5; user-select: none; }
|
|
1087
|
+
|
|
1088
|
+
/* ---------- Skeleton ---------- */
|
|
1089
|
+
.ui-skel { position: relative; overflow: hidden; background: color-mix(in srgb, var(--tone, var(--mut)) 18%, transparent); border-radius: 6px; }
|
|
1090
|
+
.ui-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tone, var(--mut)) 35%, transparent), transparent); transform: translateX(-100%); animation: ui-shimmer 1.6s ease-in-out infinite; }
|
|
1091
|
+
.ui-skel--line { height: 12px; }
|
|
1092
|
+
.ui-skel--block { height: 120px; border-radius: 10px; }
|
|
1093
|
+
.ui-skel--avatar { width: 48px; height: 48px; border-radius: 50%; }
|
|
1094
|
+
.ui-skel--row { height: 34px; border-radius: 8px; }
|
|
1095
|
+
.ui-skel-lines, .ui-skel-table { display: grid; gap: 10px; width: 100%; max-width: 320px; }
|
|
1096
|
+
.ui-skel-card { display: grid; gap: 10px; width: 100%; max-width: 260px; }
|
|
1097
|
+
@keyframes ui-shimmer { to { transform: translateX(100%); } }
|
|
1098
|
+
@media (prefers-reduced-motion: reduce) { .ui-skel::after { animation: none; } }
|
|
1099
|
+
|
|
1100
|
+
/* ---------- FeatureGrid / TeamSection / LogoCloud / ArticlesSection ---------- */
|
|
1101
|
+
.ui-feats, .ui-team, .ui-articles { width: 100%; min-width: 0; display: grid; gap: 28px; justify-items: center; text-align: center; }
|
|
1102
|
+
.ui-feats__grid, .ui-team__grid, .ui-articles__grid { width: 100%; min-width: 0; max-width: 980px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
|
|
1103
|
+
.ui-feats__item { padding: 24px; display: grid; gap: 8px; justify-items: center; text-align: center; }
|
|
1104
|
+
.ui-feats__glyph { width: 40px; height: 40px; display: grid; place-content: center; border-radius: 50%; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc); font-family: var(--mono); font-weight: 700; }
|
|
1105
|
+
.ui-feats__item strong { font-size: 16px; }
|
|
1106
|
+
.ui-feats__item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
1107
|
+
.ui-team__card { padding: 24px; display: grid; gap: 8px; justify-items: center; text-align: center; }
|
|
1108
|
+
.ui-team__avatar { width: 56px; height: 56px; display: grid; place-content: center; border-radius: min(var(--s-r, 12px), 50%); background: color-mix(in srgb, var(--acc) 22%, transparent); border: 1px solid var(--acc); color: var(--acc); font-weight: 800; font-family: var(--mono); font-size: 16px; }
|
|
1109
|
+
.ui-team__card span:last-child { font-size: 13px; color: var(--mut); }
|
|
1110
|
+
.ui-logos { width: 100%; display: grid; gap: 16px; justify-items: center; text-align: center; }
|
|
1111
|
+
.ui-logos__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); text-shadow: var(--legibility-ts); }
|
|
1112
|
+
.ui-logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 4vw, 48px); font-family: var(--s-ff); }
|
|
1113
|
+
.ui-logos__brand { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; color: var(--mut); text-transform: var(--s-tt); opacity: 0.75; text-shadow: var(--legibility-ts); transition: opacity 0.15s, color 0.15s; }
|
|
1114
|
+
.ui-logos__brand:hover { opacity: 1; color: var(--fg); }
|
|
1115
|
+
|
|
1116
|
+
/* ---------- ScrollArea ---------- */
|
|
1117
|
+
.ui-scroll { width: 100%; max-width: 420px; overflow-y: auto; padding: 16px 18px; display: grid; gap: 10px; align-content: start; font-size: 14px; line-height: 1.6; color: var(--mut); text-transform: none; letter-spacing: normal; }
|
|
1118
|
+
.ui-scroll p { margin: 0; }
|
|
1119
|
+
.ui-scroll__head { color: var(--fg); font-weight: var(--s-fw, 700); text-transform: var(--s-tt); letter-spacing: var(--s-ls); text-shadow: var(--s-ts); }
|
|
1120
|
+
|
|
1121
|
+
/* ---------- Color semántico común (components/ui/intent.ts) ----------
|
|
1122
|
+
* Un solo vocabulario para Button, Badge, Alert, TextField, Toast y Modal. Fija --tone (insignias, avisos, campos) y
|
|
1123
|
+
* --acc (botones y lo que haya dentro). Va al final del archivo para ganar por orden a los valores base de cada
|
|
1124
|
+
* componente (p. ej. `.ui-badge { --tone: var(--fg) }`). */
|
|
1125
|
+
.ui-intent--accent { --tone: var(--acc); }
|
|
1126
|
+
.ui-intent--neutral { --tone: var(--fg); --acc: var(--fg); }
|
|
1127
|
+
.ui-intent--success { --tone: var(--ok); --acc: var(--ok); }
|
|
1128
|
+
.ui-intent--info { --tone: var(--info); --acc: var(--info); }
|
|
1129
|
+
.ui-intent--warning { --tone: var(--warn); --acc: var(--warn); }
|
|
1130
|
+
.ui-intent--danger { --tone: var(--bad); --acc: var(--bad); }
|
|
1131
|
+
/* Toast: sonner marca el tipo en data-type; se traduce al mismo color (antes todos pintaban el icono con --acc) */
|
|
1132
|
+
.ui-toast[data-type="success"] { --acc: var(--ok); } .ui-toast[data-type="info"] { --acc: var(--info); }
|
|
1133
|
+
.ui-toast[data-type="warning"] { --acc: var(--warn); } .ui-toast[data-type="error"] { --acc: var(--bad); }
|
|
1134
|
+
.ui-toast[data-type="success"], .ui-toast[data-type="info"], .ui-toast[data-type="warning"], .ui-toast[data-type="error"] { border-left: 3px solid var(--acc); }
|
|
1135
|
+
|