mirror of
https://github.com/owncast/owncast.git
synced 2024-12-27 11:38:28 +03:00
2d72935564
* change chat from a sidebar to a column Using a 2-column layout prevents the chat scrollbar from overlapping the page scrollbar. Also, it no longer needs to calculate extra padding for elements. * remove unused Sidebar.tsx * fix css for chat column * re-center "Go to last message" button * main content column always uses maximum height * lint * re-hide scrollbars in mainContent on chromium * fix chat column width when input is over-full * chat is only fixed-width in desktop --------- Co-authored-by: janWilejan <>
145 lines
2.4 KiB
SCSS
145 lines
2.4 KiB
SCSS
@import '../../../styles/mixins';
|
|
|
|
.main {
|
|
display: flex;
|
|
flex-direction: row;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
|
|
// I'm not quite sure why, but sass ignores `#chat-container` here
|
|
[id="chat-container"] {
|
|
width: var(--chat-col-width);
|
|
}
|
|
}
|
|
|
|
.mainColumn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
overflow: auto;
|
|
}
|
|
|
|
.mainColumn::-webkit-scrollbar, .mainColumn::-webkit-scrollbar-thumb {
|
|
display: none;
|
|
}
|
|
|
|
.lowerSection {
|
|
padding: var(--content-padding);
|
|
}
|
|
|
|
.lowerSectionMobileTabbed {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
bottom: 0;
|
|
width: 100%;
|
|
|
|
@include screen(tablet) {
|
|
top: 0;
|
|
position: relative;
|
|
}
|
|
|
|
:global(.ant-tabs-nav) {
|
|
margin-bottom: 0;
|
|
padding-top: 0.5vh;
|
|
padding-left: 1vw;
|
|
}
|
|
}
|
|
|
|
.topSectionElement {
|
|
background-color: var(--theme-color-components-video-background);
|
|
|
|
@include screen(tablet) {
|
|
// "sticks" the stream to the top of the page
|
|
position: sticky;
|
|
z-index: 100;
|
|
}
|
|
}
|
|
|
|
.offlineBanner {
|
|
color: var(--theme-color-palette-4);
|
|
}
|
|
|
|
.mobileActionButtons {
|
|
display: none;
|
|
|
|
@include screen(tablet) {
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 10px;
|
|
z-index: 199;
|
|
}
|
|
|
|
> * {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.desktopActionButtons {
|
|
display: block;
|
|
width: 100%;
|
|
|
|
@include screen(tablet) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// not sure if this is needed
|
|
.statusBar {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
// not sure if this is needed
|
|
.loadingSpinner {
|
|
display: grid;
|
|
}
|
|
|
|
.defaultTabBar {
|
|
width: 85%;
|
|
}
|
|
|
|
.bottomPageContentContainer {
|
|
background-color: var(--theme-color-components-content-background);
|
|
padding: calc(2 * var(--content-padding));
|
|
border-radius: var(--theme-rounded-corners);
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
line-height: 2rem;
|
|
}
|
|
|
|
h1:first-child,
|
|
h2:first-child,
|
|
h3:first-child {
|
|
margin-top: unset;
|
|
}
|
|
}
|
|
|
|
.floatingMobileChatModalButton {
|
|
position: fixed;
|
|
width: 100px;
|
|
height: 40px;
|
|
bottom: 40px;
|
|
right: var(--content-padding);
|
|
font-weight: 600;
|
|
font-size: 1em;
|
|
z-index: 99;
|
|
background-color: var(--theme-color-components-chat-background);
|
|
border-width: 0;
|
|
box-shadow: 0 1px 3px 1px rgb(0 0 0 / 20%);
|
|
}
|
|
|
|
.centerSpinner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
}
|