Files
mcpedia/apps/web/app/globals.css
T
2026-08-21 11:07:52 +07:00

168 lines
3.3 KiB
CSS

@import "tailwindcss";
@plugin "@tailwindcss/typography";
/* Modern Linear / Vercel style dark-mode-first tokens */
@custom-variant dark (&:where(.dark, .dark *));
@theme inline {
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
--color-background: #08090a;
--color-surface: #0f1011;
--color-elevated: #141517;
--color-elevated-hover: #1b1d20;
--color-border: #1f2022;
--color-border-subtle: rgba(255, 255, 255, 0.06);
--color-border-standard: rgba(255, 255, 255, 0.1);
--color-text-primary: #f7f8f8;
--color-text-secondary: #d0d6e0;
--color-text-tertiary: #8a8f98;
--color-text-quaternary: #62666d;
--color-brand: #5e6ad2;
--color-accent: #7170ff;
--color-accent-hover: #828fff;
}
html {
scroll-behavior: smooth;
color-scheme: dark;
}
body {
background: var(--color-background);
color: var(--color-text-secondary);
font-family: var(--font-sans);
font-feature-settings: "cv01", "ss03";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: #23252a;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #383b42;
}
/* Glassmorphism helpers */
.glass-panel {
background: rgba(15, 16, 17, 0.75);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-nav {
background: rgba(8, 9, 10, 0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
/* Prose markdown typography */
.prose table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
margin: 1.75rem 0;
font-size: 0.875rem;
border-radius: 0.5rem;
overflow: hidden;
border: 1px solid #1f2022;
}
.prose th,
.prose td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid #1f2022;
}
.prose th {
background: #141517;
color: #f7f8f8;
font-weight: 600;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.prose td {
color: #d0d6e0;
}
.prose tbody tr:last-child td {
border-bottom: none;
}
.prose tbody tr:hover {
background: rgba(255, 255, 255, 0.02);
}
.prose pre {
background: #0d0e0f !important;
border: 1px solid #1f2022;
border-radius: 0.625rem;
padding: 1rem 1.25rem;
overflow-x: auto;
position: relative;
}
.prose code {
font-family: var(--font-mono);
font-size: 0.85em;
color: #e2e4e7;
}
.prose :not(pre) > code {
background: #141517;
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 0.15rem 0.35rem;
border-radius: 0.25rem;
font-weight: 400;
}
.prose :not(pre) > code::before,
.prose :not(pre) > code::after {
content: none !important;
}
.prose blockquote {
border-left: 3px solid #5e6ad2;
background: rgba(94, 106, 210, 0.05);
border-radius: 0 0.375rem 0.375rem 0;
margin: 1.5em 0;
padding: 0.75em 1.25em;
font-style: normal;
color: #a0a4a8;
}
.prose hr {
border-color: #1f2022;
margin: 2.5rem 0;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.2s ease-out forwards;
}