mirror of
https://github.com/owncast/owncast.git
synced 2024-12-28 03:58:32 +03:00
44483a45d3
* style tweaks for Action Button, UserMenu, Modal * a bunch of misc polish; some around chat * Prettified Code! * cleanup * fix formatting * Reduce content padding a bit * some stylesheet cleanup * fix action button sizing * Remove action button height completely --------- Co-authored-by: gingervitis <gingervitis@users.noreply.github.com> Co-authored-by: Gabe Kangas <gabek@real-ity.com>
90 lines
1.6 KiB
SCSS
90 lines
1.6 KiB
SCSS
$border-style: 3px solid currentColor;
|
|
$p-size: 8px;
|
|
$p-h-size: 8px;
|
|
$p-v-size: 2px;
|
|
|
|
.root {
|
|
* {
|
|
z-index: 100;
|
|
}
|
|
border-left: $border-style;
|
|
position: relative;
|
|
font-size: var(--chat-message-text-size);
|
|
padding: $p-v-size $p-h-size;
|
|
color: var(--theme-color-components-chat-text);
|
|
|
|
.user {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.message {
|
|
overflow: hidden;
|
|
overflow-wrap: anywhere;
|
|
font-weight: 400;
|
|
position: relative;
|
|
|
|
mark {
|
|
padding-left: 0.3em;
|
|
padding-right: 0.3em;
|
|
color: var(--theme-color-palette-4);
|
|
border-radius: var(--chat-text-highlight-border-radius);
|
|
background-color: var(--color-owncast-palette-7);
|
|
}
|
|
|
|
a {
|
|
color: var(--theme-color-palette-12);
|
|
&:hover {
|
|
color: var(--theme-color-palette-4);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.ownMessage {
|
|
border-left: none;
|
|
border-right: $border-style;
|
|
|
|
.background {
|
|
position: absolute;
|
|
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: 5px;
|
|
right: 10px;
|
|
color: var(--theme-color-components-text-on-light);
|
|
& button:focus,
|
|
& button:active {
|
|
display: block !important;
|
|
}
|
|
|
|
button {
|
|
border-radius: var(--theme-rounded-corners);
|
|
border-width: 0;
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
&:hover .modMenuWrapper {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.messagePadding {
|
|
padding: 0.4rem 5px 0px 5px;
|
|
}
|
|
|
|
.messagePaddingCollapsed {
|
|
padding: 0px 5px 0px 5px;
|
|
}
|