feat: 优化搜索框样式

This commit is contained in:
magicFeirl 2025-02-11 22:50:44 +08:00
parent 1ee5b56127
commit 9069c3a8e6

View File

@ -1,7 +1,18 @@
.search-panel {
display: none !important;
> .trending {
display: none !important;
}
&:not(:has(.history)) {
padding: 0 !important;
border: none !important;
}
}
#nav-searchform.is-focus {
border-radius: 8px !important;
/* 搜索框 focusing 且有关键字列表 or 历史记录列表时不显示低边框*/
&:not(:has(+ .search-panel > .suggestions), :has(+ .search-panel > .history)) {
border-radius: 8px !important;
}
}