owncast/web/components/ui/Content/Content.module.scss
André Rusakow 0a602edf5e
Double scrollbars (#2509)
* 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
2022-12-29 10:14:12 -08:00

69 lines
1.2 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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;
}