|
|
@ -113,13 +113,26 @@
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
height: calc(100vh - var(--nav-h));
|
|
|
|
height: calc(100vh - var(--nav-h));
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
padding: 0 0 42px 0;
|
|
|
|
/* margin: 0 calc(var(--side-nav) * -1); */
|
|
|
|
/* margin: 0 calc(var(--side-nav) * -1); */
|
|
|
|
box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tutorial-outer.mobile {
|
|
|
|
.viewport {
|
|
|
|
padding: 0 0 42px 0;
|
|
|
|
display: grid;
|
|
|
|
|
|
|
|
width: 300%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
grid-template-columns: 33.333% 66.666%;
|
|
|
|
|
|
|
|
transition: transform 0.3s;
|
|
|
|
|
|
|
|
grid-auto-rows: 100%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.offset-1 { transform: translate(-33.333%, 0); }
|
|
|
|
|
|
|
|
.offset-2 { transform: translate(-66.666%, 0); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
|
|
|
.tutorial-outer {
|
|
|
|
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.viewport {
|
|
|
|
.viewport {
|
|
|
@ -128,18 +141,12 @@
|
|
|
|
display: grid;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: minmax(33.333%, 480px) auto;
|
|
|
|
grid-template-columns: minmax(33.333%, 480px) auto;
|
|
|
|
grid-auto-rows: 100%;
|
|
|
|
grid-auto-rows: 100%;
|
|
|
|
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile .viewport {
|
|
|
|
.offset-1, .offset-2 { transform: none; }
|
|
|
|
width: 300%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
grid-template-columns: 33.333% 66.666%;
|
|
|
|
|
|
|
|
transition: transform 0.3s;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile .offset-1 { transform: translate(-33.333%, 0); }
|
|
|
|
|
|
|
|
.mobile .offset-2 { transform: translate(-66.666%, 0); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tutorial-text {
|
|
|
|
.tutorial-text {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
@ -242,7 +249,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<svelte:window bind:innerWidth={width}/>
|
|
|
|
<svelte:window bind:innerWidth={width}/>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tutorial-outer" class:mobile>
|
|
|
|
<div class="tutorial-outer">
|
|
|
|
<div class="viewport offset-{offset}">
|
|
|
|
<div class="viewport offset-{offset}">
|
|
|
|
<div class="tutorial-text">
|
|
|
|
<div class="tutorial-text">
|
|
|
|
<div class="table-of-contents">
|
|
|
|
<div class="table-of-contents">
|
|
|
|