You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
230 lines
3.3 KiB
230 lines
3.3 KiB
.container {
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
padding-bottom: 80px;
|
|
}
|
|
|
|
.type-tabs {
|
|
display: flex;
|
|
background-color: white;
|
|
border-bottom: 1px solid #f5f5f5;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 15px 0;
|
|
font-size: 16px;
|
|
color: #666;
|
|
position: relative;
|
|
}
|
|
|
|
.tab.active {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background-color: #4CAF50;
|
|
}
|
|
|
|
.category-list {
|
|
margin: 15px;
|
|
}
|
|
|
|
.category-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.category-info {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.category-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background-color: #e8f5e9;
|
|
color: #4CAF50;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.category-icon .iconfont {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.category-name {
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.category-actions {
|
|
display: flex;
|
|
}
|
|
|
|
.edit-btn, .delete-btn {
|
|
padding: 5px 12px;
|
|
font-size: 14px;
|
|
border-radius: 4px;
|
|
margin-left: 10px;
|
|
height: auto;
|
|
line-height: normal;
|
|
}
|
|
|
|
.edit-btn {
|
|
color: #4CAF50;
|
|
background-color: #e8f5e9;
|
|
}
|
|
|
|
.delete-btn {
|
|
color: #f44336;
|
|
background-color: #ffebee;
|
|
}
|
|
|
|
.no-categories {
|
|
text-align: center;
|
|
padding: 40px 0;
|
|
color: #999;
|
|
font-size: 14px;
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.add-btn {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 90%;
|
|
height: 50px;
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border-radius: 25px;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.add-btn .iconfont {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
/* 弹窗样式 */
|
|
.modal-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-dialog {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: white;
|
|
border-top-left-radius: 15px;
|
|
border-top-right-radius: 15px;
|
|
padding: 20px;
|
|
z-index: 1001;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.form-item {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-item input {
|
|
width: 100%;
|
|
height: 45px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 0 15px;
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.icon-selector {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.icon-item {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 8px;
|
|
background-color: #f5f5f5;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.icon-item.selected {
|
|
background-color: #e8f5e9;
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.icon-item .iconfont {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.cancel-btn, .confirm-btn {
|
|
flex: 1;
|
|
height: 45px;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background-color: #f5f5f5;
|
|
color: #666;
|
|
}
|
|
|
|
.confirm-btn {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|