mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
62 lines
1.5 KiB
CSS
62 lines
1.5 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: #C05DE1;
|
|
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;
|
|
}
|
|
|
|
.header-search-input-wrap input {
|
|
width: 100%;
|
|
padding: var(--space-2xs) var(--space-s) !important;
|
|
padding-left: calc(18px + var(--space-l)) !important;
|
|
border: 1px solid var(--accent-primary) !important;
|
|
border-radius: var(--radius) !important;
|
|
background: var(--bg-primary) !important;
|
|
font-size: var(--step-0) !important;
|
|
color: var(--text-primary) !important;
|
|
font-family: inherit !important;
|
|
}
|
|
|
|
.header-search-input-wrap input::placeholder {
|
|
color: var(--accent-primary) !important;
|
|
font-family: var(--font-body);
|
|
font-weight: 300;
|
|
}
|