- Created `pages/list` for managing and displaying to-do tasks. - Created `pages/settings` as a placeholder for application settings. - Updated `pages/index` for a refreshed layout with navigation to "Tasks" and "Settings". - Integrated custom tab bar across all pages for seamless transitions.
116 lines
1.8 KiB
Plaintext
116 lines
1.8 KiB
Plaintext
/* pages/list/list.wxss */
|
|
page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background-color: #f4f4f4;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
padding-bottom: 120rpx; /* Space for tab bar */
|
|
}
|
|
|
|
.add-todo-section {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
padding: 10rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.add-todo-input {
|
|
flex: 1;
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.add-todo-input .t-input__control {
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.add-todo-button {
|
|
min-width: auto;
|
|
}
|
|
|
|
.todo-list-scroll {
|
|
flex: 1;
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.todo-item-left {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.todo-item-content {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.todo-text {
|
|
margin-left: 20rpx;
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
flex-grow: 1;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.todo-text.completed {
|
|
text-decoration: line-through;
|
|
color: #aaa;
|
|
}
|
|
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80rpx;
|
|
color: #999;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-state .t-icon {
|
|
margin-bottom: 20rpx;
|
|
color: #0052d9;
|
|
}
|
|
|
|
.empty-state text {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.t-navbar {
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.todo-list .t-cell {
|
|
padding-top: 24rpx;
|
|
padding-bottom: 24rpx;
|
|
}
|
|
|
|
.todo-list .t-cell .t-icon[name="delete"] {
|
|
font-size: 40rpx;
|
|
padding-left: 20rpx;
|
|
}
|
|
|
|
.custom-tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000; /* Ensure it's on top */
|
|
}
|
|
|