feat(search): 效果五快捷栏加入本地搜索
- 引擎选项新增「本地」并作为默认;本地模式回车打开第一个匹配条目/分组 - 快捷栏改为贴在搜索框右侧内部展开,贴合效果五 - 外部引擎仍在新标签页搜索,输入时本地过滤逻辑保持
This commit is contained in:
+15
-2
@@ -1478,8 +1478,8 @@ html.theme-transition .site-background {
|
||||
|
||||
.engine-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 12px);
|
||||
right: 0;
|
||||
top: 50%;
|
||||
right: calc(100% + 6px);
|
||||
z-index: var(--su-z-float);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -1489,6 +1489,19 @@ html.theme-transition .site-background {
|
||||
border-radius: var(--su-radius-sm);
|
||||
background-color: var(--su-bg-card);
|
||||
box-shadow: var(--su-shadow-pop);
|
||||
transform: translateY(-50%);
|
||||
animation: engine-bar-in 140ms var(--su-ease-out);
|
||||
}
|
||||
|
||||
@keyframes engine-bar-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate(6px, -50%);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translate(0, -50%);
|
||||
}
|
||||
}
|
||||
|
||||
.engine-option {
|
||||
|
||||
Reference in New Issue
Block a user