mirror of
https://github.com/Open-Dev-Society/OpenStock.git
synced 2026-11-18 14:29:33 +08:00
/love shows sponsors and public GitHub supporters in two drifting rows, then real posts, videos and articles about OpenStock. X posts render live through react-tweet, so the page never copies anyone's words. The share button opens X with a prefilled post. Atlas Cloud takes a Partner slot: sidebar, sponsor band and README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
853 lines
27 KiB
CSS
853 lines
27 KiB
CSS
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
/*
|
|
* Design language: dashboard-craft (floated shell, dark chrome, browser tabs,
|
|
* hatch shells, bento tiles) in a dark warm workspace.
|
|
* Two hues carry everything: neutral hue 95 (warm) and accent hue 176 (OpenStock teal).
|
|
* Up/down share one lightness (0.70) and chroma % so neither shouts louder.
|
|
*/
|
|
:root {
|
|
--page: oklch(0.13 0.006 95); /* near-black behind the floated app */
|
|
--side: oklch(0.165 0.007 95); /* sidebar + tab chrome */
|
|
--frame: oklch(0.185 0.007 95); /* hatch shell frame (recessed) */
|
|
--canvas: oklch(0.205 0.007 95); /* workspace; active tab = canvas */
|
|
--card: oklch(0.235 0.008 95); /* inner card (raised) */
|
|
--hover: oklch(0.27 0.008 95);
|
|
--line: oklch(0.29 0.008 95);
|
|
--line-strong: oklch(0.36 0.01 95);
|
|
--text: oklch(0.95 0.006 95);
|
|
--muted: oklch(0.74 0.012 95);
|
|
--faint: oklch(0.62 0.012 95);
|
|
|
|
--brand: oklch(0.80 0.13 176); /* fills + icons */
|
|
--brand-strong: oklch(0.72 0.12 176);
|
|
--brand-ink: oklch(0.85 0.12 176); /* the only brand colour allowed as text */
|
|
--brand-soft: oklch(0.31 0.05 176); /* brand as a fill behind text */
|
|
--on-brand: oklch(0.22 0.04 176);
|
|
|
|
--up: oklch(0.70 0.164 150);
|
|
--up-soft: oklch(0.30 0.055 150);
|
|
--down: oklch(0.70 0.162 25);
|
|
--down-soft: oklch(0.30 0.055 25);
|
|
--warn: oklch(0.76 0.119 70);
|
|
|
|
--tab-ease: cubic-bezier(0.32, 0.72, 0, 1);
|
|
--ui-ease: cubic-bezier(0.2, 0, 0, 1);
|
|
|
|
/* shadcn tokens, repointed onto the palette above */
|
|
--radius: 0.75rem;
|
|
--background: var(--canvas);
|
|
--foreground: var(--text);
|
|
--card-foreground: var(--text);
|
|
--popover: var(--card);
|
|
--popover-foreground: var(--text);
|
|
--primary: var(--brand);
|
|
--primary-foreground: var(--on-brand);
|
|
--secondary: var(--hover);
|
|
--secondary-foreground: var(--text);
|
|
--muted-foreground: var(--muted);
|
|
--accent: var(--hover);
|
|
--accent-foreground: var(--text);
|
|
--destructive: var(--down);
|
|
--border: var(--line);
|
|
--input: var(--line-strong);
|
|
--ring: var(--brand);
|
|
}
|
|
|
|
@theme inline {
|
|
--font-sans: var(--font-jakarta);
|
|
--font-mono: var(--font-plex-mono);
|
|
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--hover);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
|
|
--color-page: var(--page);
|
|
--color-side: var(--side);
|
|
--color-frame: var(--frame);
|
|
--color-canvas: var(--canvas);
|
|
--color-hover: var(--hover);
|
|
--color-line: var(--line);
|
|
--color-line-strong: var(--line-strong);
|
|
--color-faint: var(--faint);
|
|
--color-brand: var(--brand);
|
|
--color-brand-strong: var(--brand-strong);
|
|
--color-brand-ink: var(--brand-ink);
|
|
--color-brand-soft: var(--brand-soft);
|
|
--color-on-brand: var(--on-brand);
|
|
--color-up: var(--up);
|
|
--color-up-soft: var(--up-soft);
|
|
--color-down: var(--down);
|
|
--color-down-soft: var(--down-soft);
|
|
--color-warn: var(--warn);
|
|
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
}
|
|
|
|
/* Legacy utility scales, repointed so older pages (about, help, terms, api-docs)
|
|
pick up the warm palette without a rewrite. */
|
|
@theme {
|
|
--color-gray-50: oklch(0.97 0.004 95);
|
|
--color-gray-100: oklch(0.95 0.006 95);
|
|
--color-gray-200: oklch(0.90 0.007 95);
|
|
--color-gray-300: oklch(0.83 0.009 95);
|
|
--color-gray-400: oklch(0.80 0.01 95);
|
|
--color-gray-500: oklch(0.66 0.012 95);
|
|
--color-gray-600: oklch(0.36 0.01 95);
|
|
--color-gray-700: oklch(0.27 0.008 95);
|
|
--color-gray-800: oklch(0.205 0.007 95);
|
|
--color-gray-900: oklch(0.13 0.006 95);
|
|
--color-gray-950: oklch(0.10 0.005 95);
|
|
|
|
--color-teal-300: oklch(0.88 0.10 176);
|
|
--color-teal-400: oklch(0.85 0.12 176);
|
|
--color-teal-500: oklch(0.80 0.13 176);
|
|
--color-teal-600: oklch(0.72 0.12 176);
|
|
--color-teal-700: oklch(0.58 0.10 176);
|
|
--color-teal-800: oklch(0.42 0.07 176);
|
|
--color-teal-900: oklch(0.31 0.05 176);
|
|
|
|
--color-green-400: oklch(0.74 0.16 150);
|
|
--color-green-500: oklch(0.70 0.164 150);
|
|
--color-red-400: oklch(0.74 0.15 25);
|
|
--color-red-500: oklch(0.70 0.162 25);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
html {
|
|
font-size: 14px;
|
|
}
|
|
body {
|
|
background: var(--page);
|
|
color: var(--text);
|
|
line-height: 1.45;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
h1, h2, h3 {
|
|
text-wrap: balance;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
p {
|
|
text-wrap: pretty;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
/* Component classes live in a layer so Tailwind utilities (lg:hidden, h-8, ...) can override them. */
|
|
@layer components {
|
|
/* ============ Shell ============ */
|
|
|
|
.shell {
|
|
display: grid;
|
|
grid-template-columns: 248px minmax(0, 1fr);
|
|
height: 100dvh;
|
|
overflow: hidden;
|
|
background: var(--page);
|
|
}
|
|
.shell > * { min-width: 0; min-height: 0; }
|
|
|
|
.shell-container {
|
|
height: 100%;
|
|
padding: 10px 10px 10px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr); /* implicit auto column would grow to content and overflow */
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
height: 100%;
|
|
overflow: hidden;
|
|
border-radius: 16px;
|
|
background: var(--side);
|
|
box-shadow: 0 0 0 1px oklch(1 0 0 / 0.04), 0 12px 40px oklch(0 0 0 / 0.45);
|
|
}
|
|
|
|
.workspace {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
background: var(--canvas);
|
|
border-radius: 12px 12px 0 0;
|
|
transition: border-top-left-radius 180ms var(--tab-ease);
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--line-strong) transparent;
|
|
}
|
|
.workspace.is-first-tab { border-top-left-radius: 0; }
|
|
|
|
.workspace-inner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
max-width: 1680px;
|
|
}
|
|
|
|
@media (max-width: 1023px) {
|
|
.shell { grid-template-columns: minmax(0, 1fr); }
|
|
.shell-container { padding: 0; }
|
|
.app { border-radius: 0; }
|
|
.workspace-inner { padding: 12px; }
|
|
}
|
|
|
|
/* ============ Sidebar ============ */
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
height: 100%;
|
|
padding: 18px 12px 12px;
|
|
overflow-y: auto;
|
|
background: var(--page);
|
|
color: var(--muted);
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.side-label {
|
|
padding: 0 10px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--faint);
|
|
}
|
|
|
|
.side-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
height: 34px;
|
|
padding: 0 10px;
|
|
border-radius: 9px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
transition: background-color 150ms var(--ui-ease), color 150ms var(--ui-ease), transform 150ms var(--ui-ease);
|
|
}
|
|
.side-item:hover { background: oklch(1 0 0 / 0.06); color: var(--text); }
|
|
.side-item:active { transform: scale(0.97); }
|
|
.side-item.is-active { background: oklch(1 0 0 / 0.08); color: var(--text); }
|
|
.side-item svg { flex: none; width: 17px; height: 17px; }
|
|
|
|
.side-cta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 40px;
|
|
padding: 0 12px;
|
|
border-radius: 11px;
|
|
font-weight: 700;
|
|
color: var(--on-brand);
|
|
background: var(--brand);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 6px 18px oklch(0.8 0.13 176 / 0.18);
|
|
transition: background-color 150ms var(--ui-ease), transform 150ms var(--ui-ease);
|
|
}
|
|
.side-cta:hover { background: var(--brand-ink); }
|
|
.side-cta:active { transform: scale(0.96); }
|
|
|
|
.kbd {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
border-radius: 6px;
|
|
font-family: var(--font-plex-mono), ui-monospace, monospace;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ============ Tab bar (browser-style chrome) ============ */
|
|
|
|
.tabbar {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
padding: 6px 10px 0 8px;
|
|
background: var(--side);
|
|
user-select: none;
|
|
}
|
|
|
|
.tabs {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.tab {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 1 auto;
|
|
min-width: 112px;
|
|
max-width: 200px;
|
|
height: 36px;
|
|
padding: 0 10px 2px 14px;
|
|
color: oklch(1 0 0 / 0.55);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
transition: color 150ms var(--ui-ease);
|
|
}
|
|
.tab::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 4px 4px 6px;
|
|
z-index: -1;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
transition: background-color 150ms var(--ui-ease);
|
|
}
|
|
.tab:hover { color: oklch(1 0 0 / 0.8); }
|
|
.tab:hover:not(.is-active)::before { background: oklch(1 0 0 / 0.07); }
|
|
.tab.is-active { color: var(--text); }
|
|
.tab-label { overflow: hidden; text-overflow: ellipsis; flex: 1; }
|
|
.tab svg { flex: none; width: 15px; height: 15px; }
|
|
|
|
.tab-close {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 6px;
|
|
color: inherit;
|
|
opacity: 0.6;
|
|
transition: background-color 150ms var(--ui-ease), opacity 150ms var(--ui-ease);
|
|
}
|
|
.tab-close:hover { opacity: 1; background: oklch(1 0 0 / 0.1); }
|
|
.tab-close svg { width: 13px; height: 13px; }
|
|
|
|
.tab-glider {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 0;
|
|
height: 36px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: transform 240ms var(--tab-ease), width 240ms var(--tab-ease);
|
|
}
|
|
.tab-glider.is-ready { opacity: 1; }
|
|
.tab-glider-body {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 11px;
|
|
right: 11px;
|
|
border-radius: 12px 12px 0 0;
|
|
background: var(--canvas);
|
|
}
|
|
.tab-glider-curve {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 12px;
|
|
height: 12px;
|
|
fill: var(--canvas);
|
|
}
|
|
.tab-glider-curve.is-left { left: 0; }
|
|
.tab-glider-curve.is-right { right: 0; transform: scaleX(-1); }
|
|
|
|
.chrome-btn {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 30px;
|
|
height: 30px;
|
|
margin-bottom: 3px;
|
|
border-radius: 8px;
|
|
color: oklch(1 0 0 / 0.55);
|
|
transition: background-color 150ms var(--ui-ease), color 150ms var(--ui-ease), transform 150ms var(--ui-ease);
|
|
}
|
|
.chrome-btn:hover { background: oklch(1 0 0 / 0.1); color: var(--text); }
|
|
.chrome-btn:active { transform: scale(0.94); }
|
|
.chrome-btn svg { width: 17px; height: 17px; }
|
|
|
|
/* ============ Hatch shells ============ */
|
|
|
|
.hatch {
|
|
--shell-pad: 3px;
|
|
--inner-r: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
padding: var(--shell-pad);
|
|
border-radius: calc(var(--inner-r) + var(--shell-pad));
|
|
background:
|
|
repeating-linear-gradient(-45deg, oklch(0.4 0.01 95 / 0.22) 0 1px, transparent 1px 5px),
|
|
var(--frame);
|
|
box-shadow: 0 0 0 1px oklch(1 0 0 / 0.035), 0 6px 18px oklch(0 0 0 / 0.22);
|
|
}
|
|
|
|
.card {
|
|
min-width: 0;
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05), 0 0 0 1px oklch(0 0 0 / 0.25);
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px 9px;
|
|
}
|
|
.section-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
color: var(--text);
|
|
}
|
|
.section-sub {
|
|
margin-top: 1px;
|
|
font-size: 12.5px;
|
|
color: var(--faint);
|
|
}
|
|
|
|
.page-head {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 4px 4px 2px;
|
|
}
|
|
.page-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.04em;
|
|
color: var(--text);
|
|
}
|
|
.page-sub {
|
|
margin-top: 2px;
|
|
color: var(--faint);
|
|
}
|
|
|
|
.kicker {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--faint);
|
|
}
|
|
|
|
/* ============ Bento tiles ============ */
|
|
|
|
.bento {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
gap: 3px;
|
|
}
|
|
.bento-tile {
|
|
grid-column: span 3;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
padding: 14px 14px 12px;
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
|
|
}
|
|
@media (max-width: 1023px) { .bento-tile { grid-column: span 6; } }
|
|
|
|
.bento-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--muted);
|
|
}
|
|
.bento-ico {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 999px;
|
|
background: oklch(1 0 0 / 0.06);
|
|
color: var(--muted);
|
|
}
|
|
.bento-ico svg { width: 15px; height: 15px; }
|
|
.bento-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
letter-spacing: -0.04em;
|
|
color: var(--text);
|
|
font-variant-numeric: tabular-nums;
|
|
text-wrap: balance;
|
|
}
|
|
.bento-value small {
|
|
font-size: 0.62em;
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
color: var(--muted);
|
|
}
|
|
.bento-foot {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font-size: 12.5px;
|
|
color: var(--faint);
|
|
}
|
|
|
|
/* ============ Pills, buttons, numbers ============ */
|
|
|
|
.num { font-variant-numeric: tabular-nums; }
|
|
.mono { font-family: var(--font-plex-mono), ui-monospace, monospace; }
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
flex: none;
|
|
height: 22px;
|
|
padding: 0 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
background: oklch(1 0 0 / 0.06);
|
|
color: var(--muted);
|
|
}
|
|
.pill svg { width: 12px; height: 12px; }
|
|
.pill.is-up { background: var(--up-soft); color: var(--up); }
|
|
.pill.is-down { background: var(--down-soft); color: var(--down); }
|
|
.pill.is-brand { background: var(--brand-soft); color: var(--brand-ink); }
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
height: 36px;
|
|
padding: 0 14px;
|
|
border-radius: 10px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
transition: background-color 150ms var(--ui-ease), color 150ms var(--ui-ease), transform 150ms var(--ui-ease), box-shadow 150ms var(--ui-ease);
|
|
}
|
|
.btn:active:not(:disabled) { transform: scale(0.96); }
|
|
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
|
|
.btn svg { width: 16px; height: 16px; flex: none; }
|
|
.btn-primary {
|
|
color: var(--on-brand);
|
|
background: var(--brand);
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 6px 18px oklch(0.8 0.13 176 / 0.16);
|
|
}
|
|
.btn-primary:hover:not(:disabled) { background: var(--brand-ink); }
|
|
.btn-ghost {
|
|
color: var(--muted);
|
|
box-shadow: inset 0 0 0 1px var(--line);
|
|
}
|
|
.btn-ghost:hover:not(:disabled) { background: var(--hover); color: var(--text); }
|
|
.btn-ghost.is-on { color: var(--brand-ink); box-shadow: inset 0 0 0 1px oklch(0.8 0.13 176 / 0.35); background: var(--brand-soft); }
|
|
|
|
.icon-btn {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 9px;
|
|
color: var(--faint);
|
|
transition: background-color 150ms var(--ui-ease), color 150ms var(--ui-ease), transform 150ms var(--ui-ease);
|
|
}
|
|
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
|
|
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
|
|
.icon-btn:disabled { opacity: 0.5; }
|
|
.icon-btn svg { width: 16px; height: 16px; }
|
|
.icon-btn.is-danger:hover:not(:disabled) { color: var(--down); }
|
|
.icon-btn.is-on { color: var(--brand-ink); }
|
|
|
|
/* ============ Tables & rows ============ */
|
|
|
|
.data-table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.data-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
height: 38px;
|
|
padding: 0 14px;
|
|
background: var(--card);
|
|
border-bottom: 1px solid var(--line);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
text-align: left;
|
|
color: var(--faint);
|
|
white-space: nowrap;
|
|
}
|
|
.data-table td {
|
|
height: 58px;
|
|
padding: 0 14px;
|
|
border-bottom: 1px solid oklch(1 0 0 / 0.04);
|
|
white-space: nowrap;
|
|
}
|
|
.data-table tbody tr:nth-child(odd) td { background: oklch(1 0 0 / 0.012); }
|
|
.data-table tbody tr { transition: background-color 150ms var(--ui-ease); }
|
|
.data-table tbody tr:hover td { background: oklch(1 0 0 / 0.035); }
|
|
.data-table tbody tr:last-child td { border-bottom: 0; }
|
|
.data-table .is-num { text-align: right; }
|
|
|
|
.row-list > * + * { border-top: 1px solid oklch(1 0 0 / 0.05); }
|
|
|
|
.logo-well {
|
|
display: grid;
|
|
place-items: center;
|
|
flex: none;
|
|
width: 34px;
|
|
height: 34px;
|
|
overflow: hidden;
|
|
border-radius: 999px;
|
|
background: oklch(0.96 0.004 95);
|
|
color: var(--on-brand);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
}
|
|
.logo-well.is-empty { background: var(--hover); color: var(--muted); }
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 36px 20px;
|
|
text-align: center;
|
|
color: var(--faint);
|
|
}
|
|
.empty-state .empty-icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
margin-bottom: 6px;
|
|
border-radius: 999px;
|
|
background: oklch(1 0 0 / 0.05);
|
|
color: var(--muted);
|
|
}
|
|
.empty-state h3 { font-size: 15px; font-weight: 700; color: var(--text); }
|
|
|
|
/* ============ TradingView embeds ============ */
|
|
|
|
.tv-frame {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 14px;
|
|
background: var(--card);
|
|
}
|
|
.tradingview-widget-container,
|
|
.tradingview-widget-container__widget,
|
|
.tradingview-widget-container iframe {
|
|
width: 100% !important;
|
|
background: transparent !important;
|
|
}
|
|
.tradingview-widget-copyright {
|
|
padding: 6px 0;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
color: var(--faint);
|
|
}
|
|
.tradingview-widget-copyright a { color: var(--muted); }
|
|
}
|
|
|
|
/* ============ Auth + forms (class names kept for existing forms) ============ */
|
|
|
|
@layer utilities {
|
|
.yellow-btn {
|
|
@apply h-12 cursor-pointer rounded-[11px] bg-brand text-on-brand font-bold text-base disabled:opacity-50 hover:bg-brand-ink active:scale-[0.97] transition-[background-color,transform] duration-150;
|
|
box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.35), 0 6px 18px oklch(0.8 0.13 176 / 0.16);
|
|
}
|
|
.auth-layout {
|
|
@apply flex flex-col justify-between lg:flex-row h-dvh bg-page relative overflow-hidden;
|
|
}
|
|
.auth-logo {
|
|
@apply pt-6 lg:pt-8 mb-8 lg:mb-12;
|
|
}
|
|
.auth-left-section {
|
|
@apply w-full lg:w-[45%] lg:h-dvh px-6 lg:px-16 flex flex-col overflow-y-auto;
|
|
}
|
|
.auth-right-section {
|
|
@apply w-full max-lg:border-t max-lg:border-line lg:w-[55%] lg:h-[calc(100dvh-20px)] lg:m-[10px] lg:rounded-2xl bg-side px-6 py-4 md:p-6 lg:py-12 lg:px-16 flex flex-col justify-start overflow-hidden;
|
|
}
|
|
.auth-blockquote {
|
|
@apply text-sm md:text-xl lg:text-2xl font-semibold tracking-tight text-foreground mb-1 md:mb-6 lg:mb-8;
|
|
}
|
|
.auth-testimonial-author {
|
|
@apply text-xs md:text-base font-bold text-muted-foreground not-italic;
|
|
}
|
|
.auth-dashboard-preview {
|
|
@apply left-0 hidden w-[1024px] max-w-none lg:block pointer-events-none select-none;
|
|
}
|
|
.form-title {
|
|
@apply text-3xl font-bold tracking-[-0.04em] text-foreground mb-8;
|
|
}
|
|
.form-label {
|
|
@apply text-[12px] font-bold uppercase tracking-[0.06em] text-faint;
|
|
}
|
|
.form-input {
|
|
@apply h-12 px-3 py-3 text-foreground text-base bg-card placeholder:text-faint border-line rounded-[11px] focus:!border-brand focus-visible:ring-0;
|
|
}
|
|
.select-trigger {
|
|
@apply w-full !h-12 px-3 py-3 text-base border-line bg-card text-foreground rounded-[11px] focus:!border-brand focus-visible:ring-0;
|
|
}
|
|
.country-select-trigger {
|
|
@apply h-12 px-3 py-3 text-base w-full justify-between font-normal border-line bg-card text-foreground rounded-[11px] hover:bg-hover focus:!border-brand;
|
|
}
|
|
.country-select-input {
|
|
@apply !bg-card text-foreground border-0 border-b border-line rounded-none focus:ring-0 placeholder:text-faint;
|
|
}
|
|
.country-select-empty {
|
|
@apply text-faint py-6 text-center !bg-card;
|
|
}
|
|
.country-select-item {
|
|
@apply text-foreground cursor-pointer px-3 py-2 rounded-md bg-card hover:!bg-hover;
|
|
}
|
|
.footer-link {
|
|
@apply text-muted-foreground font-semibold hover:text-brand-ink transition-colors;
|
|
}
|
|
|
|
/* Search palette */
|
|
.search-dialog {
|
|
@apply !bg-card lg:min-w-[720px] border-line fixed top-10 left-1/2 -translate-x-1/2 translate-y-10 rounded-2xl overflow-hidden;
|
|
box-shadow: 0 0 0 4px var(--frame), 0 24px 60px oklch(0 0 0 / 0.55);
|
|
}
|
|
.search-field {
|
|
@apply !bg-card border-b border-line relative;
|
|
}
|
|
.search-input {
|
|
@apply !bg-card border-0 text-foreground placeholder:text-faint focus:ring-0 text-base h-14 pr-10;
|
|
}
|
|
.search-loader {
|
|
@apply absolute right-12 top-1/2 -translate-y-1/2 h-4 w-4 text-faint animate-spin;
|
|
}
|
|
.search-list {
|
|
@apply !bg-card max-h-[420px] p-1.5;
|
|
}
|
|
.search-list-indicator {
|
|
@apply px-5 py-8 text-center text-faint;
|
|
}
|
|
.search-list-empty {
|
|
@apply py-8 !bg-transparent text-center text-faint;
|
|
}
|
|
.search-count {
|
|
@apply px-3 pt-2 pb-1.5 text-[11px] font-bold uppercase tracking-[0.06em] text-faint;
|
|
}
|
|
.search-item {
|
|
@apply w-full;
|
|
}
|
|
.search-item-link {
|
|
@apply px-3 h-12 w-full cursor-pointer rounded-[10px] transition-colors flex items-center gap-3 hover:bg-hover focus-visible:bg-hover outline-none;
|
|
}
|
|
.search-item-name {
|
|
@apply font-semibold text-foreground truncate;
|
|
}
|
|
}
|
|
|
|
/* Custom scrollbar that shows on hover */
|
|
.scrollbar-hide-default {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: transparent transparent;
|
|
}
|
|
.scrollbar-hide-default:hover {
|
|
scrollbar-color: var(--line-strong) transparent;
|
|
}
|
|
|
|
/* Live price updates: a short tint toward up/down, then back */
|
|
@keyframes flash-up { from { background-color: oklch(0.70 0.164 150 / 0.28); } to { background-color: transparent; } }
|
|
@keyframes flash-down { from { background-color: oklch(0.70 0.162 25 / 0.28); } to { background-color: transparent; } }
|
|
.flash-up, .flash-down { border-radius: 6px; animation: 900ms var(--ui-ease) both; }
|
|
.flash-up { animation-name: flash-up; }
|
|
.flash-down { animation-name: flash-down; }
|
|
|
|
.live-dot {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 999px;
|
|
background: var(--up);
|
|
box-shadow: 0 0 0 3px oklch(0.70 0.164 150 / 0.18);
|
|
}
|
|
|
|
/* Wall of love: rows drift sideways forever. Each row renders its items 4x, so -50% moves exactly two copies. */
|
|
@keyframes marquee { to { transform: translateX(-50%); } }
|
|
.marquee { display: flex; flex: none; width: max-content; animation: marquee 60s linear infinite; }
|
|
.marquee.is-reverse { animation-direction: reverse; }
|
|
.marquee:hover { animation-play-state: paused; }
|
|
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.marquee { width: auto; margin-inline: auto; padding-inline: 20px; }
|
|
.marquee > div:first-child { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
|
|
.marquee > [aria-hidden], .marquee-mask.is-extra { display: none; }
|
|
.marquee-mask { mask-image: none; }
|
|
}
|
|
|
|
/* X posts (react-tweet) in the site palette */
|
|
.love-wall .react-tweet-theme {
|
|
--tweet-container-margin: 0;
|
|
--tweet-font-family: inherit;
|
|
--tweet-font-color: var(--text);
|
|
--tweet-font-color-secondary: var(--faint);
|
|
--tweet-bg-color: var(--card);
|
|
--tweet-bg-color-hover: var(--card);
|
|
--tweet-quoted-bg-color-hover: var(--hover);
|
|
--tweet-border: none;
|
|
--tweet-color-blue-secondary: var(--brand-ink);
|
|
--tweet-color-blue-secondary-hover: var(--brand-soft);
|
|
--tweet-body-font-size: 15px;
|
|
--tweet-body-line-height: 1.5;
|
|
max-width: none;
|
|
}
|