2023-04-24 20:58:57 +03:00
|
|
|
$border-style: 3px solid currentColor;
|
2022-10-22 11:44:15 +03:00
|
|
|
$p-size: 8px;
|
2023-04-24 20:58:57 +03:00
|
|
|
$p-h-size: 8px;
|
|
|
|
$p-v-size: 2px;
|
2022-09-30 10:57:12 +03:00
|
|
|
|
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;
|
|
|
|
}
|
2022-09-30 10:57:12 +03:00
|
|
|
border-left: $border-style;
|
2022-06-29 09:22:22 +03:00
|
|
|
position: relative;
|
2023-04-24 20:58:57 +03:00
|
|
|
font-size: var(--chat-message-text-size);
|
|
|
|
padding: $p-v-size $p-h-size;
|
2022-11-13 07:26:55 +03:00
|
|
|
color: var(--theme-color-components-chat-text);
|
|
|
|
|
2022-05-22 17:10:34 +03:00
|
|
|
.user {
|
2022-07-02 10:08:36 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-04-24 20:58:57 +03:00
|
|
|
font-weight: 600;
|
2022-05-22 17:10:34 +03:00
|
|
|
}
|
2022-09-07 03:52:02 +03:00
|
|
|
|
2022-05-22 17:10:34 +03:00
|
|
|
.message {
|
2022-09-13 09:43:59 +03:00
|
|
|
overflow: hidden;
|
|
|
|
overflow-wrap: anywhere;
|
2023-04-24 20:58:57 +03:00
|
|
|
font-weight: 400;
|
2023-01-29 05:32:52 +03:00
|
|
|
position: relative;
|
2022-06-25 07:30:54 +03:00
|
|
|
|
|
|
|
mark {
|
2023-02-05 04:21:06 +03:00
|
|
|
padding-left: 0.3em;
|
|
|
|
padding-right: 0.3em;
|
|
|
|
color: var(--theme-color-palette-4);
|
2023-04-24 20:58:57 +03:00
|
|
|
border-radius: var(--chat-text-highlight-border-radius);
|
2023-02-05 04:21:06 +03:00
|
|
|
background-color: var(--color-owncast-palette-7);
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-08-30 09:17:12 +03:00
|
|
|
color: var(--theme-color-palette-12);
|
2023-02-05 04:21:06 +03:00
|
|
|
&:hover {
|
|
|
|
color: var(--theme-color-palette-4);
|
|
|
|
}
|
2022-06-25 07:30:54 +03:00
|
|
|
}
|
2022-05-22 17:10:34 +03:00
|
|
|
}
|
2022-07-01 23:49:42 +03:00
|
|
|
|
2022-06-29 09:22:22 +03:00
|
|
|
&.ownMessage {
|
2022-10-03 10:51:28 +03:00
|
|
|
border-left: none;
|
|
|
|
border-right: $border-style;
|
2023-01-17 04:33:50 +03:00
|
|
|
|
2022-07-02 10:56:03 +03:00
|
|
|
.background {
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background-color: currentColor;
|
|
|
|
opacity: 0.07;
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2022-06-29 09:22:22 +03:00
|
|
|
}
|
2022-07-01 23:49:42 +03:00
|
|
|
|
|
|
|
.modMenuWrapper {
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
2023-04-24 20:58:57 +03:00
|
|
|
top: 5px;
|
2022-07-01 23:49:42 +03:00
|
|
|
right: 10px;
|
2023-01-19 07:23:12 +03:00
|
|
|
color: var(--theme-color-components-text-on-light);
|
2022-07-02 10:08:36 +03:00
|
|
|
& button:focus,
|
|
|
|
& button:active {
|
|
|
|
display: block !important;
|
|
|
|
}
|
2023-01-19 07:23:12 +03:00
|
|
|
|
|
|
|
button {
|
|
|
|
border-radius: var(--theme-rounded-corners);
|
2023-04-24 20:58:57 +03:00
|
|
|
border-width: 0;
|
|
|
|
opacity: 0.8;
|
2023-01-19 07:23:12 +03:00
|
|
|
}
|
2022-07-01 23:49:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .modMenuWrapper {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-06-28 10:05:04 +03:00
|
|
|
}
|
2022-08-22 03:22:24 +03:00
|
|
|
|
|
|
|
.messagePadding {
|
2022-11-13 23:43:15 +03:00
|
|
|
padding: 0.4rem 5px 0px 5px;
|
2022-09-30 10:57:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.messagePaddingCollapsed {
|
2022-11-13 23:43:15 +03:00
|
|
|
padding: 0px 5px 0px 5px;
|
2022-08-22 03:22:24 +03:00
|
|
|
}
|