Fix spacing / centering live stream + comments section (#7225)
This commit is contained in:
parent
5ed9e3e3ae
commit
2ba6023926
2 changed files with 34 additions and 10 deletions
|
@ -27,8 +27,6 @@ $recent-msg-button__height: 2rem;
|
||||||
|
|
||||||
.livestream__discussion {
|
.livestream__discussion {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: var(--spacing-m);
|
|
||||||
margin-bottom: var(--spacing-s);
|
|
||||||
|
|
||||||
@media (min-width: $breakpoint-medium) {
|
@media (min-width: $breakpoint-medium) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -207,17 +207,43 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.main--livestream {
|
.main--livestream {
|
||||||
width: calc(100vw - var(--spacing-xs) * 2);
|
@extend .main--file-page;
|
||||||
margin: var(--spacing-xs);
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
max-width: none;
|
||||||
|
|
||||||
@media (min-width: $breakpoint-medium) {
|
.card-stack {
|
||||||
margin: var(--spacing-m);
|
margin-top: var(--spacing-m);
|
||||||
margin-right: calc(var(--livestream-comments-width) + var(--spacing-m));
|
margin-bottom: var(--spacing-m);
|
||||||
width: calc(100vw - var(--livestream-comments-width) - var(--spacing-m) * 2);
|
|
||||||
|
@media (min-width: $breakpoint-large + 300px) {
|
||||||
|
max-width: calc(var(--page-max-width--filepage) / 1.25);
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: $breakpoint-medium) and (max-width: $breakpoint-large + 300px) {
|
||||||
|
max-width: calc(100vw - var(--livestream-comments-width) - var(--spacing-m) * 3);
|
||||||
|
margin-left: var(--spacing-m);
|
||||||
|
margin-right: var(--spacing-m);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint-medium) {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: $breakpoint-large) {
|
.main__right-side {
|
||||||
margin-right: calc(10vw + var(--livestream-comments-width) + var(--spacing-m));
|
width: var(--livestream-comments-width);
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint-medium) {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: var(--spacing-m);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint-medium) {
|
||||||
|
padding: 0 var(--spacing-m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue