well i tried a bunch of things to fix the CSS, most did not work, will need some help
This commit is contained in:
@@ -12,6 +12,11 @@ body {
|
|||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
/* tmp? */
|
/* tmp? */
|
||||||
background: bisque;
|
background: bisque;
|
||||||
|
|
||||||
|
/* overflow-x: hidden; */
|
||||||
|
/* This seems to have fixed my pages that are too long */
|
||||||
|
/* but now i can't scroll anywhere ... */
|
||||||
|
/* overflow-y: hidden; */
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -46,7 +46,10 @@
|
|||||||
const rand = (min, max) =>
|
const rand = (min, max) =>
|
||||||
Math.floor(Math.random() * (max - min + 1)) + min;
|
Math.floor(Math.random() * (max - min + 1)) + min;
|
||||||
|
|
||||||
const animate = star => {
|
// it's unhappy that "star" isn't typeset, no idea what to do about it...
|
||||||
|
const animate = (star) => {
|
||||||
|
// the if seems to have fixed the type issue
|
||||||
|
if (star) {
|
||||||
star.style.setProperty("--star-left", `${rand(-10, 100)}%`);
|
star.style.setProperty("--star-left", `${rand(-10, 100)}%`);
|
||||||
star.style.setProperty("--star-top", `${rand(-40, 80)}%`);
|
star.style.setProperty("--star-top", `${rand(-40, 80)}%`);
|
||||||
|
|
||||||
@@ -54,6 +57,7 @@
|
|||||||
star.offsetHeight;
|
star.offsetHeight;
|
||||||
star.style.animation = "";
|
star.style.animation = "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This is the part i invented, it was kinda a fucking nightmare...
|
// This is the part i invented, it was kinda a fucking nightmare...
|
||||||
let stars = [];
|
let stars = [];
|
||||||
@@ -105,6 +109,40 @@
|
|||||||
</main>
|
</main>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
<div>testing when there's tons of stuff</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
/* The main part */
|
/* The main part */
|
||||||
|
|||||||
@@ -73,11 +73,24 @@
|
|||||||
|
|
||||||
<Canvas/>
|
<Canvas/>
|
||||||
|
|
||||||
|
<!-- doesn't work :( -->
|
||||||
|
<!-- <svelte:body style="overflow-y: hidden"/> -->
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
/* .canvas .grid-container{ */
|
/* :global(body) {
|
||||||
|
overflow-y: hidden;
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
header {
|
||||||
|
/* didn't work... */
|
||||||
|
overflow-y: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* The actually important stuff */
|
||||||
|
|
||||||
.grid-container{
|
.grid-container{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -86,11 +99,13 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
/* max-height: 100%; */
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
/* padding-bottom: 0; */
|
/* padding-bottom: 0; */
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 20px 40px;
|
padding: 20px 40px;
|
||||||
|
margin: 0px;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(12, 1fr);
|
grid-template-columns: repeat(12, 1fr);
|
||||||
|
|||||||
@@ -73,6 +73,7 @@
|
|||||||
header{
|
header{
|
||||||
/* for some reason this doesn't do shit! */
|
/* for some reason this doesn't do shit! */
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
/* position: absolute; */
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user