update frontend

This commit is contained in:
2025-03-26 01:57:10 +08:00
parent 00035a5cb1
commit a038d4a673
3 changed files with 395 additions and 116 deletions

View File

@ -59,6 +59,9 @@ header {
h1 {
font-size: 2rem;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 10px;
}
.search-box {
@ -84,13 +87,7 @@ h1 {
opacity: 0.7;
}
.actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.actions button {
button {
padding: 8px 16px;
background-color: var(--primary-color);
color: white;
@ -102,21 +99,22 @@ h1 {
gap: 5px;
}
.actions button:hover {
button:hover {
opacity: 0.9;
}
.actions button i {
button i {
font-size: 0.9rem;
}
.theme-switcher button {
background: none;
border: none;
color: var(--text-color);
font-size: 1.2rem;
cursor: pointer;
padding: 5px;
.loading, .error {
text-align: center;
padding: 20px;
color: var(--primary-color);
}
.error {
color: var(--danger-color);
}
.categories {
@ -200,12 +198,12 @@ h1 {
font-size: 12px;
cursor: pointer;
display: none;
align-items: center;
justify-content: center;
}
.site:hover .delete-btn {
display: flex;
align-items: center;
justify-content: center;
}
/* 模态框样式 */
@ -269,8 +267,7 @@ h1 {
gap: 8px;
}
.form-group input,
.form-group select {
.form-group input {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
@ -326,6 +323,9 @@ form button:hover {
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
.add-category {
@ -351,51 +351,4 @@ form button:hover {
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
/* 拖拽样式 */
.sortable-ghost {
opacity: 0.5;
background: var(--primary-color);
}
.sortable-chosen {
box-shadow: 0 0 10px var(--shadow-color);
}
/* 响应式设计 */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.header-left, .header-right {
flex-direction: column;
align-items: stretch;
gap: 15px;
}
.search-box {
width: 100%;
}
.actions {
justify-content: space-between;
}
.actions button {
flex-grow: 1;
justify-content: center;
}
.sites {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
.add-category {
flex-direction: column;
}
}
gap: 5px;