168 lines
2.5 KiB
Plaintext
168 lines
2.5 KiB
Plaintext
.notes-page {
|
|
min-height: 100vh;
|
|
background: #f8f8f8;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.nav-bar {
|
|
display: flex;
|
|
background: #fff;
|
|
padding: 20rpx 40rpx;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.nav-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
padding: 20rpx 0;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-item.active {
|
|
color: #1989fa;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-item.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 40rpx;
|
|
height: 4rpx;
|
|
background: #1989fa;
|
|
border-radius: 2rpx;
|
|
}
|
|
|
|
/* 笔记列表 */
|
|
.notes-list, .bookmarks-list {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.note-item, .bookmark-item {
|
|
background: #fff;
|
|
border-radius: 12rpx;
|
|
padding: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.note-header, .bookmark-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.book-title {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.chapter {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.note-content {
|
|
margin: 16rpx 0;
|
|
}
|
|
|
|
.selected-text {
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
background: #f5f5f5;
|
|
padding: 16rpx;
|
|
border-radius: 8rpx;
|
|
display: block;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.note-text {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.bookmark-content {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
margin: 16rpx 0;
|
|
}
|
|
|
|
.note-footer, .bookmark-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 16rpx;
|
|
padding-top: 16rpx;
|
|
border-top: 1rpx solid #eee;
|
|
}
|
|
|
|
.time {
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.action {
|
|
font-size: 24rpx;
|
|
color: #1989fa;
|
|
padding: 8rpx 16rpx;
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 100rpx 0;
|
|
color: #999;
|
|
}
|
|
|
|
.empty-state text {
|
|
font-size: 28rpx;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.empty-state .tip {
|
|
font-size: 24rpx;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* 添加按钮 */
|
|
.add-btn {
|
|
position: fixed;
|
|
right: 40rpx;
|
|
bottom: calc(40rpx + env(safe-area-inset-bottom));
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
background: #1989fa;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4rpx 12rpx rgba(25, 137, 250, 0.4);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.add-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.add-btn .plus {
|
|
color: #fff;
|
|
font-size: 48rpx;
|
|
font-weight: 300;
|
|
} |