Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7640c8b
fix: 検索結果のハイライトテキストをクリック可能にする
ogwata Jan 21, 2026
15986b4
fix: 検索結果のハイライトをクリック可能にし、ホバー時の黒いオブジェクトを除去
ogwata Jan 21, 2026
38dccc0
fix: グローバルヘッダーを画面上部に固定し、検索結果のz-indexを調整
ogwata Jan 21, 2026
2ad9366
fix: improve search UI overlay and mobile menu z-index
ogwata Jan 21, 2026
3259b4e
fix: add responsive breakpoints for header menu at intermediate widths
ogwata Jan 22, 2026
8afc204
refactor: address code review feedback
ogwata Jan 22, 2026
dd04034
fix: address all code review feedback and responsive issues
ogwata Jan 22, 2026
507b0b4
fix: address follow-up code review feedback
ogwata Jan 22, 2026
5384cf6
fix: resolve body.style.overflow conflicts between search and mobile …
ogwata Jan 22, 2026
d6bd7bf
feat: replace header text logo with SVG image and add link to officia…
ogwata Jan 22, 2026
84b883b
fix: 検索機能のUI/UX改善
ogwata Jan 22, 2026
e7ec7ca
fix: address Copilot review comments
ogwata Jan 22, 2026
820f0f4
fix: improve search box UI and header navigation
ogwata Jan 23, 2026
984070c
fix: 検索アイコンの位置を垂直中央揃えに修正
ogwata Jan 23, 2026
e244eda
fix: GitHubアイコンの高さをVivliostyleアイコンと揃える(24px)
ogwata Jan 23, 2026
e487048
fix: ThemeToggleが表示されるようmin-widthを設定
ogwata Jan 23, 2026
d811e46
fix: Firefox/Safari互換性のためThemeToggleスタイルを強化
ogwata Jan 23, 2026
2efdcd8
fix: header-actionsのflex設定を修正してThemeToggleが圧縮されないように
ogwata Jan 23, 2026
7158f7e
fix: モバイルビューでのThemeToggle表示とorder設定を修正
ogwata Jan 23, 2026
89fd52f
WIP: ThemeToggle表示問題の修正試行(未解決)
ogwata Jan 23, 2026
d19c3d2
Fix layout issues: search input overlap, missing icons on mobile, and…
ogwata Jan 24, 2026
5f63114
Fix search box placeholder overlap and mobile menu icons
ogwata Jan 24, 2026
7c2bbf1
fix: address review comments on search box and global styles
ogwata Jan 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@




205 changes: 203 additions & 2 deletions public/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
--content-max-width: 1200px;
--sidebar-width: 280px;
--prose-max-width: 65ch;
--header-height: 80px;
}

/* ダークモード - システム設定 */
Expand Down Expand Up @@ -124,6 +125,206 @@
--color-border-dark: #cccccc;
}

/* ==========================================================================
グローバルヘッダー固定 - すべてのページで適用
========================================================================== */

.header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
z-index: 1000 !important;
width: 100% !important;
background: var(--color-bg-header) !important;
border-bottom: 1px solid var(--color-border) !important;
}

/* ==========================================================================
Pagefind 検索結果のオーバーレイ表示 - 重要な修正
========================================================================== */

/* 検索コンテナを相対配置の基準に */
.search-container {
position: relative !important;
}

/* Pagefind UIコンテナ */
.pagefind-ui {
position: relative !important;
}

/* 検索結果を固定オーバーレイとして表示(ドキュメントフローから外す) */
.pagefind-ui__drawer {
position: fixed !important;
top: var(--header-height) !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100% !important;
background: var(--color-bg, #fff) !important;
z-index: 900 !important;
overflow: visible !important;
Comment thread
ogwata marked this conversation as resolved.
padding: 0 !important;
height: calc(100vh - var(--header-height)) !important;
display: flex !important;
flex-direction: column !important;
box-sizing: border-box !important;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .pagefind-ui__drawer {
background: var(--color-bg, #1a1a1a) !important;
}
}

:root[data-theme="dark"] .pagefind-ui__drawer {
background: var(--color-bg, #1a1a1a) !important;
}

/* 検索フォームは通常の配置(ヘッダーより下) */
.pagefind-ui__form {
position: relative !important;
z-index: 999 !important;
flex-shrink: 0 !important;
padding: 0 !important; /* パディングを削除して検索ボックスの幅を確保 */
}

/* 検索ボックスの入力フィールド調整 */
.pagefind-ui__search-input {
padding-left: 3.2rem !important; /* アイコン分のスペースを確保 (虫眼鏡との重なりを防止) */
height: 40px !important; /* 高さを明示的に指定して安定させる */
}

/* フォームの擬似要素(虫眼鏡アイコン)の位置調整 */
.pagefind-ui__form::before {
top: 50% !important;
transform: translateY(-50%) !important;
left: 12px !important;
z-index: 1001 !important;
Comment thread
ogwata marked this conversation as resolved.
opacity: 0.5 !important;
}

/* 検索結果エリア - スクロール可能 */
.pagefind-ui__results-area {
max-width: 100% !important;
margin: 0 !important;
width: 100% !important;
flex: 1 1 auto !important;
min-height: 0 !important;
overflow-y: auto !important;
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch !important;
overscroll-behavior: contain !important;
padding: 0 2rem 2rem 2rem !important;
box-sizing: border-box !important;
}

/* 検索結果の内容を中央配置 */
.pagefind-ui__results {
max-width: 900px !important;
margin: 0 auto !important;
list-style: none !important;
padding: 0 !important;
}

/* 検索アクティブ時のbodyスタイル - 背景スクロールを防ぐ */
body.search-active {
overflow: hidden !important;
}

/* ==========================================================================
サイドバー(モバイルメニュー)のz-index修正
========================================================================== */

/* サイドバーのz-index(モバイル時にヘッダーより上) */
.sidebar {
z-index: 950;
}

.sidebar.active {
z-index: 1100;
}

/* サイドバーオーバーレイ */
.sidebar-overlay {
z-index: 940;
}

.sidebar-overlay.active {
z-index: 1090;
}

/* サイドバー内のボタンとインタラクティブ要素のリセット防止(アコーディオンボタンは除く) */
.sidebar .theme-toggle,
.sidebar .sidebar-close,
.sidebar-header button:not(.toc-toggle) {
cursor: pointer !important;
pointer-events: auto !important;
}

.sidebar-close {
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: none !important;
border: none !important;
padding: 0.5rem !important;
cursor: pointer !important;
color: var(--color-text) !important;
border-radius: 4px !important;
transition: background-color 0.2s !important;
}

.sidebar-close:hover {
background-color: var(--color-bg-secondary) !important;
}

.sidebar-close svg {
display: block !important;
width: 24px !important;
height: 24px !important;
}

/* サイドバー内のテーマトグルと言語スイッチャー */
.sidebar-mobile-controls .theme-toggle,
.sidebar-mobile-controls .lang-switcher a,
.sidebar-mobile-controls .language-switcher a {
cursor: pointer !important;
pointer-events: auto !important;
}

.sidebar-mobile-controls .theme-toggle {
display: flex !important;
align-items: center !important;
justify-content: center !important;
background: none !important;
border: none !important;
padding: 0.5rem !important;
cursor: pointer !important;
color: var(--color-text) !important;
border-radius: 4px !important;
transition: background-color 0.2s !important;
}

.sidebar-mobile-controls .theme-toggle:hover {
background-color: var(--color-bg-secondary) !important;
}

/* 言語リンク */
.sidebar-mobile-controls a,
.lang-switcher-mobile a {
cursor: pointer !important;
pointer-events: auto !important;
text-decoration: none !important;
}

.sidebar-mobile-controls a:hover,
.lang-switcher-mobile a:hover {
text-decoration: underline !important;
}

/* ==========================================================================
Base Styles - リセットと基本スタイル
========================================================================== */
Expand All @@ -150,7 +351,7 @@ body {

/* アンカーリンクでのスクロール時、ヘッダー分のオフセットを確保 */
h1, h2, h3, h4, h5, h6 {
scroll-margin-top: 5rem;
scroll-margin-top: 7rem;
}

/* ==========================================================================
Expand All @@ -172,7 +373,7 @@ h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: var(--line-height-tight);
color: var(--color-text);
scroll-margin-top: 5rem; /* ヘッダー分のオフセット */
scroll-margin-top: 7rem; /* ヘッダー分のオフセット */
}

.prose h1 {
Expand Down
Binary file added public/vivliostyle-docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,867 changes: 5,867 additions & 0 deletions public/vivliostyle-docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/vivliostyle-logo72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/LanguageSwitcher.astro
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const otherLangUrl = `/${otherLang}${normalizedPath}`;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
white-space: nowrap; /* 改行を防止 */
}

.current-lang {
Expand Down
Loading