Files
xamxam/app/public/assets/css/components/search.css
T
Pontoporeia 148ffe79f0 fix: search bar icon/placeholder overlap caused by specificity conflict
The base input rule uses a high-specificity :not() chain (0,8,1) that
overpowered .header-search-input-wrap input (0,1,1). The base padding
won, so the search input's padding-left (which makes room for the icon)
was overridden. Switched to #site-search-input (1,0,0) to win the
specificity battle.
2026-07-05 15:00:47 +02:00

67 lines
1.4 KiB
CSS

/* ============================================================
SEARCH BAR — Shared header search form
Root class: .header-search-wrap
============================================================ */
/* Public search bar icon (in partials/search-bar.php) */
/* Scoped to forms that are NOT inside .header-search-wrap */
.search-bar-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
fill: var(--accent-primary);
margin-right: var(--space-2xs);
}
form[role="search"]:not(.header-search-form) {
display: flex;
align-items: center;
}
.header-search-wrap {
padding: 0;
flex-shrink: 0;
background: linear-gradient(
180deg,
rgba(192, 93, 225, 1) 0%,
rgba(255, 255, 255, 1) 100%
);
}
.header-search-form {
width: 100%;
}
.header-search-input-wrap {
position: relative;
display: flex;
align-items: center;
}
.header-search-icon {
position: absolute;
left: var(--space-s);
width: 18px;
height: 18px;
fill: var(--accent-primary);
pointer-events: none;
}
#site-search-input {
width: 100%;
padding: var(--space-2xs) var(--space-s);
padding-left: calc(18px + var(--space-l));
border: 1px solid var(--accent-primary);
border-radius: var(--radius);
background: var(--bg-primary);
font-size: var(--step-0);
color: var(--text-primary);
font-family: inherit;
}
#site-search-input::placeholder {
color: var(--accent-primary);
font-family: var(--font-body);
font-weight: 300;
}