mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
added red theme
This commit is contained in:
1 parent
41b40653c7
commit
c1e64eabbd
11 files changed
+979
-355
No files matched your search
+144
-234
@@ -3,7 +3,7 @@
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: var(--bg-surface);
|
||||
background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
|
||||
border-bottom: 1px solid var(--border);
|
||||
backdrop-filter: blur(12px);
|
||||
transition: none;
|
||||
@@ -206,20 +206,21 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #1d4ed8, #2563eb, #60a5fa);
|
||||
color: #ffffff;
|
||||
background: var(--accent);
|
||||
color: var(--text-on-accent);
|
||||
border: 1px solid transparent;
|
||||
box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
|
||||
box-shadow: 0 4px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
color: #ffffff;
|
||||
background: var(--accent-hover);
|
||||
color: var(--text-on-accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
|
||||
box-shadow: 0 8px 30px var(--accent-glow);
|
||||
}
|
||||
.btn-primary:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
|
||||
box-shadow: 0 2px 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
@@ -231,7 +232,7 @@
|
||||
|
||||
.btn-secondary:hover {
|
||||
border-color: var(--accent);
|
||||
background: rgba(96, 165, 250, 0.1);
|
||||
background: var(--accent-soft);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.btn-secondary:active {
|
||||
@@ -285,7 +286,7 @@
|
||||
|
||||
.badge-accent {
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.badge-outline {
|
||||
@@ -313,35 +314,10 @@
|
||||
|
||||
.tag-accent {
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
color: var(--text-on-accent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
/* ===== Cards ===== */
|
||||
.card {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 24px;
|
||||
transition: all var(--transition-normal);
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.card-elevated {
|
||||
background: var(--bg-elevated);
|
||||
border: none;
|
||||
box-shadow: 0 2px 8px var(--shadow);
|
||||
}
|
||||
|
||||
.card-featured {
|
||||
border-top: 4px solid var(--accent);
|
||||
}
|
||||
|
||||
/* ===== Section Heading ===== */
|
||||
.section-heading {
|
||||
margin-bottom: 48px;
|
||||
@@ -377,7 +353,7 @@
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.15);
|
||||
border: 1.5px solid var(--border-strong);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
|
||||
@@ -475,12 +451,12 @@
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
|
||||
0%, 100% { box-shadow: 0 0 0 0 var(--success-glow); }
|
||||
50% { box-shadow: 0 0 0 8px transparent; }
|
||||
}
|
||||
|
||||
.name-highlight {
|
||||
background: linear-gradient(135deg, #1d4ed8, #2563eb, #60a5fa);
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-active));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
@@ -632,14 +608,14 @@
|
||||
width: 100%;
|
||||
}
|
||||
.hero-name {
|
||||
color: #ffffff;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.hero-title,
|
||||
.hero-tagline {
|
||||
color: #e0e0e0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.hero-greeting {
|
||||
color: #e0e0e0;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.hero-photo {
|
||||
display: none;
|
||||
@@ -713,6 +689,7 @@
|
||||
text-decoration: none;
|
||||
transition: all var(--transition-fast);
|
||||
border: none;
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
color: var(--accent);
|
||||
list-style: none;
|
||||
@@ -726,7 +703,12 @@
|
||||
.download-resume-summary:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.download-resume-summary.open {
|
||||
background: var(--accent);
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
|
||||
.download-resume-summary .chevron {
|
||||
@@ -752,10 +734,10 @@
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
width: fit-content;
|
||||
background: var(--bg-surface);
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
z-index: 100;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -771,7 +753,7 @@
|
||||
|
||||
.download-resume-option:hover {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
color: var(--text-on-accent);
|
||||
}
|
||||
/* Shared wrapper for lazer + dropdown positioning context */
|
||||
.download-resume-shared-wrapper {
|
||||
@@ -824,7 +806,7 @@
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
background: var(--bg-surface);
|
||||
background: var(--accent-tint);
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
@@ -905,9 +887,8 @@
|
||||
}
|
||||
|
||||
.expertise-skill {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
padding: 4px 0;
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
}
|
||||
|
||||
.expertise-skill::before {
|
||||
@@ -983,12 +964,14 @@
|
||||
|
||||
.timeline-title {
|
||||
font-size: 20px;
|
||||
line-height: 1.3;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.timeline-company {
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
@@ -1006,8 +989,8 @@
|
||||
}
|
||||
|
||||
.timeline-responsibilities li {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
padding-left: 16px;
|
||||
position: relative;
|
||||
}
|
||||
@@ -1029,17 +1012,29 @@
|
||||
|
||||
.achievement-title {
|
||||
font-size: 18px;
|
||||
line-height: 1.3;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.achievement-context {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.achievement-impact {
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.achievement-metrics {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.achievement-techs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
@@ -1050,7 +1045,7 @@
|
||||
.achievement-metric {
|
||||
display: inline-block;
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
color: var(--text-on-accent);
|
||||
padding: 4px 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 14px;
|
||||
@@ -1112,9 +1107,9 @@
|
||||
}
|
||||
|
||||
.project-card-summary {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-meta);
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.6;
|
||||
line-height: var(--leading-body);
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -1168,12 +1163,14 @@
|
||||
|
||||
.philosophy-card h3 {
|
||||
font-size: 18px;
|
||||
line-height: 1.25;
|
||||
color: var(--accent);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.philosophy-card p {
|
||||
font-size: 14px;
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
}
|
||||
|
||||
.philosophy-keywords {
|
||||
@@ -1208,6 +1205,7 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
padding: 16px 24px;
|
||||
@@ -1228,6 +1226,12 @@
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.contact-link-sub {
|
||||
font-size: var(--text-meta);
|
||||
line-height: 1.5;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.contact-links {
|
||||
flex-direction: column;
|
||||
@@ -1284,179 +1288,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Page Header ===== */
|
||||
.page-header {
|
||||
padding: 80px 0 48px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
/* ===== Breadcrumb ===== */
|
||||
.breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.breadcrumb a {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.breadcrumb a:hover {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ===== Form ===== */
|
||||
.form-group {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.form-input,
|
||||
.form-textarea {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
font-size: 16px;
|
||||
font-family: inherit;
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text-primary);
|
||||
transition: border-color var(--transition-fast);
|
||||
}
|
||||
|
||||
.form-input:focus,
|
||||
.form-textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
|
||||
}
|
||||
|
||||
.form-input::placeholder,
|
||||
.form-textarea::placeholder {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.form-textarea {
|
||||
min-height: 120px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/* ===== Filter bar ===== */
|
||||
.filter-bar {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 32px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.filter-pill {
|
||||
padding: 8px 16px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 100px;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.filter-pill:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.filter-pill.active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* ===== Article Card ===== */
|
||||
.article-card {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 24px;
|
||||
margin-bottom: 16px;
|
||||
transition: all var(--transition-normal);
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.article-card:hover {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 4px 12px var(--shadow);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.article-card h3 {
|
||||
font-size: 20px;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.article-meta {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* ===== Engineering Tabs ===== */
|
||||
.engineering-tabs {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.engineering-tab {
|
||||
padding: 12px 24px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.engineering-tab:hover {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.engineering-tab.active {
|
||||
color: var(--accent);
|
||||
border-bottom-color: var(--accent);
|
||||
}
|
||||
|
||||
/* ===== Content prose ===== */
|
||||
.prose {
|
||||
max-width: var(--max-content);
|
||||
max-width: var(--measure-prose);
|
||||
}
|
||||
|
||||
.prose h2 {
|
||||
@@ -1466,13 +1300,23 @@
|
||||
}
|
||||
|
||||
.prose h3 {
|
||||
margin-top: 32px;
|
||||
margin-bottom: 12px;
|
||||
font-size: 22px;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 0.65em;
|
||||
}
|
||||
|
||||
.prose h4 {
|
||||
margin-top: 1.25em;
|
||||
margin-bottom: 8px;
|
||||
font-size: 16px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.prose p {
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.prose p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.prose ul,
|
||||
@@ -1484,6 +1328,8 @@
|
||||
.prose li {
|
||||
margin-bottom: 8px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-body);
|
||||
line-height: var(--leading-body);
|
||||
}
|
||||
|
||||
.prose blockquote {
|
||||
@@ -1494,6 +1340,70 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Lead paragraph that stands outside a .prose column */
|
||||
.prose-lede {
|
||||
max-width: var(--measure-prose);
|
||||
font-size: var(--text-lede);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
/* Column for blocks that are not prose (grids, tag lists, timelines) */
|
||||
.page-body {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.subheading {
|
||||
margin-top: 32px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.philosophy-quote + .philosophy-quote {
|
||||
margin-top: 48px;
|
||||
}
|
||||
|
||||
.philosophy-quote h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.project-section {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: inset 0 1px 0 var(--inset-highlight);
|
||||
}
|
||||
|
||||
.project-section h4 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.project-section p {
|
||||
font-size: var(--text-meta);
|
||||
line-height: var(--leading-body);
|
||||
}
|
||||
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
font-size: var(--text-meta);
|
||||
font-weight: 500;
|
||||
color: var(--accent);
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.section-cta {
|
||||
display: block;
|
||||
font-size: var(--text-meta);
|
||||
font-weight: 500;
|
||||
color: var(--accent);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.link-label {
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* ===== Back to top ===== */
|
||||
.back-to-top {
|
||||
position: fixed;
|
||||
@@ -1503,7 +1413,7 @@
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
color: var(--text-on-accent);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
|
||||
@@ -95,7 +95,6 @@ export const strings = {
|
||||
},
|
||||
common: {
|
||||
backTo: {en: 'Back to %s', vi: 'Quay lại %s'},
|
||||
skipLink: {en: 'Skip to content', vi: 'Bỏ qua nội dung'},
|
||||
resumeDownload: {en: 'Get Resume', vi: 'Tải CV'},
|
||||
socialAriaLabels: {
|
||||
github: {en: 'View GitHub profile', vi: 'Xem hồ sơ GitHub'},
|
||||
|
||||
+93
-87
@@ -1,27 +1,41 @@
|
||||
/* Theme variables — Dark mode (default) */
|
||||
:root {
|
||||
--bg-primary: #0f1117;
|
||||
--bg-surface: #161922;
|
||||
--bg-elevated: #1c2030;
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: #9aa0a6;
|
||||
--text-muted: #6b7280;
|
||||
--accent: #60a5fa;
|
||||
--accent-hover: #93c5fd;
|
||||
--accent-active: #3b82f6;
|
||||
--border: #2a3040;
|
||||
--shadow: rgba(0, 0, 0, 0.4);
|
||||
--code-bg: #1a1e2e;
|
||||
--success: #34d399;
|
||||
--error: #f87171;
|
||||
--grid-color: rgba(96, 165, 250, 0.1);
|
||||
--bg-primary: #151914;
|
||||
--bg-surface: #202423;
|
||||
--bg-elevated: #272a28;
|
||||
--text-primary: #f6f5f2;
|
||||
--text-secondary: #b7aea0;
|
||||
--text-muted: #8f9a8e;
|
||||
--accent: #f87171;
|
||||
--accent-hover: #fca5a5;
|
||||
--accent-active: #f06060;
|
||||
--text-on-accent: #151914;
|
||||
--accent-soft: rgba(239, 68, 68, 0.12);
|
||||
--accent-tint: #2f1e1a;
|
||||
--accent-glow: rgba(239, 68, 68, 0.3);
|
||||
--border: #2a3028;
|
||||
--border-strong: #3a403a;
|
||||
--shadow: rgba(0, 0, 0, 0.45);
|
||||
--inset-highlight: rgba(255, 255, 255, 0.05);
|
||||
--code-bg: #1a1e1b;
|
||||
--success: #4ade80;
|
||||
--success-glow: rgba(74, 222, 128, 0.35);
|
||||
--error: #fca5a5;
|
||||
--warning: #fbbf24;
|
||||
--grid-color: rgba(246, 245, 242, 0.06);
|
||||
color-scheme: dark;
|
||||
|
||||
--sans: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
--sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
||||
--mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
|
||||
|
||||
--max-wide: 1200px;
|
||||
--max-content: 800px;
|
||||
--max-narrow: 600px;
|
||||
|
||||
--text-body: 18px;
|
||||
--text-lede: 20px;
|
||||
--text-meta: 15px;
|
||||
--leading-body: 1.65;
|
||||
--measure-prose: 600px;
|
||||
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 6px;
|
||||
@@ -43,57 +57,59 @@
|
||||
|
||||
/* Light mode */
|
||||
:root[data-theme='light'] {
|
||||
--bg-primary: #ececee;
|
||||
--bg-surface: #e0e0e3;
|
||||
--bg-primary: #f6f5f2;
|
||||
--bg-surface: #fbfaf8;
|
||||
--bg-elevated: #ffffff;
|
||||
--text-primary: #0a0a0a;
|
||||
--text-secondary: #404040;
|
||||
--text-muted: #808080;
|
||||
--accent: #2563eb;
|
||||
--accent-hover: #3b82f6;
|
||||
--accent-active: #1d4ed8;
|
||||
--border: #e0e0e0;
|
||||
--shadow: rgba(0, 0, 0, 0.1);
|
||||
--code-bg: #f0f0ff;
|
||||
--success: #059669;
|
||||
--error: #dc2626;
|
||||
}
|
||||
|
||||
/* System theme */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme='light']) {
|
||||
--bg-primary: #0f1117;
|
||||
--bg-surface: #161922;
|
||||
--bg-elevated: #1c2030;
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: #9aa0a6;
|
||||
--text-muted: #6b7280;
|
||||
--accent: #60a5fa;
|
||||
--accent-hover: #93c5fd;
|
||||
--accent-active: #3b82f6;
|
||||
--border: #2a3040;
|
||||
--shadow: rgba(0, 0, 0, 0.4);
|
||||
--code-bg: #1a1e2e;
|
||||
--success: #34d399;
|
||||
}
|
||||
--text-primary: #151914;
|
||||
--text-secondary: #6b6d68;
|
||||
--text-muted: #756b62;
|
||||
--accent: #b04138;
|
||||
--accent-hover: #a8382f;
|
||||
--accent-active: #9b3229;
|
||||
--text-on-accent: #ffffff;
|
||||
--accent-soft: rgba(239, 68, 68, 0.1);
|
||||
--accent-tint: #f5e3e1;
|
||||
--accent-glow: rgba(239, 68, 68, 0.22);
|
||||
--border: #e3e1dc;
|
||||
--border-strong: #d9d6d0;
|
||||
--shadow: rgba(21, 25, 20, 0.1);
|
||||
--inset-highlight: rgba(255, 255, 255, 0.9);
|
||||
--code-bg: #efece6;
|
||||
--success: #15803d;
|
||||
--success-glow: rgba(21, 128, 61, 0.35);
|
||||
--error: #991b1b;
|
||||
--warning: #b45309;
|
||||
--grid-color: rgba(21, 25, 20, 0.07);
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
/* Pre-hydration / no-JS: honour an OS light preference */
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme='dark']) {
|
||||
--bg-primary: #ececee;
|
||||
--bg-surface: #e0e0e3;
|
||||
--bg-primary: #f6f5f2;
|
||||
--bg-surface: #fbfaf8;
|
||||
--bg-elevated: #ffffff;
|
||||
--text-primary: #0a0a0a;
|
||||
--text-secondary: #404040;
|
||||
--text-muted: #808080;
|
||||
--accent: #2563eb;
|
||||
--accent-hover: #3b82f6;
|
||||
--accent-active: #1d4ed8;
|
||||
--border: #e0e0e0;
|
||||
--shadow: rgba(0, 0, 0, 0.1);
|
||||
--code-bg: #f0f0ff;
|
||||
--success: #059669;
|
||||
--error: #dc2626;
|
||||
--text-primary: #151914;
|
||||
--text-secondary: #6b6d68;
|
||||
--text-muted: #756b62;
|
||||
--accent: #b04138;
|
||||
--accent-hover: #a8382f;
|
||||
--accent-active: #9b3229;
|
||||
--text-on-accent: #ffffff;
|
||||
--accent-soft: rgba(239, 68, 68, 0.1);
|
||||
--accent-tint: #f5e3e1;
|
||||
--accent-glow: rgba(239, 68, 68, 0.22);
|
||||
--border: #e3e1dc;
|
||||
--border-strong: #d9d6d0;
|
||||
--shadow: rgba(21, 25, 20, 0.1);
|
||||
--inset-highlight: rgba(255, 255, 255, 0.9);
|
||||
--code-bg: #efece6;
|
||||
--success: #15803d;
|
||||
--success-glow: rgba(21, 128, 61, 0.35);
|
||||
--error: #991b1b;
|
||||
--warning: #b45309;
|
||||
--grid-color: rgba(21, 25, 20, 0.07);
|
||||
color-scheme: light;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,12 +156,25 @@ h2 {
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 24px;
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: var(--text-body);
|
||||
line-height: var(--leading-body);
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -201,12 +230,6 @@ pre code {
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.container-narrow {
|
||||
max-width: var(--max-narrow);
|
||||
margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 80px 0;
|
||||
}
|
||||
@@ -261,23 +284,6 @@ pre code {
|
||||
}
|
||||
}
|
||||
|
||||
/* Skip link */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -100%;
|
||||
left: 16px;
|
||||
padding: 8px 16px;
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
border-radius: var(--radius-md);
|
||||
z-index: 10000;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 16px;
|
||||
}
|
||||
|
||||
/* Language toggle button */
|
||||
.lang-toggle {
|
||||
background: transparent;
|
||||
|
||||
Reference in new issue
Block a user