2022-01-14 21:24:16 +01:00
|
|
|
@import '../init/breakpoints';
|
|
|
|
@import '../init/mixins';
|
|
|
|
@import '../component/superchat';
|
|
|
|
|
|
|
|
.livestream__comment {
|
|
|
|
list-style-type: none;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.date_time {
|
|
|
|
color: var(--color-text-subtitle);
|
|
|
|
opacity: var(--live-timestamp-opacity);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2022-02-11 19:50:55 +01:00
|
|
|
background-color: rgba(var(--color-primary-dynamic), 0.06);
|
2022-01-14 21:24:16 +01:00
|
|
|
|
|
|
|
.date_time {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
.comment__author {
|
|
|
|
color: rgba(var(--color-text-base), 0.5);
|
|
|
|
margin-top: var(--spacing-xxs);
|
|
|
|
max-width: unset;
|
|
|
|
|
|
|
|
.button__content {
|
|
|
|
max-width: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-primary) !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.channel-name {
|
|
|
|
color: var(--color-secondary);
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-14 21:24:16 +01:00
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
&:not(:hover) {
|
|
|
|
.menu__button:not(:focus):not([aria-expanded='true']) {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.channel-name {
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
}
|
2022-02-02 13:48:24 +01:00
|
|
|
}
|
2022-02-02 13:45:16 +01:00
|
|
|
|
2022-02-02 13:48:24 +01:00
|
|
|
.livestream__comment--mobile {
|
|
|
|
@extend .livestream__comment;
|
2022-02-02 13:45:16 +01:00
|
|
|
|
2022-02-02 13:48:24 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2022-02-11 19:50:55 +01:00
|
|
|
padding: 0;
|
|
|
|
padding-left: var(--spacing-xxxs);
|
2022-02-02 13:45:16 +01:00
|
|
|
|
2022-02-02 13:48:24 +01:00
|
|
|
.livestreamComment__menu {
|
|
|
|
position: relative;
|
|
|
|
right: 0;
|
2022-02-11 19:50:55 +01:00
|
|
|
top: var(--spacing-xxs);
|
|
|
|
.menu__button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment__author {
|
|
|
|
color: var(--color-primary);
|
2022-02-02 13:48:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
span,
|
|
|
|
p {
|
2022-02-12 17:48:03 +01:00
|
|
|
font-size: var(--font-xsmall) !important;
|
2022-02-02 13:45:16 +01:00
|
|
|
}
|
2022-01-14 21:24:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.livestream__comment--mentioned {
|
|
|
|
background-color: var(--color-card-background-highlighted);
|
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__info {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.livestream__comment--superchat {
|
2022-02-11 19:50:55 +01:00
|
|
|
background-color: rgba(var(--color-primary-dynamic), 0.05);
|
|
|
|
//background-color: var(--color-card-background-highlighted);
|
|
|
|
box-shadow: 2px 0px 0px 0px var(--color-primary) inset;
|
2022-02-02 13:45:16 +01:00
|
|
|
display: unset;
|
2022-02-11 19:50:55 +01:00
|
|
|
padding-left: 0;
|
2022-01-14 21:24:16 +01:00
|
|
|
|
|
|
|
+ .livestream__comment--superchat {
|
|
|
|
margin-bottom: var(--spacing-xxs);
|
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__body {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
flex-direction: unset;
|
|
|
|
flex: unset;
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-left: 3px;
|
|
|
|
|
|
|
|
.freezeframe-wrapper,
|
|
|
|
.channel-thumbnail--xsmall {
|
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
}
|
2022-01-14 21:24:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__info {
|
|
|
|
margin-top: calc(var(--spacing-xxs) / 2);
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
.button__content {
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.date_time {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2022-02-02 13:45:16 +01:00
|
|
|
.livestreamComment__menu {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2022-01-14 21:24:16 +01:00
|
|
|
&::before {
|
2022-02-11 19:50:55 +01:00
|
|
|
display: none;
|
2022-01-14 21:24:16 +01:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
height: 100%;
|
|
|
|
max-height: 4rem;
|
|
|
|
border-top-right-radius: 2px;
|
|
|
|
border-bottom-right-radius: 2px;
|
|
|
|
width: 5px;
|
|
|
|
background-color: var(--color-superchat);
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__body {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.channel-thumbnail {
|
|
|
|
@include handleChannelGif(2rem);
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-top: var(--spacing-s);
|
2022-01-14 21:24:16 +01:00
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2022-01-14 21:24:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__menu {
|
|
|
|
position: absolute;
|
2022-02-11 19:50:55 +01:00
|
|
|
right: 2px;
|
|
|
|
top: 2px;
|
|
|
|
|
|
|
|
[aria-expanded='true'].menu__button {
|
|
|
|
opacity: 1;
|
|
|
|
background-color: var(--color-header-background);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
2022-01-14 21:24:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__superchatBanner {
|
|
|
|
@extend .superChat;
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: 0;
|
2022-01-14 21:24:16 +01:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2022-02-11 19:50:55 +01:00
|
|
|
width: 90%;
|
|
|
|
background-image: linear-gradient(to right, var(--color-primary), rgba(var(--color-primary-dynamic), 0));
|
|
|
|
padding: 4px 2px 2px 4px;
|
|
|
|
|
|
|
|
.superChat {
|
|
|
|
background-color: var(--color-header-background);
|
|
|
|
padding-top: 5px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.credit-amount {
|
|
|
|
color: var(--color-text);
|
|
|
|
svg {
|
|
|
|
margin-bottom: -2px;
|
|
|
|
}
|
|
|
|
}
|
2022-01-14 21:24:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// This is just a two small circles that overlap to make it look like
|
|
|
|
// the banner and the left border are connected
|
|
|
|
.livestreamComment__superchatBanner--corner {
|
|
|
|
height: calc(var(--border-radius) * 2);
|
|
|
|
width: calc(var(--border-radius) * 2);
|
|
|
|
border-radius: 50%;
|
|
|
|
position: absolute;
|
|
|
|
background-color: var(--color-superchat);
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
transform: translateX(0) translateY(50%);
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
height: calc(var(--border-radius) * 2);
|
|
|
|
width: calc(var(--border-radius) * 2);
|
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
background-color: var(--color-card-background);
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
transform: translateX(25%) translateY(50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.livestreamComment__text {
|
2022-02-11 19:50:55 +01:00
|
|
|
padding-right: var(--spacing-s);
|
2022-01-14 21:24:16 +01:00
|
|
|
padding-bottom: var(--spacing-xxs);
|
|
|
|
|
|
|
|
.markdown-preview {
|
|
|
|
p {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.channel-name {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|