Skip to content

Commit

Permalink
feat: 优化搜索框样式
Browse files Browse the repository at this point in the history
  • Loading branch information
magicFeirl committed Feb 11, 2025
1 parent 1ee5b56 commit 9069c3a
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 9069c3a

Please sign in to comment.