2025-12-14 11:30:22 -08:00
|
|
|
/* CSS Variables for theming
|
|
|
|
|
THEME SWITCHER: Default theme is "tan". To change default, edit src/context/ThemeContext.tsx
|
|
|
|
|
Available themes: dark, light, tan, cloud */
|
|
|
|
|
:root[data-theme="dark"] {
|
|
|
|
|
--bg-primary: #111111;
|
|
|
|
|
--bg-secondary: #1a1a1a;
|
|
|
|
|
--bg-hover: #252525;
|
|
|
|
|
--text-primary: #fafafa;
|
|
|
|
|
--text-secondary: #a1a1a1;
|
|
|
|
|
--text-muted: #6b6b6b;
|
|
|
|
|
--border-color: #2a2a2a;
|
|
|
|
|
--accent: #fafafa;
|
|
|
|
|
--accent-hover: #e5e5e5;
|
|
|
|
|
--link-color: #fafafa;
|
|
|
|
|
--link-hover: #a1a1a1;
|
|
|
|
|
--code-bg: #1e1e1e;
|
|
|
|
|
--code-border: #2a2a2a;
|
|
|
|
|
--inline-code-bg: #2a2a2a;
|
|
|
|
|
--blockquote-border: #3a3a3a;
|
|
|
|
|
--blockquote-bg: #1a1a1a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme="light"] {
|
|
|
|
|
--bg-primary: #ffffff;
|
|
|
|
|
--bg-secondary: #fafafa;
|
|
|
|
|
--bg-hover: #f5f5f5;
|
|
|
|
|
--text-primary: #111111;
|
|
|
|
|
--text-secondary: #6b6b6b;
|
|
|
|
|
--text-muted: #a1a1a1;
|
|
|
|
|
--border-color: #e5e5e5;
|
|
|
|
|
--accent: #111111;
|
|
|
|
|
--accent-hover: #333333;
|
|
|
|
|
--link-color: #111111;
|
|
|
|
|
--link-hover: #6b6b6b;
|
|
|
|
|
--code-bg: #f5f5f5;
|
|
|
|
|
--code-border: #e5e5e5;
|
|
|
|
|
--inline-code-bg: #f0f0f0;
|
|
|
|
|
--blockquote-border: #e5e5e5;
|
|
|
|
|
--blockquote-bg: #fafafa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme="tan"] {
|
|
|
|
|
--bg-primary: #faf8f5;
|
|
|
|
|
--bg-secondary: #f5f3f0;
|
|
|
|
|
--bg-hover: #ebe9e6;
|
|
|
|
|
--text-primary: #1a1a1a;
|
|
|
|
|
--text-secondary: #6b6b6b;
|
|
|
|
|
--text-muted: #999999;
|
|
|
|
|
--border-color: #e6e4e1;
|
|
|
|
|
--accent: #8b7355;
|
|
|
|
|
--accent-hover: #735f47;
|
|
|
|
|
--link-color: #8b7355;
|
|
|
|
|
--link-hover: #6b5a45;
|
|
|
|
|
--code-bg: #f0ece4;
|
|
|
|
|
--code-border: #e6e4e1;
|
|
|
|
|
--inline-code-bg: #ebe7df;
|
|
|
|
|
--blockquote-border: #d4cfc6;
|
|
|
|
|
--blockquote-bg: #f5f3f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Cloud theme - soft gray aesthetic */
|
|
|
|
|
:root[data-theme="cloud"] {
|
|
|
|
|
--bg-primary: #f5f5f5;
|
|
|
|
|
--bg-secondary: #ebebeb;
|
|
|
|
|
--bg-hover: #e0e0e0;
|
|
|
|
|
--text-primary: #171717;
|
|
|
|
|
--text-secondary: #525252;
|
|
|
|
|
--text-muted: #737373;
|
|
|
|
|
--border-color: #d4d4d4;
|
|
|
|
|
--accent: #171717;
|
|
|
|
|
--accent-hover: #404040;
|
|
|
|
|
--link-color: #171717;
|
|
|
|
|
--link-hover: #525252;
|
|
|
|
|
--code-bg: #e5e5e5;
|
|
|
|
|
--code-border: #d4d4d4;
|
|
|
|
|
--inline-code-bg: #e0e0e0;
|
|
|
|
|
--blockquote-border: #a3a3a3;
|
|
|
|
|
--blockquote-bg: #ebebeb;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Reset and base styles */
|
|
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
/* FONT SWITCHER: Replace the font-family below to change fonts
|
|
|
|
|
Sans-serif (default): -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif
|
|
|
|
|
Use "New York" for a serif font.
|
|
|
|
|
Serif (New York): "New York", -apple-system-ui-serif, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif */
|
|
|
|
|
font-family:
|
|
|
|
|
"New York",
|
|
|
|
|
-apple-system-ui-serif,
|
|
|
|
|
ui-serif,
|
|
|
|
|
Georgia,
|
|
|
|
|
Cambria,
|
|
|
|
|
"Times New Roman",
|
|
|
|
|
Times,
|
|
|
|
|
serif;
|
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
transition:
|
|
|
|
|
background-color 0.2s ease,
|
|
|
|
|
color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Layout */
|
|
|
|
|
.layout {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
max-width: 680px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 40px 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Top navigation bar */
|
|
|
|
|
.top-nav {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 24px;
|
|
|
|
|
right: 24px;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Page navigation links (About, Projects, Contact, etc.) */
|
|
|
|
|
.page-nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-nav-link {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-nav-link:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-toggle-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-toggle {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
transition:
|
|
|
|
|
color 0.2s ease,
|
|
|
|
|
background-color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-toggle:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Home page styles */
|
|
|
|
|
.home {
|
|
|
|
|
padding-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-header {
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Site logo on homepage */
|
|
|
|
|
.home-logo {
|
|
|
|
|
width: 48px;
|
|
|
|
|
height: 48px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-name {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-intro,
|
|
|
|
|
.home-bio {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured {
|
|
|
|
|
margin: 24px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-intro {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-list {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-list li {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-list li::before {
|
|
|
|
|
content: "•";
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-link {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 3px;
|
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-featured-link:hover {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-cta {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-text-link {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 3px;
|
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-text-link:hover {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.external-icon {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
margin-left: 2px;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-divider {
|
|
|
|
|
border: none;
|
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
|
margin: 40px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post list styles */
|
|
|
|
|
.post-list {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-year-group {
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.year-heading {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.posts {
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-item {
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-link {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
padding: 6px 0;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
transition: opacity 0.2s ease;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-link:hover {
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post list item title (on home page) */
|
|
|
|
|
.post-link .post-title {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-meta {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-read-time {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-date {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
min-width: 80px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Footer styles */
|
|
|
|
|
.home-footer {
|
|
|
|
|
padding: 20px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social-links {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social-link {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.social-link:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post page styles */
|
|
|
|
|
.post-page {
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Copy Page Dropdown Styles */
|
|
|
|
|
.copy-page-dropdown {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-trigger {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-trigger:hover {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
border-color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-chevron {
|
|
|
|
|
transition: transform 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dropdown-chevron.open {
|
|
|
|
|
transform: rotate(180deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-menu {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: calc(100% + 6px);
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 280px;
|
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
animation: dropdownFadeIn 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes dropdownFadeIn {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(-4px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 12px 14px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
text-align: left;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background-color 0.1s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item:hover {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item:not(:last-child) {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-icon {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item:hover .copy-page-icon {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item-title {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.external-arrow {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.copy-page-item-desc {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-button {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
margin-left: -12px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
transition:
|
|
|
|
|
color 0.2s ease,
|
|
|
|
|
background-color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-button:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-article {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-header {
|
|
|
|
|
margin-bottom: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post page article title */
|
|
|
|
|
.post-header .post-title {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-meta-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-meta-separator {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-description {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Blog post content styles */
|
|
|
|
|
.blog-post-content {
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
line-height: 1.8;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-post-content p {
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h1 {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
margin: 48px 0 24px;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h2 {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
margin: 40px 0 20px;
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h3 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
margin: 32px 0 16px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h4 {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
margin: 24px 0 12px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h5 {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
margin: 20px 0 10px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-link {
|
|
|
|
|
color: var(--link-color);
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 3px;
|
|
|
|
|
transition: color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-link:hover {
|
|
|
|
|
color: var(--link-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-ul,
|
|
|
|
|
.blog-ol {
|
|
|
|
|
margin: 0 0 24px 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-li {
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-li::marker {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-blockquote {
|
|
|
|
|
border-left: 3px solid var(--blockquote-border);
|
|
|
|
|
background-color: var(--blockquote-bg);
|
|
|
|
|
padding: 16px 20px;
|
|
|
|
|
margin: 24px 0;
|
|
|
|
|
border-radius: 0 6px 6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-blockquote p {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-hr {
|
|
|
|
|
border: none;
|
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
|
margin: 48px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Code styles */
|
|
|
|
|
.code-block-wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin: 24px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-language {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 8px;
|
|
|
|
|
right: 44px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Copy button for code blocks */
|
|
|
|
|
.code-copy-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 8px;
|
|
|
|
|
right: 8px;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
background: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition:
|
|
|
|
|
opacity 0.15s ease,
|
|
|
|
|
background 0.15s ease,
|
|
|
|
|
color 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-block-wrapper:hover .code-copy-button {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-copy-button:hover {
|
|
|
|
|
background: var(--bg-primary);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
border-color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-copy-button:active {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.inline-code {
|
|
|
|
|
background-color: var(--inline-code-bg);
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font-family:
|
|
|
|
|
SF Mono,
|
|
|
|
|
Monaco,
|
|
|
|
|
Cascadia Code,
|
|
|
|
|
Roboto Mono,
|
|
|
|
|
Consolas,
|
|
|
|
|
monospace;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Image styles */
|
|
|
|
|
.blog-image-wrapper {
|
|
|
|
|
display: block;
|
|
|
|
|
margin: 32px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-image {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-image-caption {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post footer styles */
|
|
|
|
|
.post-footer {
|
|
|
|
|
margin-top: 64px;
|
|
|
|
|
padding-top: 32px;
|
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-share {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.share-button {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.share-button:hover {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-tags {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-tag {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
padding: 4px 12px;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Loading and error states */
|
|
|
|
|
.loading,
|
|
|
|
|
.no-posts,
|
|
|
|
|
.post-loading,
|
|
|
|
|
.post-not-found {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 40px 20px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-not-found h1 {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-not-found p {
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.back-link {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-underline-offset: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Footer section */
|
|
|
|
|
.home-footer {
|
|
|
|
|
margin-top: 4rem;
|
|
|
|
|
padding-top: 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-footer-text {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-footer-text a {
|
|
|
|
|
color: var(--link-color);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-footer-text a:hover {
|
|
|
|
|
color: var(--link-hover);
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Responsive styles */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.main-content {
|
|
|
|
|
padding: 24px 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-nav {
|
|
|
|
|
top: 16px;
|
|
|
|
|
right: 16px;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-nav {
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.page-nav-link {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.home-name {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-link .post-title {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-header .post-title {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-link {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.post-meta {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-post-content {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h1 {
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h2 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h3 {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h4 {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-h5 {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Copy page dropdown mobile */
|
|
|
|
|
.copy-page-menu {
|
|
|
|
|
width: 260px;
|
|
|
|
|
right: -8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dark mode shadow adjustment */
|
|
|
|
|
:root[data-theme="dark"] .copy-page-menu {
|
|
|
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Tan theme shadow adjustment */
|
|
|
|
|
:root[data-theme="tan"] .copy-page-menu {
|
|
|
|
|
box-shadow: 0 4px 16px rgba(139, 115, 85, 0.12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Selection styles */
|
|
|
|
|
::selection {
|
|
|
|
|
background-color: var(--accent);
|
|
|
|
|
color: var(--bg-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Scrollbar styles */
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
|
background: var(--border-color);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background: var(--text-muted);
|
|
|
|
|
}
|
2025-12-14 23:07:11 -08:00
|
|
|
|
|
|
|
|
/* Stats page styles */
|
|
|
|
|
.stats-page {
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-nav {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-header {
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-title {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-subtitle {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
line-height: 1.7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Stats cards grid */
|
|
|
|
|
.stats-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
|
gap: 16px;
|
|
|
|
|
margin-bottom: 48px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
transition: background-color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card:hover {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-icon {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-label {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-value {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-desc {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-15 09:25:42 -08:00
|
|
|
.stat-card-note {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-14 23:07:11 -08:00
|
|
|
/* Stats sections */
|
|
|
|
|
.stats-section {
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-section-title {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Stats list */
|
|
|
|
|
.stats-list {
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 14px 16px;
|
|
|
|
|
transition: background-color 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-item:hover {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-item:not(:last-child) {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-path,
|
|
|
|
|
.stats-list-title {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-type {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-count {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Stats responsive styles */
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
.stats-grid {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.stats-title {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-grid {
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
|
|
|
|
padding: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stat-card-value {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-item {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stats-list-info {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
.stats-grid {
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-17 22:02:52 -08:00
|
|
|
|
|
|
|
|
/* Search button in top nav */
|
|
|
|
|
.search-button {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
transition:
|
|
|
|
|
color 0.2s ease,
|
|
|
|
|
background-color 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-button:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search modal backdrop */
|
|
|
|
|
.search-modal-backdrop {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding-top: 15vh;
|
|
|
|
|
animation: backdropFadeIn 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes backdropFadeIn {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search modal container */
|
|
|
|
|
.search-modal {
|
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 560px;
|
|
|
|
|
max-height: 70vh;
|
|
|
|
|
margin: 0 16px;
|
|
|
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
animation: modalSlideIn 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes modalSlideIn {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(-10px) scale(0.98);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0) scale(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search input wrapper */
|
|
|
|
|
.search-modal-input-wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-icon {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-input {
|
|
|
|
|
flex: 1;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
outline: none;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-input::placeholder {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-close {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 6px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
transition:
|
|
|
|
|
color 0.15s ease,
|
|
|
|
|
background-color 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-close:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search results container */
|
|
|
|
|
.search-modal-results {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
min-height: 120px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search hint (empty state) */
|
|
|
|
|
.search-modal-hint {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 32px 16px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-hint p {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-shortcuts {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-shortcut {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-shortcut kbd {
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Loading and empty states */
|
|
|
|
|
.search-modal-loading,
|
|
|
|
|
.search-modal-empty {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 32px 16px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search results list */
|
|
|
|
|
.search-results-list {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
text-align: left;
|
|
|
|
|
transition: background-color 0.1s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-item:hover,
|
|
|
|
|
.search-result-item.selected {
|
|
|
|
|
background-color: var(--bg-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-icon {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-title {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-snippet {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-type {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.03em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-arrow {
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-item:hover .search-result-arrow,
|
|
|
|
|
.search-result-item.selected .search-result-arrow {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Search modal footer */
|
|
|
|
|
.search-modal-footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
border-top: 1px solid var(--border-color);
|
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-footer-hint {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-footer-hint kbd {
|
|
|
|
|
background-color: var(--bg-primary);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dark theme adjustments for search modal */
|
|
|
|
|
:root[data-theme="dark"] .search-modal-backdrop {
|
|
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root[data-theme="dark"] .search-modal {
|
|
|
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Tan theme adjustments for search modal */
|
|
|
|
|
:root[data-theme="tan"] .search-modal {
|
|
|
|
|
box-shadow: 0 16px 48px rgba(139, 115, 85, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Cloud theme adjustments for search modal */
|
|
|
|
|
:root[data-theme="cloud"] .search-modal {
|
|
|
|
|
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Mobile responsive search modal */
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.search-modal-backdrop {
|
|
|
|
|
padding-top: 10vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal {
|
|
|
|
|
max-height: 80vh;
|
|
|
|
|
margin: 0 12px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-input-wrapper {
|
|
|
|
|
padding: 14px;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-input {
|
|
|
|
|
font-size: 16px; /* Prevent zoom on iOS */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-results {
|
|
|
|
|
padding: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-item {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-title {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-snippet {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-type {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-shortcuts {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal-footer {
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 8px 14px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
|
.search-modal-backdrop {
|
|
|
|
|
padding-top: 5vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-modal {
|
|
|
|
|
max-height: 85vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-result-arrow {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|