Skip to content
Draft
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
170 changes: 170 additions & 0 deletions doc/_static/css/fuse-search.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
/* =========================================================================
Fuse.js search page styles
========================================================================= */

/* Search input row -------------------------------------------------------- */

.fuse-search-input-group {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.25rem;
}

#fuse-search-input {
flex: 1 1 auto;
max-width: 42rem;
padding: 0.55rem 0.85rem;
font-size: 1rem;
border: 1px solid var(--pst-color-border);
border-radius: 4px;
background: var(--pst-color-surface);
color: var(--pst-color-text-base);
outline: none;
transition: border-color 0.15s;
}

#fuse-search-input:focus {
border-color: var(--pst-color-primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--pst-color-primary) 20%, transparent);
}

#fuse-search-count {
font-size: 0.85rem;
color: var(--pst-color-text-muted);
white-space: nowrap;
}

/* Type filter tabs -------------------------------------------------------- */

.fuse-search-filters {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 1.5rem;
}

.fuse-filter-label {
font-size: 0.85rem;
color: var(--pst-color-text-muted);
margin-right: 0.25rem;
}

.fuse-filter-btn {
cursor: pointer;
padding: 0.25rem 0.75rem;
border-radius: 20px;
border: 1px solid var(--pst-color-border);
background: var(--pst-color-surface);
color: var(--pst-color-text-base);
font-size: 0.85rem;
user-select: none;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fuse-filter-btn.active,
.fuse-filter-btn:hover {
background: var(--pst-color-primary);
border-color: var(--pst-color-primary);
color: #fff;
}

/* Results list ------------------------------------------------------------ */

.fuse-results-list {
list-style: none;
padding: 0;
margin: 0;
}

.fuse-result-item {
padding: 0.85rem 0;
border-bottom: 1px solid var(--pst-color-border-muted);
}

.fuse-result-item:last-child {
border-bottom: none;
}

.fuse-result-link {
display: flex;
align-items: baseline;
gap: 0.5rem;
text-decoration: none;
font-weight: 600;
color: var(--pst-color-primary);
}

.fuse-result-link:hover .fuse-result-title {
text-decoration: underline;
}

.fuse-result-breadcrumb {
display: block;
font-size: 0.8rem;
font-weight: 400;
color: var(--pst-color-text-muted);
margin-top: 0.15rem;
}

.fuse-result-item > p {
margin: 0.3rem 0 0 0;
font-size: 0.9rem;
color: var(--pst-color-text-muted);
line-height: 1.5;
}

/* Type badges */

.fuse-badge {
display: inline-block;
padding: 0.1em 0.55em;
border-radius: 4px;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
white-space: nowrap;
}

.fuse-badge--api {
background: color-mix(in srgb, var(--pst-color-secondary) 15%, transparent);
color: var(--pst-color-secondary);
border: 1px solid color-mix(in srgb, var(--pst-color-secondary) 30%, transparent);
}

.fuse-badge--guide {
background: color-mix(in srgb, var(--pst-color-success) 12%, transparent);
color: var(--pst-color-success);
border: 1px solid color-mix(in srgb, var(--pst-color-success) 30%, transparent);
}

.fuse-badge--section {
background: color-mix(in srgb, var(--pst-color-info) 12%, transparent);
color: var(--pst-color-info);
border: 1px solid color-mix(in srgb, var(--pst-color-info) 30%, transparent);
}

.fuse-badge--example {
background: color-mix(in srgb, var(--pst-color-warning) 18%, transparent);
color: var(--pst-color-warning);
border: 1px solid color-mix(in srgb, var(--pst-color-warning) 35%, transparent);
}

/* Highlight matches */

mark {
background: color-mix(in srgb, var(--pst-color-warning) 35%, transparent);
color: inherit;
border-radius: 2px;
padding: 0 0.1em;
}

/* Misc */

.fuse-no-results,
.fuse-loading {
color: var(--pst-color-text-muted);
margin-top: 1rem;
}
Loading
Loading