mirror of
https://github.com/owncast/owncast.git
synced 2024-12-22 17:20:37 +03:00
0a602edf5e
* hide footer on mobile to avoid double scrollbars * fix double scrollbars on desktop by removing scroll behaviour from main section * add scrollbar styles to body and html * add vertical scrolling back to main section * prevent header from collapsing and messing around with scrolling * prevent body from scrolling for main layout * move tablet breakpoint into breakpoint mixin * preffify code * remove js height calc for lower section on mobile and use css * enable scrolling within a tab on mobile * remove scrollbar from main section on mobile * adjust header height on mobile * add react use to web * lock body scroll for main layout
69 lines
1.2 KiB
SCSS
69 lines
1.2 KiB
SCSS
@import '../../../styles/mixins.scss';
|
||
|
||
.root {
|
||
display: grid;
|
||
grid-template-columns: 1fr auto;
|
||
width: 100%;
|
||
background-color: var(--theme-color-background-main);
|
||
|
||
@include screen(desktop) {
|
||
height: var(--content-height);
|
||
}
|
||
|
||
.mainSection {
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
@include screen(desktop) {
|
||
overflow-y: scroll;
|
||
}
|
||
}
|
||
|
||
.mainSection::-webkit-scrollbar {
|
||
width: 5px;
|
||
height: auto;
|
||
background-color: var(--theme-color-components-scrollbar-background);
|
||
}
|
||
|
||
.mainSection::-webkit-scrollbar-thumb {
|
||
background: var(--theme-color-components-scrollbar-thumb);
|
||
border-radius: 1px;
|
||
}
|
||
|
||
.topSection {
|
||
padding: 0;
|
||
background-color: var(--theme-color-components-video-background);
|
||
}
|
||
.lowerSection {
|
||
padding: 0em 2%;
|
||
margin-bottom: 2em;
|
||
}
|
||
|
||
.lowerSectionMobile {
|
||
display: flex;
|
||
flex-grow: 1;
|
||
padding: 0.3em;
|
||
// Enable overflow scrolling within a tab (∩`-´)⊃━☆゚.*・。゚
|
||
height: 100vw;
|
||
}
|
||
|
||
.tabs {
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
.leftCol {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.loadingSpinner {
|
||
display: grid;
|
||
}
|
||
|
||
.main {
|
||
display: grid;
|
||
flex: 1;
|
||
height: 100%;
|
||
grid-template-rows: 1fr auto;
|
||
}
|