记账微信小程序
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.

235 lines
3.1 KiB

1 week ago
.container {
background-color: #f5f5f5;
min-height: 100vh;
padding-bottom: 60px;
}
.month-picker {
padding: 15px;
background-color: white;
}
.picker-view {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
background-color: #f5f5f5;
border-radius: 20px;
color: #333;
font-size: 16px;
}
.picker-view .iconfont {
margin: 0 8px;
color: #666;
}
.summary-card {
display: flex;
justify-content: space-around;
background-color: white;
margin: 15px;
border-radius: 15px;
padding: 20px 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.summary-item {
text-align: center;
flex: 1;
}
.summary-label {
display: block;
font-size: 14px;
color: #666;
margin-bottom: 5px;
}
.summary-amount {
font-size: 22px;
font-weight: 600;
}
.income {
color: #4CAF50;
}
.expense {
color: #f44336;
}
.balance {
color: #2196F3;
}
.category-stats, .records-section {
background-color: white;
margin: 15px;
border-radius: 15px;
padding: 15px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.section-title {
font-size: 18px;
font-weight: 600;
color: #333;
}
.type-tabs {
display: flex;
}
.tab {
padding: 5px 12px;
font-size: 14px;
border-radius: 15px;
margin-left: 10px;
}
.tab.active {
background-color: #e8f5e9;
color: #4CAF50;
}
.chart-container {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.pie-chart {
width: 240px;
height: 240px;
}
.category-details {
margin-bottom: 10px;
}
.category-detail-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid #f5f5f5;
}
.category-detail-item:last-child {
border-bottom: none;
}
.category-info {
display: flex;
align-items: center;
}
.category-color {
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 10px;
}
.category-name {
font-size: 16px;
color: #333;
}
.category-amount {
text-align: right;
}
.category-amount text:first-child {
font-size: 16px;
font-weight: 500;
margin-right: 10px;
}
.category-percentage {
font-size: 14px;
color: #999;
}
.records-list {
max-height: 300px;
overflow-y: auto;
}
.record-item {
display: flex;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #f5f5f5;
}
.record-item:last-child {
border-bottom: none;
}
.record-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
}
.income-icon {
background-color: #e8f5e9;
color: #4CAF50;
}
.expense-icon {
background-color: #ffebee;
color: #f44336;
}
.iconfont {
font-size: 20px;
}
.record-details {
flex: 1;
}
.record-title {
font-size: 16px;
color: #333;
margin-bottom: 3px;
}
.record-note {
font-size: 12px;
color: #999;
margin-bottom: 2px;
}
.record-date {
font-size: 12px;
color: #ccc;
}
.record-amount {
font-size: 16px;
font-weight: 500;
}
.no-data, .no-records {
text-align: center;
padding: 30px 0;
color: #999;
font-size: 14px;
}