owncast/web/components/ui/Content/Content.module.scss

136 lines
2.5 KiB
SCSS
Raw Normal View History

@import '../../../styles/mixins.scss';
2022-05-04 00:55:13 +03:00
.root {
2022-05-12 09:31:31 +03:00
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: 100%;
2022-10-13 21:13:37 +03:00
width: 100%;
background-color: var(--theme-color-background-main);
height: 100%;
min-height: 0;
2022-11-13 23:37:31 +03:00
@include screen(desktop) {
height: var(--content-height);
}
2022-10-13 21:13:37 +03:00
.mainSection {
display: grid;
grid-template-rows: min-content // Skeleton when app is loading
minmax(30px, min-content) // player
min-content // status bar when live
min-content // mid section
minmax(250px, 1fr) // mobile content
;
grid-template-columns: 100%;
&.offline {
grid-template-rows: min-content // Skeleton when app is loading
min-content // offline banner
min-content // status bar when live
min-content // mid section
minmax(250px, 1fr) // mobile content
;
}
@include screen(tablet) {
grid-template-columns: 100vw;
}
@include screen(desktop) {
overflow-y: scroll;
grid-template-rows: unset;
&.offline {
grid-template-rows: unset;
}
}
2022-10-13 21:13:37 +03:00
}
2022-11-13 23:37:31 +03:00
.mainSection::-webkit-scrollbar {
2023-01-19 01:45:59 +03:00
display: none;
2022-11-13 23:37:31 +03:00
}
.mainSection::-webkit-scrollbar-thumb {
2023-01-19 01:45:59 +03:00
display: none;
2022-11-13 23:37:31 +03:00
}
.lowerSection {
2022-09-10 22:08:22 +03:00
padding: 0em 2%;
2022-09-02 08:00:00 +03:00
margin-bottom: 2em;
}
2022-09-10 22:08:22 +03:00
.lowerSectionMobile {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 0;
2022-09-10 22:08:22 +03:00
padding: 0.3em;
}
}
.topSectionElement {
background-color: var(--theme-color-components-video-background);
}
.statusBar {
flex-shrink: 0;
}
2022-05-04 00:55:13 +03:00
.leftCol {
display: flex;
flex-direction: column;
2022-05-04 00:55:13 +03:00
}
2022-05-18 02:07:56 +03:00
.loadingSpinner {
display: grid;
}
.replacementBar {
display: flex;
justify-content: space-between;
2023-01-16 10:13:38 +03:00
align-items: flex-start;
@include screen(tablet) {
height: var(--replacement-bar-height);
}
}
.defaultTabBar {
width: 85%;
}
.defaultTabBar,
.actionButtonMenu {
@include screen(tablet) {
margin-bottom: 0 !important;
padding-bottom: 0 !important;
}
}
.tabs {
width: 100%;
@include screen(tablet) {
position: relative;
> :global(.ant-tabs-content-holder) {
position: absolute;
height: calc(100% - var(--replacement-bar-height));
top: var(--replacement-bar-height);
left: 0;
right: 0;
bottom: 0;
}
> :global(.ant-tabs-content-holder .ant-tabs-content) {
padding-top: 16px;
}
}
}
.bottomPageContentContainer {
background-color: var(--theme-color-components-content-background);
padding: calc(2 * var(--content-padding));
border-radius: var(--theme-rounded-corners);
width: 100%;
}