This commit is contained in:
2026-09-15 00:31:34 +08:00
parent c4b08be4eb
commit 9fa3c63d7d
5 changed files with 231 additions and 12 deletions
+78 -1
View File
@@ -18,10 +18,18 @@ body {
padding: 16px;
display: flex;
flex-direction: column;
min-height: 100vh;
height: 100vh;
overflow-y: auto;
box-sizing: border-box;
}
header,
.add-section,
.current-section,
.footer {
flex-shrink: 0;
}
header h1 {
font-size: 18px;
text-align: center;
@@ -166,6 +174,20 @@ h2 {
margin-bottom: 0;
}
/* 添加配置表单收起态:有配置时仅显示入口按钮 */
#addEntryBtn {
display: none;
}
.add-section.collapsed #addEntryBtn {
display: block;
}
.add-section.collapsed .add-section-header,
.add-section.collapsed > .form-group,
.add-section.collapsed > .advanced-options,
.add-section.collapsed > #addBtn {
display: none;
}
#cancelEditBtn {
padding: 4px 12px;
}
@@ -176,12 +198,67 @@ h2 {
display: flex;
flex-direction: column;
min-height: 0;
position: relative;
}
.list-header {
flex-shrink: 0;
}
/* 图标按钮 */
.btn-icon {
padding: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 0;
}
/* 悬浮搜索框 */
.search-box {
position: absolute;
top: 38px;
right: 0;
z-index: 50;
align-items: center;
gap: 4px;
background: #16213e;
border: 1px solid #0f3460;
border-radius: 6px;
padding: 6px 8px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
width: 220px;
box-sizing: border-box;
}
.search-box:not([hidden]) {
display: flex;
}
.search-box input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
color: #e0e0e0;
font-size: 13px;
outline: none;
}
.search-clear {
background: none;
border: none;
color: #888;
cursor: pointer;
font-size: 16px;
padding: 0 4px;
line-height: 1;
}
.search-clear:hover {
color: #e94560;
}
.form-group {
margin-bottom: 12px;
}