Spaces:
Running
Running
File size: 3,311 Bytes
8118736 e222927 8118736 e222927 497ff7d e222927 8118736 497ff7d 8118736 497ff7d 8118736 497ff7d 8118736 497ff7d 8118736 e222927 497ff7d e222927 497ff7d e222927 c65c22e b8f62c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | @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;
}
}
|