mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
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.
This commit is contained in:
@@ -47,7 +47,7 @@ form[role="search"]:not(.header-search-form) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.header-search-input-wrap input {
|
||||
#site-search-input {
|
||||
width: 100%;
|
||||
padding: var(--space-2xs) var(--space-s);
|
||||
padding-left: calc(18px + var(--space-l));
|
||||
@@ -59,7 +59,7 @@ form[role="search"]:not(.header-search-form) {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.header-search-input-wrap input::placeholder {
|
||||
#site-search-input::placeholder {
|
||||
color: var(--accent-primary);
|
||||
font-family: var(--font-body);
|
||||
font-weight: 300;
|
||||
|
||||
Reference in New Issue
Block a user