You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.2 KiB
73 lines
1.2 KiB
$border-style: 3px solid currentColor; |
|
$p-size: 8px; |
|
|
|
.root { |
|
* { |
|
z-index: 100; |
|
} |
|
border-left: $border-style; |
|
position: relative; |
|
font-size: 0.9rem; |
|
padding: 0px $p-size $p-size $p-size; |
|
color: var(--theme-color-components-chat-text); |
|
|
|
.user { |
|
display: flex; |
|
align-items: center; |
|
font-family: var(--theme-text-display-font-family); |
|
font-weight: 600; |
|
} |
|
|
|
.message { |
|
overflow: hidden; |
|
overflow-wrap: anywhere; |
|
font-weight: 500; |
|
|
|
mark { |
|
padding-left: 0.35em; |
|
padding-right: 0.35em; |
|
color: var(--theme-color-palette-12); |
|
} |
|
} |
|
|
|
&.ownMessage { |
|
border-left: none; |
|
border-right: $border-style; |
|
.background { |
|
position: absolute; |
|
z-index: -1; |
|
top: 0px; |
|
left: 0px; |
|
width: 100%; |
|
height: 100%; |
|
background-color: currentColor; |
|
opacity: 0.07; |
|
border-radius: 0.25rem; |
|
overflow: hidden; |
|
} |
|
} |
|
|
|
.modMenuWrapper { |
|
position: absolute; |
|
display: none; |
|
top: 0; |
|
right: 10px; |
|
& button:focus, |
|
& button:active { |
|
display: block !important; |
|
} |
|
} |
|
|
|
&:hover .modMenuWrapper { |
|
display: block; |
|
} |
|
} |
|
|
|
.messagePadding { |
|
padding: 0px 0px; |
|
padding-top: 0.4rem; |
|
} |
|
|
|
.messagePaddingCollapsed { |
|
padding: 0px 0px; |
|
}
|
|
|