Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
177 changes: 177 additions & 0 deletions public/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,183 @@
--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: 70px !important;
Comment thread
ogwata marked this conversation as resolved.
Outdated
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: var(--color-bg, #fff) !important;
z-index: 900 !important;
overflow-y: auto !important;
padding: 1rem 2rem !important;
max-height: calc(100vh - 70px) !important;
Comment thread
ogwata marked this conversation as resolved.
Outdated
}

/* ダークモード対応 */
@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: 1001 !important;
Comment thread
ogwata marked this conversation as resolved.
}

/* 検索結果エリア */
.pagefind-ui__results-area {
max-width: 900px !important;
margin: 0 auto !important;
}

/* 結果リスト */
.pagefind-ui__results {
list-style: none !important;
padding: 0 !important;
margin: 0 !important;
}

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

/* 検索アクティブ時、メインコンテンツを非表示にしてスクロールを防ぐ */
body.search-active .main-container,
body.search-active .sidebar-overlay {
pointer-events: none;
}

/* ==========================================================================
サイドバー(モバイルメニュー)の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 button,
.sidebar .theme-toggle,
.sidebar .sidebar-close,
.sidebar-header button {
all: revert !important;
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 Down
Loading