278 lines
6.4 KiB
CSS
278 lines
6.4 KiB
CSS
@import "tailwindcss";
|
|
@config "../tailwind.config.js";
|
|
|
|
:root {
|
|
--app-bg: #f5f1e8;
|
|
--app-bg-strong: #ebe4d7;
|
|
--surface: #ffffff;
|
|
--surface-muted: #f6efe2;
|
|
--surface-raised: #fbf8f1;
|
|
--surface-sunken: #ece5d6;
|
|
--border: #e2d7c3;
|
|
--border-soft: #e7dcc9;
|
|
--border-strong: #cdbba0;
|
|
--text-main: #1c1917;
|
|
--text-muted: #78716c;
|
|
--foreground: #1c1917;
|
|
--muted: #78716c;
|
|
--brand-soft: #ccfbf1;
|
|
--accent-soft: #ffedd5;
|
|
--shadow-panel: 0 22px 60px rgba(79, 62, 35, 0.08), 0 6px 18px rgba(79, 62, 35, 0.06);
|
|
color-scheme: light;
|
|
}
|
|
|
|
.dark {
|
|
--app-bg: #090d16;
|
|
--app-bg-strong: #0f141f;
|
|
--surface: #111726;
|
|
--surface-muted: #171e30;
|
|
--surface-raised: #182033;
|
|
--surface-sunken: #0c111c;
|
|
--border: #1e293b;
|
|
--border-soft: #1e293b;
|
|
--border-strong: #334155;
|
|
--text-main: #f8fafc;
|
|
--text-muted: #94a3b8;
|
|
--foreground: #f8fafc;
|
|
--muted: #94a3b8;
|
|
--brand-soft: rgba(15, 118, 110, 0.2);
|
|
--accent-soft: rgba(217, 119, 6, 0.2);
|
|
--shadow-panel: 0 22px 60px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.25);
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@theme {
|
|
--font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
|
|
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
|
|
--color-app-bg: var(--app-bg);
|
|
--color-app-bg-strong: var(--app-bg-strong);
|
|
--color-surface: var(--surface);
|
|
--color-surface-muted: var(--surface-muted);
|
|
--color-surface-raised: var(--surface-raised);
|
|
--color-surface-sunken: var(--surface-sunken);
|
|
--color-border: var(--border);
|
|
--color-border-soft: var(--border-soft);
|
|
--color-border-strong: var(--border-strong);
|
|
--color-text-main: var(--text-main);
|
|
--color-text-muted: var(--text-muted);
|
|
--color-foreground: var(--foreground);
|
|
--color-muted: var(--muted);
|
|
|
|
--color-brand: #0f766e;
|
|
--color-brand-hover: #115e59;
|
|
--color-brand-strong: #115e59;
|
|
--color-brand-soft: var(--brand-soft);
|
|
|
|
--color-accent: #d97706;
|
|
--color-accent-hover: #b45309;
|
|
--color-accent-soft: var(--accent-soft);
|
|
|
|
--color-success: #10b981;
|
|
--color-success-soft: rgba(16, 185, 129, 0.15);
|
|
--color-warning: #f59e0b;
|
|
--color-warning-soft: rgba(245, 158, 11, 0.15);
|
|
--color-danger: #ef4444;
|
|
--color-danger-soft: rgba(239, 68, 68, 0.15);
|
|
|
|
--shadow-panel: var(--shadow-panel);
|
|
}
|
|
|
|
:root {
|
|
color: var(--color-foreground);
|
|
background-color: var(--color-app-bg);
|
|
font-family: var(--font-sans);
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
html.dark body {
|
|
background:
|
|
radial-gradient(circle at top left, rgba(217, 119, 6, 0.08), transparent 28%),
|
|
radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 24%),
|
|
linear-gradient(180deg, var(--app-bg) 0%, #060910 100%);
|
|
}
|
|
|
|
html:not(.dark) body {
|
|
background:
|
|
radial-gradient(circle at top left, rgba(217, 119, 6, 0.08), transparent 28%),
|
|
radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
|
|
linear-gradient(180deg, var(--app-bg) 0%, #faf7f0 100%);
|
|
}
|
|
|
|
@keyframes jiggle-even {
|
|
0% { transform: rotate(-0.6deg) translate(-0.5px, -0.5px); }
|
|
50% { transform: rotate(0.6deg) translate(0.5px, 0.5px); }
|
|
100% { transform: rotate(-0.6deg) translate(-0.5px, -0.5px); }
|
|
}
|
|
|
|
@keyframes jiggle-odd {
|
|
0% { transform: rotate(0.6deg) translate(0.5px, 0.5px); }
|
|
50% { transform: rotate(-0.6deg) translate(-0.5px, -0.5px); }
|
|
100% { transform: rotate(0.6deg) translate(0.5px, 0.5px); }
|
|
}
|
|
|
|
.jiggle-even {
|
|
animation: jiggle-even 0.26s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.jiggle-odd {
|
|
animation: jiggle-odd 0.3s ease-in-out infinite alternate;
|
|
}
|
|
|
|
/* Custom sleek scrollbar */
|
|
.custom-scrollbar {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
|
|
}
|
|
|
|
.custom-scrollbar::-webkit-scrollbar {
|
|
width: 5px;
|
|
height: 5px;
|
|
}
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-thumb {
|
|
background: rgba(148, 163, 184, 0.3);
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(148, 163, 184, 0.5);
|
|
}
|
|
|
|
/* Notepad contentEditable Editor Styles */
|
|
.notepad-editor {
|
|
outline: none;
|
|
word-break: break-word;
|
|
white-space: pre-wrap;
|
|
line-height: 1.65;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.notepad-editor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.notepad-editor[data-empty="true"]::before {
|
|
content: attr(data-placeholder);
|
|
color: var(--color-text-muted);
|
|
pointer-events: none;
|
|
position: absolute;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.notepad-editor h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 800;
|
|
line-height: 1.25;
|
|
margin-top: 1.25rem;
|
|
margin-bottom: 0.6rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.notepad-editor h2 {
|
|
font-size: 1.4rem;
|
|
font-weight: 700;
|
|
line-height: 1.3;
|
|
margin-top: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.notepad-editor h3 {
|
|
font-size: 1.15rem;
|
|
font-weight: 600;
|
|
line-height: 1.35;
|
|
margin-top: 0.85rem;
|
|
margin-bottom: 0.4rem;
|
|
color: var(--color-foreground);
|
|
}
|
|
|
|
.notepad-editor p {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.notepad-editor ul {
|
|
list-style-type: disc;
|
|
padding-left: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.notepad-editor ol {
|
|
list-style-type: decimal;
|
|
padding-left: 1.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.notepad-editor li {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.notepad-editor blockquote {
|
|
border-left: 4px solid var(--color-brand);
|
|
padding-left: 1rem;
|
|
margin: 0.75rem 0;
|
|
font-style: italic;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.notepad-editor pre {
|
|
background-color: var(--color-surface-sunken);
|
|
border: 1px solid var(--color-border-soft);
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.875rem;
|
|
margin: 0.75rem 0;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.notepad-editor code {
|
|
background-color: var(--color-surface-sunken);
|
|
border: 1px solid var(--color-border-soft);
|
|
padding: 0.15rem 0.35rem;
|
|
border-radius: 0.25rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.notepad-editor hr {
|
|
border: 0;
|
|
border-top: 1px solid var(--color-border-soft);
|
|
margin: 1.25rem 0;
|
|
}
|
|
|
|
.notepad-editor mark {
|
|
background-color: #fef08a;
|
|
color: #1c1917;
|
|
padding: 0.1rem 0.25rem;
|
|
border-radius: 0.2rem;
|
|
}
|
|
|
|
.dark .notepad-editor mark {
|
|
background-color: #a16207;
|
|
color: #fef08a;
|
|
}
|
|
|