Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
update: mix msg style
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Jun 2, 2024
1 parent 66c510d commit c790d40
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/style/telegram.css

Large diffs are not rendered by default.

30 changes: 24 additions & 6 deletions src/style/telegram.scss
Original file line number Diff line number Diff line change
Expand Up @@ -976,14 +976,24 @@
display: inline-block;
}
& .face-element {
margin: 2px 12px;
margin: 1px 12px;
display: inline-block;
}

// 性能稀烂
// & :is(.face-element, .text-element) {
// & + :is(.face-element, .text-element) {
// margin-left: 1px !important;
// }
// &:has(+ :is(.face-element, .text-element)) {
// margin-right: 1px !important;
// }
// }
& :is(.face-element, .text-element) {
& + :is(.face-element, .text-element) {
&:not(:first-of-type) {
margin-left: 1px !important;
}
&:has(+ :is(.face-element, .text-element)) {
&:not(:last-of-type) {
margin-right: 1px !important;
}
}
Expand Down Expand Up @@ -1184,14 +1194,22 @@
display: inline-block;
}
& .face-element {
margin: 2px 12px;
margin: 1px 12px;
display: inline-block;
}
// & :is(.face-element, .text-element) {
// & + :is(.face-element, .text-element) {
// margin-left: 1px !important;
// }
// &:has(+ :is(.face-element, .text-element)) {
// margin-right: 1px !important;
// }
// }
& :is(.face-element, .text-element) {
& + :is(.face-element, .text-element) {
&:not(:first-of-type) {
margin-left: 1px !important;
}
&:has(+ :is(.face-element, .text-element)) {
&:not(:last-of-type) {
margin-right: 1px !important;
}
}
Expand Down

0 comments on commit c790d40

Please sign in to comment.