Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 19 additions & 14 deletions docs/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -573,10 +573,10 @@ body {
align-items: center;
gap: 0;
width: auto;
height: 40px; /* proportional to the 32px logo */
height: 36px; /* a little shorter; proportional to the 32px logo */
flex: 1;
margin-left: 185px; /* clear the logo (~169px + gap) */
margin-right: 284px; /* clear the nav (~268px + gap) */
margin-left: 215px; /* clear the logo (+ extra → a little narrower) */
margin-right: 314px; /* clear the nav (+ extra → a little narrower) */
padding: 0 4px 0 0;
background: var(--color-bg-tertiary);
border: 1px solid var(--color-border);
Expand All @@ -594,13 +594,13 @@ body {
min-width: 0;
}
.floating-search svg {
left: 16px;
width: 16px;
height: 16px;
left: 14px;
width: 15px;
height: 15px;
}
.floating-search input {
height: 36px;
padding: 0 10px 0 42px;
height: 32px;
padding: 0 10px 0 38px;
background: transparent;
border: none;
border-radius: 0;
Expand All @@ -622,14 +622,14 @@ body {
content: "";
flex: 0 0 auto;
width: 1px;
height: 22px;
height: 20px;
background: var(--color-border);
margin: 0 6px;
}

/* Icon-only filter buttons — no text labels, no chevrons, round hover */
.filter-btn {
padding: 7px;
padding: 6px;
gap: 0;
border: none;
border-radius: 50%;
Expand All @@ -646,19 +646,24 @@ body {
background: var(--color-primary-muted);
}

/* View toggle: plain round icons, no segmented container */
/* View toggle: a single icon that shows the OTHER view (click to switch).
Hiding the active button leaves only the target-view icon visible, so it
toggles grid ⇄ list one icon at a time. */
.view-toggle {
background: transparent;
border: none;
padding: 0;
gap: 1px;
gap: 0;
border-radius: 0;
}
.view-btn {
width: 30px;
height: 30px;
width: 28px;
height: 28px;
border-radius: 50%;
}
.view-btn.active {
display: none;
}
}

/* Guides section */
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 class="demo-heading">See it in action</h2>

<div class="filter-dropdown" id="filter-category">
<button class="filter-btn" title="System type">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect></svg>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>
<span class="filter-label">System Type</span>
<svg class="chevron" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>
</button>
Expand Down Expand Up @@ -355,11 +355,11 @@ <h3>{{ p0.platform }}</h3>
if (sortDirection === 'az') {
sortDirection = 'za';
sortBtn.querySelector('svg:first-child').style.transform = 'scaleY(-1)';
sortBtn.childNodes[sortBtn.childNodes.length - 1].textContent = 'Z-A';
sortBtn.querySelector('.filter-label').textContent = 'Z-A';
} else {
sortDirection = 'az';
sortBtn.querySelector('svg:first-child').style.transform = '';
sortBtn.childNodes[sortBtn.childNodes.length - 1].textContent = 'A-Z';
sortBtn.querySelector('.filter-label').textContent = 'A-Z';
}
sortBtn.classList.add('filter-active');
sortGuides();
Expand Down
Loading