184 lines
3.6 KiB
Plaintext
184 lines
3.6 KiB
Plaintext
/**
|
||
* 这里是uni-app内置的常用样式变量
|
||
*
|
||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
*
|
||
*/
|
||
/**
|
||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
*
|
||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
*/
|
||
/* 颜色变量 */
|
||
/* 行为相关颜色 */
|
||
/* 文字基本颜色 */
|
||
/* 背景颜色 */
|
||
/* 边框颜色 */
|
||
/* 尺寸变量 */
|
||
/* 文字尺寸 */
|
||
/* 图片尺寸 */
|
||
/* Border Radius */
|
||
/* 水平间距 */
|
||
/* 垂直间距 */
|
||
/* 透明度 */
|
||
/* 文章场景相关 */
|
||
.content {
|
||
height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
background-color: #F3F3F3;
|
||
}
|
||
.header-row {
|
||
width: 100%;
|
||
margin-top: 100rpx;
|
||
padding-bottom: 20rpx;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.back-button {
|
||
width: 80rpx;
|
||
height: 50rpx;
|
||
margin-left: 32rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.back-icon {
|
||
width: 48rpx;
|
||
height: 48rpx;
|
||
}
|
||
.title {
|
||
font-size: 36rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
}
|
||
.mark-read-btn {
|
||
width: 80rpx;
|
||
margin-right: 32rpx;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
}
|
||
.mark-read-text {
|
||
font-size: 24rpx;
|
||
color: #00A0BC;
|
||
}
|
||
.tab-container {
|
||
display: flex;
|
||
flex-direction: row;
|
||
padding: 0 24rpx 24rpx;
|
||
}
|
||
.tab-item {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 16rpx 0;
|
||
position: relative;
|
||
margin: 0 8rpx;
|
||
border-radius: 50rpx;
|
||
border: 2rpx solid transparent;
|
||
}
|
||
.tab-item.active {
|
||
background-color: #E5FBFF;
|
||
border-color: #00A0BC;
|
||
}
|
||
.tab-text {
|
||
font-size: 26rpx;
|
||
color: #666;
|
||
}
|
||
.tab-text.active {
|
||
color: #00A0BC;
|
||
font-weight: 500;
|
||
}
|
||
.badge {
|
||
position: absolute;
|
||
top: 8rpx;
|
||
right: 4rpx;
|
||
min-width: 32rpx;
|
||
height: 32rpx;
|
||
padding: 0 8rpx;
|
||
background-color: #FF3B30;
|
||
border-radius: 16rpx;
|
||
font-size: 20rpx;
|
||
color: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.notification-list {
|
||
flex: 1;
|
||
height: 0;
|
||
}
|
||
.notification-item {
|
||
width: 686rpx;
|
||
background-color: #fff;
|
||
border-radius: 20rpx;
|
||
padding: 36rpx 32rpx;
|
||
margin: 0 auto 24rpx;
|
||
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.08);
|
||
box-sizing: border-box;
|
||
}
|
||
.notification-item.unread {
|
||
background-color: #fff;
|
||
}
|
||
.item-header {
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
.item-title {
|
||
font-size: 32rpx;
|
||
font-weight: 500;
|
||
color: #333;
|
||
flex: 1;
|
||
}
|
||
.unread-dot {
|
||
width: 12rpx;
|
||
height: 12rpx;
|
||
background-color: #FF3B30;
|
||
border-radius: 50%;
|
||
margin-left: 16rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.item-content {
|
||
font-size: 28rpx;
|
||
color: #666;
|
||
line-height: 1.7;
|
||
display: block;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
.item-time {
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
display: block;
|
||
}
|
||
.loading-more {
|
||
padding: 40rpx;
|
||
display: flex;
|
||
justify-content: center;
|
||
}
|
||
.loading-text {
|
||
font-size: 26rpx;
|
||
color: #999;
|
||
}
|
||
.empty-state {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding-top: 200rpx;
|
||
}
|
||
.empty-icon {
|
||
width: 200rpx;
|
||
height: 200rpx;
|
||
opacity: 0.3;
|
||
margin-bottom: 40rpx;
|
||
}
|
||
.no-data {
|
||
font-size: 28rpx;
|
||
color: #999;
|
||
} |