Kind of works

This commit is contained in:
Schmelczer András 2020-01-11 09:14:52 +01:00
parent 0429ea7f72
commit 65c0e3469e
6 changed files with 64 additions and 113 deletions

View file

@ -5,6 +5,9 @@
@include responsive() using ($vars) {
& {
height: 100%;
overflow: hidden;
transform-style: preserve-3d;
background-color: map_get($vars, $background);
transition: background-color map_get($vars, $transition-time);
@ -12,7 +15,13 @@
touch-action: manipulation;
@include on-small-screen {
font-size: 0.8em;
font-size: 0.8rem;
}
@media print {
& {
font-size: 0.75rem;
}
}
}
@ -39,6 +48,8 @@
*::after {
@include main-font($vars);
transform-style: preserve-3d;
margin: 0;
padding: 0;
box-sizing: border-box;
@ -82,39 +93,39 @@
}
body {
height: 100%;
overflow: hidden;
//noinspection CssInvalidFunction
padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px)
env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px);
padding: env(safe-area-inset-top) env(safe-area-inset-right)
env(safe-area-inset-bottom) env(safe-area-inset-left);
.main {
height: 100vh; // to take mobile nav-bar into account
overflow-y: scroll;
overflow-x: hidden;
will-change: transform;
perspective: 5px;
perspective-origin: center center;
noscript {
@include square(100%);
@include center-children();
@media print {
& {
height: auto;
}
}
@include on-large-screen {
&::-webkit-scrollbar-track,
&::-webkit-scrollbar {
background-color: transparent;
width: 12px;
}
&::-webkit-scrollbar-thumb {
background-color: map_get($vars, $accent-color);
border-radius: map_get($vars, $border-radius);
}
max-height: 100%; // to take mobile nav-bar into account
overflow-x: hidden;
overflow-y: scroll;
//will-change: transform;
perspective: 5px;
perspective-origin: center center;
noscript {
@include square(100%);
@include center-children();
}
@include on-large-screen {
&::-webkit-scrollbar-track,
&::-webkit-scrollbar {
background-color: transparent;
width: 12px;
}
&::-webkit-scrollbar-thumb {
background-color: map_get($vars, $accent-color);
border-radius: map_get($vars, $border-radius);
}
}
}