zelk12's picture
Upload 127 files
b8f62c1 verified
Raw History Blame Contribute Delete
3.31 kB
@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@layer base {
html,
body {
@apply bg-stone-100 text-stone-900 dark:bg-stone-950 dark:text-stone-100 antialiased;
}
body {
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
code,
pre,
kbd {
font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
cursor: pointer;
}
}
/* Reserve dedicated space for scrollbars so they never overlap list items, buttons, or borders */
@supports (scrollbar-gutter: stable) {
[class*="overflow-y-auto"],
[class*="overflow-auto"] {
scrollbar-gutter: stable;
}
}
/* Consistent thin scrollbars */
* {
scrollbar-width: thin;
scrollbar-color: rgba(168, 162, 158, 0.45) transparent;
}
.dark * {
scrollbar-color: rgba(120, 113, 108, 0.5) transparent;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(168, 162, 158, 0.42);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(120, 113, 108, 0.7);
}
.dark ::-webkit-scrollbar-thumb {
background: rgba(120, 113, 108, 0.48);
}
.dark ::-webkit-scrollbar-thumb:hover {
background: rgba(168, 162, 158, 0.72);
}
/* KaTeX Math Rendering Adjustments */
.katex {
font-size: 1.04em;
}
.katex-display {
margin: 0.75rem 0;
padding: 0.35rem 0.25rem;
overflow-x: auto;
overflow-y: hidden;
max-width: 100%;
}
/* Highlight.js Token Palette for Dark CodeBlock (stone-950) */
.hljs {
color: #e7e5e4;
background: transparent;
}
.hljs-comment,
.hljs-quote {
color: #a8a29e;
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: #f59e0b;
font-weight: 600;
}
.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: #c4b5fd;
}
.hljs-string,
.hljs-doctag {
color: #6ee7b7;
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: #38bdf8;
font-weight: 600;
}
.hljs-type,
.hljs-class .hljs-title,
.hljs-built_in {
color: #fcd34d;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: #fb7185;
}
.hljs-regexp,
.hljs-link {
color: #5eead4;
}
.hljs-symbol,
.hljs-bullet {
color: #fbbf24;
}
.hljs-meta,
.hljs-selector-class {
color: #93c5fd;
}
.hljs-addition {
color: #4ade80;
background-color: rgba(34, 197, 94, 0.12);
}
.hljs-deletion {
color: #fb7185;
background-color: rgba(244, 63, 94, 0.12);
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: 700;
}
/* Markdown Preview Cursor Tracking (active block highlight & caret pin) */
.md-active-block {
background-color: rgba(245, 158, 11, 0.08);
box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.34);
border-radius: 0.5rem;
}
.dark .md-active-block {
background-color: rgba(245, 158, 11, 0.11);
box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.34);
}
@keyframes mdCaretPulse {
0%, 49% {
opacity: 1;
}
50%, 100% {
opacity: 0.25;
}
}
.md-caret-pin {
animation: mdCaretPulse 1.05s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
.md-caret-pin {
animation: none;
opacity: 1;
}
}