246 lines
4.6 KiB
SCSS
246 lines
4.6 KiB
SCSS
.page {
|
|
flex: 1;
|
|
/* #ifdef WEB */
|
|
min-height: 100vh;
|
|
padding-bottom: 2rpx;
|
|
/* #endif */
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: linear-gradient(to top right, #ffcbef 0%, #dd98ff 66%);
|
|
}
|
|
.-status-bar{
|
|
top: var(--uni-safe-area-inset-top);
|
|
height: var(--status-bar-height);
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.page-nav{
|
|
height: 96rpx;
|
|
position: fixed;
|
|
/* #ifdef APP */
|
|
top: var(--status-bar-height);
|
|
/* #endif */
|
|
/* #ifndef APP */
|
|
top: 0;
|
|
/* #endif */
|
|
width: 100%; /* 确保宽度占满整个视口 */
|
|
z-index: 100; /* 确保它在其他内容之上 */
|
|
border-radius: 10rpx;
|
|
background-color: #fff;
|
|
box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.1);
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 5rpx;
|
|
}
|
|
|
|
.page-nav-left{
|
|
width: auto;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.page-nav-center{
|
|
width: auto;
|
|
flex:1;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.page-nav-right{
|
|
width: auto;
|
|
padding: 3rpx 6rpx;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: flex-end;
|
|
}
|
|
.page-body{
|
|
flex: 1;
|
|
top:96rpx;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
}
|
|
|
|
.avatar-square {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 20rpx;
|
|
margin-right: 20rpx;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.avatar-circle {
|
|
width: 128rpx;
|
|
height: 128rpx;
|
|
border-radius: 64rpx;
|
|
margin-right: 30rpx;
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
/* ------------------ 聊天列表样式 ------------------ */
|
|
.chat-item{
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
margin: 5rpx;
|
|
padding: 5rpx 5rpx;
|
|
border-radius: 15rpx;
|
|
margin-bottom: 20rpx;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
.chat-item-left{
|
|
display: flex;
|
|
padding: 5rpx;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-item-center{
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
flex-grow: 1;
|
|
padding: 3rpx;
|
|
padding: 5rpx;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-item-right{
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
padding: 5rpx;
|
|
width: 96rpx;
|
|
}
|
|
/* ------------------ 卡片面板样式 ------------------ */
|
|
.card-panel{
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
margin: 3rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
padding: 5rpx;
|
|
margin-bottom: 20rpx;
|
|
box-shadow: 0 5rpx 20rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.card-panel-header{
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: space-between;
|
|
padding: 10rpx;
|
|
border-bottom: 1rpx solid #d4d4d45c;
|
|
}
|
|
|
|
.card-panel-body{
|
|
flex:1;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.card-panel-footer{
|
|
border-top: 1rpx solid #d4d4d45c;
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.grid-container{
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
padding: 5rpx;
|
|
}
|
|
|
|
.grid-container-item{
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.tabsbox {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin: 0 10rpx;
|
|
margin-bottom: 10rpx;
|
|
border-radius: 50rpx;
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.tabsbox-item{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin: 0 3rpx;
|
|
padding:5rpx 3rpx;
|
|
border-radius: 10rpx;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
.tabsbox-txt{
|
|
text-align: center;
|
|
font-size: 26rpx;
|
|
color: #464646;
|
|
margin: 0 3rpx;
|
|
padding: 3rpx;
|
|
border-radius: 10rpx;
|
|
background-color: rgba(255, 255, 255, 0.005);
|
|
}
|
|
.tabsbox-badge{
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
min-width: 32rpx;
|
|
height: 32rpx;
|
|
line-height: 32rpx;
|
|
text-align: center;
|
|
background-color: #FF6B6B;
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
border-radius: 16rpx;
|
|
padding: 0 3rpx;
|
|
transform: translate(30%, -30%);
|
|
}
|
|
.tabsbox-active{
|
|
/*background-color: rgba(255, 107, 107, 0.8);*/
|
|
border-radius: 5rpx;
|
|
border-bottom: 5rpx solid rgba(255, 107, 107, 0.8);
|
|
}
|
|
.tabsbox-active-txt{
|
|
color: #FF6B6B;
|
|
font-weight: bold;
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.icon-btn{
|
|
position: relative;
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 50%;
|
|
background-color: #f8f8f8;
|
|
}
|
|
.icon-badge{
|
|
position: absolute;
|
|
top: -5rpx;
|
|
right: -5rpx;
|
|
min-width: 32rpx;
|
|
height: 32rpx;
|
|
line-height: 32rpx;
|
|
text-align: center;
|
|
background-color: #FF3B30;
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
border-radius: 16rpx;
|
|
padding: 0 8rpx;
|
|
}
|
|
|
|
/********************** 首页样式**********************/
|
|
|
|
|