Files
personalsite/app/globals.css
2026-04-03 16:20:51 +03:00

167 lines
4.2 KiB
CSS

@import "tailwindcss";
:root {
--bg: #f5f5f0;
--bg-card: #ffffff;
--bg-hover: #f0f0ea;
--border: #d4d4c8;
--text: #1a1a1a;
--text-muted: #6b6b6b;
--accent: #005f99;
--accent-glow: #0077bb;
--accent-secondary: #6b21a8;
--tag-bg: #e8f4fd;
--tag-text: #005f99;
--sidebar-bg: #fafaf5;
--header-bg: rgba(245, 245, 240, 0.95);
--scrollbar: #c8c8bc;
--code-bg: #1a1a2e;
--code-text: #00d4aa;
}
[data-theme="dark"] {
--bg: #0a0e17;
--bg-card: #0f1520;
--bg-hover: #141c2a;
--border: #1e2d3d;
--text: #e2e8f0;
--text-muted: #64748b;
--accent: #00d4aa;
--accent-glow: #00ffcc;
--accent-secondary: #7c6af7;
--tag-bg: #0d2137;
--tag-text: #00d4aa;
--sidebar-bg: #080c14;
--header-bg: rgba(8, 12, 20, 0.95);
--scrollbar: #1e2d3d;
--code-bg: #0d1117;
--code-text: #00d4aa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
font-size: 17px;
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
background: var(--bg);
color: var(--text);
transition: background 0.2s, color 0.2s;
scroll-behavior: smooth;
}
body { min-height: 100vh; background: var(--bg); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.75; }
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1.25rem;
transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--accent); }
.tag {
display: inline-block;
background: var(--tag-bg);
color: var(--tag-text);
font-size: 0.65rem;
padding: 0.15rem 0.5rem;
border-radius: 3px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.prose {
line-height: 1.8;
font-size: 0.9rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
color: var(--text);
margin-top: 1.75rem;
margin-bottom: 0.75rem;
font-weight: 700;
}
.prose h1 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.prose h2 { font-size: 1.15rem; color: var(--accent); }
.prose h3 { font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.3rem; }
.prose code {
background: var(--code-bg);
color: var(--code-text);
padding: 0.1rem 0.35rem;
border-radius: 3px;
font-size: 0.85em;
font-family: inherit;
}
.prose pre {
background: var(--code-bg);
color: var(--code-text);
padding: 1rem 1.25rem;
border-radius: 6px;
overflow-x: auto;
margin: 1rem 0;
border: 1px solid var(--border);
font-size: 0.82rem;
line-height: 1.6;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
border-left: 3px solid var(--accent);
padding-left: 1rem;
color: var(--text-muted);
margin: 1rem 0;
}
.prose a { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.88rem; }
.prose th { background: var(--bg-card); border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; color: var(--accent); }
.prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; }
.page-title {
font-size: 1.4rem;
font-weight: 700;
color: var(--accent);
display: flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 0.2rem;
}
.page-title::before { content: '//'; opacity: 0.35; font-weight: 400; }
.section-header {
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 0.5rem;
padding-bottom: 0.35rem;
border-bottom: 1px solid var(--border);
}
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-line {
display: flex;
align-items: flex-start;
gap: 0.5rem;
font-size: 0.85rem;
padding: 0.3rem 0;
border-bottom: 1px solid var(--border);
color: var(--text-muted);
}
.terminal-line:last-child { border-bottom: none; }
.terminal-line .prompt { color: var(--accent); flex-shrink: 0; }