- only set 100% height on root element
- only apply scrollbar globally if browsers supports scrollbar-width
- formatting
-html,
-body {
- height: 100%;
-}
-
*,
*::before,
*::after {
html {
box-sizing: border-box;
font-size: var(--body-font-size);
+ height: 100%;
}
@media screen and (min-width: 1024px) {
word-wrap: normal; /* table widths aren't computed as expected when word-wrap is enabled */
}
-body * {
- scrollbar-width: thin;
- scrollbar-color: var(--scrollbar-thumb-color) transparent;
+@supports (scrollbar-width: thin) {
+ body * {
+ scrollbar-width: thin;
+ scrollbar-color: var(--scrollbar-thumb-color) transparent;
+ }
}
body ::-webkit-scrollbar {
- width: 0.25rem;
height: 0.25rem;
+ width: 0.25rem;
}
body ::-webkit-scrollbar-thumb {
@media screen and (min-width: 1024px) {
main {
flex: auto;
- /* min-width: 0 required for flexbox to constrain overflowing elements */
- min-width: 0;
+ min-width: 0; /* min-width: 0 required for flexbox to constrain overflowing elements */
}
main > .content {