add login

This commit is contained in:
2025-03-26 02:23:17 +08:00
parent a038d4a673
commit c2db6f3dae
4 changed files with 272 additions and 86 deletions

View File

@ -59,9 +59,6 @@ header {
h1 {
font-size: 2rem;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 10px;
}
.search-box {
@ -87,7 +84,13 @@ h1 {
opacity: 0.7;
}
button {
.actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.actions button {
padding: 8px 16px;
background-color: var(--primary-color);
color: white;
@ -99,22 +102,21 @@ button {
gap: 5px;
}
button:hover {
.actions button:hover {
opacity: 0.9;
}
button i {
.actions button i {
font-size: 0.9rem;
}
.loading, .error {
text-align: center;
padding: 20px;
color: var(--primary-color);
}
.error {
color: var(--danger-color);
.theme-switcher button {
background: none;
border: none;
color: var(--text-color);
font-size: 1.2rem;
cursor: pointer;
padding: 5px;
}
.categories {
@ -198,12 +200,12 @@ button i {
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;
}
/* 模态框样式 */
@ -267,7 +269,8 @@ button i {
gap: 8px;
}
.form-group input {
.form-group input,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid var(--border-color);
@ -323,9 +326,6 @@ form button:hover {
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
.add-category {
@ -351,4 +351,70 @@ form button:hover {
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
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;
}
}
/* 添加拖拽相关样式 */
.site[draggable="true"] {
cursor: grab;
}
.site[draggable="true"]:active {
cursor: grabbing;
}
.site.dragging {
opacity: 0.5;
background-color: var(--primary-color);
}
/* 登录按钮样式 */
#loginBtn, #logoutBtn {
background-color: var(--secondary-color);
}