2b271730cc
## Ticket 948 wildwest: always show boosting message, move next to category name ## Changes 1. Make "Show less livestreams" share the same space as "Boosted by LBC", instead of only showing either 1. - It's a bit troublesome to move it next to the filter without tweaking the generic `ClaimListDiscover`, so I think this would be a good compromise. 2. Fix "show less livestreams" being super tiny in mobile. - I think it is caused by some component-specific changes are being applied at the global level (not sure).
191 lines
3.4 KiB
SCSS
191 lines
3.4 KiB
SCSS
.livestream {
|
|
flex: 1;
|
|
width: 100%;
|
|
padding-top: var(--aspect-ratio-standard);
|
|
position: relative;
|
|
border-radius: var(--border-radius);
|
|
|
|
.media__thumb,
|
|
iframe {
|
|
overflow: hidden;
|
|
border-radius: var(--border-radius);
|
|
height: 100%;
|
|
max-height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
~ .notice-message {
|
|
margin-top: var(--spacing-m);
|
|
}
|
|
}
|
|
|
|
.livestream__channel-link {
|
|
margin-bottom: var(--spacing-xl);
|
|
box-shadow: 0 0 0 rgba(246, 72, 83, 0.4);
|
|
animation: livePulse 2s infinite;
|
|
padding: var(--spacing-m);
|
|
|
|
background: rgba(var(--color-primary-dynamic), 0.1);
|
|
border-radius: var(--border-radius);
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
@keyframes livePulse {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgba(246, 72, 83, 0.4);
|
|
}
|
|
70% {
|
|
box-shadow: 0 0 0 10px rgba(246, 72, 83, 0);
|
|
}
|
|
100% {
|
|
box-shadow: 0 0 0 0 rgba(246, 72, 83, 0);
|
|
}
|
|
}
|
|
|
|
.livestream__publish-checkbox {
|
|
margin: var(--spacing-l) 0;
|
|
|
|
.checkbox,
|
|
.radio {
|
|
margin-top: var(--spacing-m);
|
|
|
|
label {
|
|
color: #444;
|
|
}
|
|
}
|
|
}
|
|
|
|
.livestream__creator-message {
|
|
background-color: #fde68a;
|
|
padding: var(--spacing-m);
|
|
color: black;
|
|
border-radius: var(--border-radius);
|
|
|
|
h4 {
|
|
font-weight: bold;
|
|
font-size: var(--font-small);
|
|
margin-bottom: var(--spacing-s);
|
|
}
|
|
}
|
|
|
|
.livestream__publish-intro {
|
|
margin-top: var(--spacing-l);
|
|
}
|
|
|
|
.livestream__viewer-count {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.icon {
|
|
margin-left: var(--spacing-xs);
|
|
}
|
|
}
|
|
|
|
.table--livestream-data {
|
|
td:nth-of-type(1) {
|
|
max-width: 4rem;
|
|
}
|
|
td:nth-of-type(2) {
|
|
min-width: 8.5rem;
|
|
}
|
|
td:nth-of-type(3) {
|
|
width: 4rem;
|
|
min-width: 9rem;
|
|
}
|
|
td:nth-of-type(4) {
|
|
display: none;
|
|
}
|
|
@media (min-width: $breakpoint-small) {
|
|
td:nth-of-type(1) {
|
|
max-width: 4rem;
|
|
}
|
|
td:nth-of-type(2) {
|
|
width: 40%;
|
|
}
|
|
td:nth-of-type(3) {
|
|
width: 5rem;
|
|
}
|
|
td:nth-of-type(4) {
|
|
width: 100%;
|
|
display: table-cell;
|
|
}
|
|
}
|
|
}
|
|
|
|
.livestream_thumb_container {
|
|
height: 4rem;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.livestream___thumb {
|
|
padding: 0 var(--spacing-xxs);
|
|
object-fit: cover;
|
|
}
|
|
|
|
.livestream__data-row {
|
|
cursor: pointer;
|
|
.radio {
|
|
cursor: pointer;
|
|
}
|
|
&:nth-child(n) {
|
|
&.livestream__data-row--selected {
|
|
background-color: var(--color-button-toggle-bg);
|
|
}
|
|
}
|
|
td {
|
|
padding-right: var(--spacing-m);
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
padding: var(--spacing-xs);
|
|
}
|
|
}
|
|
&:hover {
|
|
td {
|
|
.radio {
|
|
label::before {
|
|
cursor: pointer;
|
|
background-color: var(--color-input-toggle-bg-hover);
|
|
}
|
|
}
|
|
label {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
input {
|
|
cursor: pointer;
|
|
background-color: var(--color-header-bg-selected);
|
|
}
|
|
}
|
|
}
|
|
|
|
.livestream-list--view-more {
|
|
display: flex;
|
|
margin-left: var(--spacing-s);
|
|
margin-bottom: var(--spacing-xxxs);
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
button {
|
|
.button__content {
|
|
span {
|
|
// This is being set in '.section__actions' to '--font-xxsmall',
|
|
// causing the button to shrink in mobile.
|
|
// I think it is only needed for the mobile comments and shouldn't
|
|
// be applied globally?
|
|
// Anyway, reverting for this use-case only for now to reduce testing.
|
|
font-size: unset;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|