mirror of
https://github.com/LC044/WeChatMsg
synced 2025-04-18 01:18:19 +08:00
修复部分浏览器HTML样式失效的问题
This commit is contained in:
parent
9a37fc4aa2
commit
c68636dcf4
@ -170,7 +170,8 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.container .content {
|
.container .content {
|
||||||
.bubble {
|
}
|
||||||
|
.bubble {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
padding: 10px 11px 10px 11px;
|
padding: 10px 11px 10px 11px;
|
||||||
@ -180,9 +181,9 @@ body {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-refer {
|
.chat-refer {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
padding: 8px 10px 8px 10px;
|
padding: 8px 10px 8px 10px;
|
||||||
@ -193,22 +194,22 @@ body {
|
|||||||
background-color: #e8e8e8;
|
background-color: #e8e8e8;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-refer-right {
|
.chat-refer-right {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-refer-left {
|
.chat-refer-left {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-left .bubble {
|
.item-left .bubble {
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-left .bubble:before {
|
.item-left .bubble:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 0;
|
width: 0;
|
||||||
@ -218,14 +219,14 @@ body {
|
|||||||
border-right: 10px solid #fff;
|
border-right: 10px solid #fff;
|
||||||
border-bottom: 10px solid transparent;
|
border-bottom: 10px solid transparent;
|
||||||
left: -20px;
|
left: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-right .bubble {
|
.item-right .bubble {
|
||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
background-color: #9eea6a;
|
background-color: #9eea6a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-right .bubble:before {
|
.item-right .bubble:before {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 0;
|
width: 0;
|
||||||
@ -235,27 +236,27 @@ body {
|
|||||||
border-right: 10px solid transparent;
|
border-right: 10px solid transparent;
|
||||||
border-bottom: 10px solid transparent;
|
border-bottom: 10px solid transparent;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-refer {
|
.item-refer {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item.item-right {
|
.item.item-right {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item.item-center {
|
.item.item-center {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item.item-center span {
|
.item.item-center span {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -266,59 +267,59 @@ body {
|
|||||||
-ms-user-select: none; /*IE10*/
|
-ms-user-select: none; /*IE10*/
|
||||||
-khtml-user-select: none; /*早期浏览器*/
|
-khtml-user-select: none; /*早期浏览器*/
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper-left {
|
.content-wrapper-left {
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper-right {
|
.content-wrapper-right {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.displayname {
|
.displayname {
|
||||||
margin-left: 13px;
|
margin-left: 13px;
|
||||||
margin-left: 13px;
|
margin-left: 13px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
color: darkgray;
|
color: darkgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-image img, .chat-file img {
|
.chat-image img, .chat-file img {
|
||||||
margin-right: 18px;
|
margin-right: 18px;
|
||||||
margin-left: 18px;
|
margin-left: 18px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
/*max-height: auto;*/
|
/*max-height: auto;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar img {
|
.avatar img {
|
||||||
width: 42px;
|
width: 42px;
|
||||||
height: 42px;
|
height: 42px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-video video {
|
.chat-video video {
|
||||||
margin-right: 18px;
|
margin-right: 18px;
|
||||||
margin-left: 18px;
|
margin-left: 18px;
|
||||||
max-width: 350px;
|
max-width: 350px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-audio {
|
.chat-audio {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
audio {
|
audio {
|
||||||
margin-left: 9px;
|
margin-left: 9px;
|
||||||
margin-right: 9px;
|
margin-right: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio, .chat-file {
|
.chat-music-audio, .chat-file {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -329,62 +330,62 @@ body {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-file img {
|
.chat-file img {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .player-box, .chat-file .file-box {
|
.chat-music-audio .player-box, .chat-file .file-box {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .player-original, .chat-file .app-info {
|
.chat-music-audio .player-original, .chat-file .app-info {
|
||||||
border-top: 1px solid #ede3e3;
|
border-top: 1px solid #ede3e3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .player-original p, .chat-file .app-info p {
|
.chat-music-audio .player-original p, .chat-file .app-info p {
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .player-controls, .chat-file .file-img {
|
.chat-music-audio .player-controls, .chat-file .file-img {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;;
|
align-items: center;;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-title, .card-content > h2, .description > p {
|
.file-title, .card-content > h2, .description > p {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-title, .card-content > h2 {
|
.file-title, .card-content > h2 {
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description > p {
|
.description > p {
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.chat-music-audio .flex1, .chat-file .flex1 {
|
.chat-music-audio .flex1, .chat-file .flex1 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
justify-content: start;
|
justify-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .flex2, .chat-file .flex2 {
|
.chat-music-audio .flex2, .chat-file .flex2 {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .player-info, .chat-file .file-info {
|
.chat-music-audio .player-info, .chat-file .file-info {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
@ -392,29 +393,29 @@ body {
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
flex-basis: 200px;
|
flex-basis: 200px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .song-title, .chat-file .file-name {
|
.chat-music-audio .song-title, .chat-file .file-name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .artist, .chat-file .file-size {
|
.chat-music-audio .artist, .chat-file .file-size {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-info {
|
.app-info {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-size {
|
.file-size {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .play-button {
|
.chat-music-audio .play-button {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
background-color: rgba(0, 0, 0, 0);
|
background-color: rgba(0, 0, 0, 0);
|
||||||
@ -422,25 +423,25 @@ body {
|
|||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .play-button.playing {
|
.chat-music-audio .play-button.playing {
|
||||||
background: url("./icon/pause.png");
|
background: url("./icon/pause.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-music-audio .play-button.paused {
|
.chat-music-audio .play-button.paused {
|
||||||
background: url("./icon/play.png");
|
background: url("./icon/play.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-area {
|
.input-area {
|
||||||
border-top: 0.5px solid #e0e0e0;
|
border-top: 0.5px solid #e0e0e0;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -450,36 +451,36 @@ body {
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
outline: none;
|
outline: none;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-area {
|
.button-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-area button {
|
.button-area button {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
float: right;
|
float: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-row,
|
.button-row,
|
||||||
.jump-row,
|
.jump-row,
|
||||||
#paginationInfo {
|
#paginationInfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 10px 25px;
|
padding: 10px 25px;
|
||||||
background-color: #3498db;
|
background-color: #3498db;
|
||||||
color: white;
|
color: white;
|
||||||
@ -488,33 +489,33 @@ body {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0 14px;
|
margin: 0 14px;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:hover {
|
button:hover {
|
||||||
background-color: #2980b9;
|
background-color: #2980b9;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input {
|
input {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#paginationInfo {
|
#paginationInfo {
|
||||||
color: #555;
|
color: #555;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 分享的卡片 */
|
/* 分享的卡片 */
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -525,50 +526,50 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 5px 20px 20px 20px;
|
margin: 5px 20px 20px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card a {
|
.card a {
|
||||||
text-decoration: none; /* 去掉链接的下划线 */
|
text-decoration: none; /* 去掉链接的下划线 */
|
||||||
color: inherit; /* 继承父元素的文字颜色 */
|
color: inherit; /* 继承父元素的文字颜色 */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content {
|
.card-content {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail {
|
.thumbnail {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-info {
|
.link-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-logo {
|
.app-logo {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-name {
|
.app-name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.button-row,
|
.button-row,
|
||||||
.jump-row,
|
.jump-row,
|
||||||
#paginationInfo {
|
#paginationInfo {
|
||||||
@ -600,21 +601,19 @@ body {
|
|||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.system-msg > .emoji_img {
|
.system-msg > .emoji_img {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.emoji_img {
|
.emoji_img {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-top: -4.4px;
|
margin-top: -4.4px;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
Loading…
Reference in New Issue
Block a user