diff --git a/index.html b/index.html index 803413f..2c39241 100644 --- a/index.html +++ b/index.html @@ -90,50 +90,25 @@ } .veil-settings-btn:active { background: var(--surface2); } - /* ── Search ── */ - .search-wrap { - padding: 8px 16px 4px; + /* ── Toolbar (カテゴリ + アクションボタン統合行) ── */ + .toolbar-wrap { position: sticky; top: 0; - z-index: 10; + z-index: 9; background: var(--bg); } - .search-wrap-inner { position: relative; } - .search-icon { - position: absolute; - left: 12px; - top: 50%; - transform: translateY(-50%); - color: var(--text3); - pointer-events: none; + .toolbar { display: flex; + align-items: center; + gap: 6px; + padding: 6px 16px; } - .search-input { - width: 100%; - box-sizing: border-box; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius); - color: var(--text); - font-size: 14px; - padding: 9px 14px 9px 38px; - outline: none; - font-family: inherit; - transition: border-color 0.15s; - } - .search-input:focus { border-color: var(--accent); } - - /* ── Category tabs ── */ .cat-scroll { display: flex; gap: 6px; - padding: 8px 16px; overflow-x: auto; scrollbar-width: none; - position: sticky; - top: 52px; - z-index: 9; - background: var(--bg); + flex: 1; } .cat-scroll::-webkit-scrollbar { display: none; } .cat-btn { @@ -155,23 +130,57 @@ border-color: var(--accent); font-weight: 600; } + .toolbar-actions { + display: flex; + align-items: center; + gap: 6px; + flex-shrink: 0; + } + .toolbar-search-btn { + width: 30px; + height: 30px; + border-radius: 50%; + border: 1px solid var(--border); + background: transparent; + color: var(--text2); + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + flex-shrink: 0; + transition: color 0.12s, border-color 0.12s; + } + .toolbar-search-btn.active { + color: var(--accent); + border-color: var(--accent); + } - /* ── Edit bar ── */ - .edit-bar { - display: flex; - align-items: center; - justify-content: space-between; - padding: 8px 16px 0; - min-height: 36px; - gap: 8px; + /* ── Search expand (折りたたみ) ── */ + .search-expand { + overflow: hidden; + max-height: 0; + padding: 0 16px; + transition: max-height 0.2s cubic-bezier(0.2, 0.9, 0.2, 1), + padding 0.2s cubic-bezier(0.2, 0.9, 0.2, 1); } - .edit-bar-left { - display: flex; - align-items: center; - gap: 8px; - flex: 1; + .search-expand.open { + max-height: 56px; + padding: 4px 16px 8px; } - .edit-bar-hint { font-size: 11px; color: var(--text3); } + .search-input { + width: 100%; + box-sizing: border-box; + background: var(--surface); + border: 1px solid var(--border); + border-radius: var(--radius); + color: var(--text); + font-size: 14px; + padding: 9px 14px; + outline: none; + font-family: inherit; + transition: border-color 0.15s; + } + .search-input:focus { border-color: var(--accent); } .edit-toggle-btn { font-size: 12px; padding: 5px 12px; @@ -749,29 +758,26 @@ -