owncast/web/components/chat/ChatUserMessage/ChatUserMessage.module.scss

72 lines
1.2 KiB
SCSS
Raw Normal View History

$border-style: 3px solid currentColor;
$p-size: 5px;
2022-05-22 17:10:34 +03:00
.root {
2022-07-10 09:56:31 +03:00
* {
2022-08-11 07:41:56 +03:00
z-index: 100;
}
border-left: $border-style;
position: relative;
2022-05-22 17:10:34 +03:00
font-size: 0.9rem;
padding: 0px $p-size $p-size $p-size;
2022-05-22 17:10:34 +03:00
.user {
display: flex;
align-items: center;
2022-08-22 02:01:35 +03:00
font-family: var(--theme-text-display-font-family);
font-weight: bold;
2022-05-22 17:10:34 +03:00
}
2022-05-22 17:10:34 +03:00
.message {
overflow: hidden;
overflow-wrap: anywhere;
font-weight: 600;
mark {
padding-left: 0.35em;
padding-right: 0.35em;
color: var(--theme-color-palette-12);
}
2022-05-22 17:10:34 +03:00
}
&.ownMessage {
border-left: none;
border-right: $border-style;
2022-07-02 10:56:03 +03:00
.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;
}
}
2022-08-22 03:22:24 +03:00
.messagePadding {
padding: 0px 0px;
padding-top: .4rem;
}
.messagePaddingCollapsed {
padding: 0px 0px;
2022-08-22 03:22:24 +03:00
}