owncast/web/styles/globals.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

109 lines
1.7 KiB
SCSS

@import '@fontsource/open-sans/300.css';
@import '@fontsource/open-sans/400.css';
@import '@fontsource/open-sans/600.css';
@import '@fontsource/open-sans/800.css';
@import '@fontsource/poppins/400.css';
@import '@fontsource/poppins/600.css';
@import './mixins.scss';
:root {
--content-padding: 12px;
--module-spacing: 12px; // margin size between lines of stuff, if needed
--header-height: 5.375rem; // needed for making main content scrollable;
--footer-height: 2.5rem; // needed for making main content scrollable;
--content-height: calc(100vh - var(--header-height));
}
::selection {
background-color: var(--theme-color-palette-12);
}
html {
font-size: clamp(15px, 1.35vw, 16px);
}
body {
font-family: var(--theme-text-body-font-family);
line-height: 1.5em;
margin: 0;
background-color: var(--theme-color-background-main);
div,
h1,
h2,
h3,
h4,
h5,
h6,
p {
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--theme-text-display-font-family);
color: unset; // reset some colors from global.less file
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
font-weight: 400;
}
h3 {
font-family: var(--theme-text-body-font-family);
font-size: 1.25em;
font-weight: 500;
}
h4 {
font-size: 1em;
}
ul {
list-style: square;
}
ul,
ol {
margin: 0.7em 0 0 0;
padding: 0 1em;
ul,
ol {
margin: 0;
}
li {
margin: 0.175em 0 0 0;
}
}
a {
color: var(--theme-color-action);
word-break: break-word;
&:hover {
color: var(--theme-color-palette-12);
}
}
strong,
b {
font-weight: 700;
}
}
.emoji {
height: 30px;
margin-left: 5px;
margin-right: 5px;
}