app-xiangsonghua/app-saas-src/css/message/messageListFrame.css
2024-12-26 17:00:06 +08:00

276 lines
4.2 KiB
CSS

html, body {
background: #dfdfdf;
}
body.edit-mode .content {
padding-bottom: 60px;
}
.list {
padding-top: .4rem;
}
.msg_title {
font-size: 1.2rem;
}
.time {
font-size: 0.9rem;
color: rgba(0, 0, 0, 0.7);
}
.message {
margin-bottom: 0.4rem;
display: flex;
align-items: center;
justify-content: center;
}
.unread .unread-badge {
position: absolute;
width: 8px;
height: 8px;
background: red;
border-radius: 50%;
top: 0rem;
right: 0.7rem;
}
@keyframes checkboxFadeIn {
from {
opacity: 0
}
to {
opacity: 1
}
}
@-webkit-keyframes checkboxFadeIn {
from {
opacity: 0
}
to {
opacity: 1
}
}
body .message .check-panel {
display: none;
}
body.edit-mode .message .check-panel {
display: flex;
width: 25px;
animation: checkboxFadeIn .6s normal forwards;
-webkit-animation: checkboxFadeIn .6s normal forwards;
/* Safari 和 Chrome */
flex-grow: 0;
flex-shrink: 0;
align-items: center;
}
.more-arrow {
width: 1rem;
}
.icon-con.icon_2001 {
background: #efc44b;
}
.icon-con.icon_2002 {
background: #80ccff;
}
.icon-con.icon_3001 {
background: #9e83ff;
}
.icon-con.icon_3002 {
background: #80ccff;
}
.icon-con.icon_4001 {
background: #3ebaff;
}
.icon-con.icon_4002 {
background: #42d39f;
}
.icon-con.icon_5001 {
background: #3ebaff;
}
/*.icon-con.icon_5002 {
background: #42d39f;
}*/
.icon-con.icon_5002 {
background: #c58fff;
}
.icon-con.icon_6001 {
background: #ffd237;
}
.icon-con.icon_6002 {
background: #ffa752;
}
.icon-con.icon_6003 {
background: #ff6363;
}
.icon-con.icon_7001 {
background: #c58fff;
}
@keyframes actPanelShow {
from {
bottom: -60px
}
to {
bottom: 0px
}
}
@-webkit-keyframes actPanelShow {
from {
bottom: -60px
}
to {
bottom: 0px
}
}
body .act-panel {
display: none;
}
body.edit-mode .act-panel {
font-size: 1.2rem;
height: 60px;
width: 100%;
background: #eee;
padding: 0px 1rem;
line-height: 60px;
border-top: 1px solid #ccc;
box-sizing: border-box;
display: flex;
justify-content: space-between;
position: fixed;
bottom: 0px;
animation: actPanelShow .3s normal forwards;
-webkit-animation: actPanelShow .3s normal forwards;
/* Safari 和 Chrome */
}
/*新闻消息的样式*/
.news-message {
padding: 0.1rem 1rem;
background: #ffffff;
}
.news-message .left {
padding: 0.8rem 0;
padding-right: 1rem;
overflow: hidden;
position: relative;
-webkit-flex-grow: 1;
flex-grow: 1;
}
.news-message .right {
-webkit-flex-grow: 0;
flex-shrink-grow: 0;
-webkit-flex-shrink: 0;
flex-shrink-shrink: 0;
overflow: hidden;
}
.news-message .right .img {
width: 6rem;
height: 6rem;
background-size: cover;
}
.news-message.unread .msg_title {
color: #000;
}
.news-message.unread .message-content {
color: rgba(0, 0, 0, 0.8);
}
.news-message .msg_title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
color: rgba(0, 0, 0, 0.6);
width: 100%;
}
.news-message .message-content {
word-wrap: break-word;
color: rgba(0, 0, 0, 0.6);
}
.news-message img {
margin-left: 1rem;
max-height: 2rem;
}
/*默认消息样式*/
.default-message {
display: -webkit-flex;
/* Safari */
display: flex;
width: 100%;
padding: 0.9rem 1rem;
box-sizing: border-box;
background: #ffffff;
}
.default-message .left {
padding-right: 1rem;
position: relative;
-webkit-flex-shrink: 0;
flex-shrink: 0;
}
.default-message .middle {
-webkit-flex-grow: 1;
flex-grow: 1;
width: 50%;
}
.default-message .right {
-webkit-flex-shrink: 0;
flex-shrink: 0;
}
.default-message .msg_title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
width: 100%;
}
.default-message .message-content {
color: #7e7e7e;
padding-right: 1rem;
flex-grow: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.default-message .icon-con {
width: 3rem;
height: 3rem;
border-radius: 50%;
}
.default-message .icon-con img {
width: 3rem;
height: 3rem;
}