diff --git a/_includes/nav.html b/_includes/nav.html index 40f0b43..c8c99c5 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -8,3 +8,7 @@
  • Tags
  • + diff --git a/_layouts/default.html b/_layouts/default.html index 97aab8b..19d20d4 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -150,6 +150,74 @@ .category-section { margin-bottom: var(--space-xl); } + /* Search */ + .site-search { + position: relative; + margin-left: auto; + } + + #search-input { + font-size: 0.9rem; + padding: var(--space-xs) var(--space-sm); + border: 1px solid var(--color-border); + border-radius: var(--radius); + background: var(--color-bg); + color: var(--color-text); + width: 200px; + transition: width 0.2s; + } + #search-input:focus { + outline: none; + border-color: var(--color-accent); + width: 260px; + } + + .search-results { + position: absolute; + top: 100%; + right: 0; + width: 320px; + max-height: 400px; + overflow-y: auto; + background: var(--color-surface); + border: 1px solid var(--color-border); + border-radius: var(--radius); + box-shadow: 0 4px 12px rgba(0,0,0,0.1); + z-index: 100; + margin-top: var(--space-xs); + } + + .search-results a { + display: block; + padding: var(--space-sm) var(--space-md); + border-bottom: 1px solid var(--color-border); + color: var(--color-text); + font-size: 0.9rem; + } + .search-results a:last-child { border-bottom: none; } + .search-results a:hover { background: var(--color-bg); text-decoration: none; } + .search-results .result-collection { + font-size: 0.75rem; + color: var(--color-muted); + text-transform: capitalize; + } + .search-results .no-results { + padding: var(--space-sm) var(--space-md); + color: var(--color-muted); + font-size: 0.9rem; + } + + /* Wrap gallery */ + .wrap-gallery img { + max-width: 100%; + height: auto; + border-radius: var(--radius); + margin-bottom: var(--space-md); + } + + /* GLightbox overrides for theme compatibility */ + .glightbox-clean .gslide-description { background: var(--color-surface); color: var(--color-text); } + .site-footer { border-top: 1px solid var(--color-border); padding: var(--space-lg); @@ -164,6 +232,7 @@ .card-grid { grid-template-columns: 1fr; } } +