Skip to content

Commit

Permalink
fix graph paper pattern from not extending beyond first 100vh of page…
Browse files Browse the repository at this point in the history
… before overflow page content
  • Loading branch information
Adam McKee committed Aug 29, 2024
1 parent 8e41c66 commit 02e4aa0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 4 additions & 7 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
--card-text-color: var(--black);
--card-graph-color: rgb(var(--black-rgb), 40%);
font-family: 'Inter Variable', Helvetica, sans-serif;
background-color: var(--card-bg-color);
background-image: radial-gradient(circle, var(--card-graph-color) 1px, transparent 1px);
background-position: center;
background-size: 3rem 3rem;

&.flipped {
--head-bg-color: var(--white);
Expand All @@ -54,17 +58,10 @@
}

html, body {
background: var(--card-bg-color);
min-height: 100vh;
overflow-x: hidden;
}

body {
background-image: radial-gradient(circle, var(--card-graph-color) 1px, transparent 1px);
background-position: center;
background-size: 3rem 3rem;
}

#grid {
height: 100vh;
width: 100vw;
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/graphPaper.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ html.out:not(.reader) #triangle {
}

#graph-paper-positioning {
position: relative;
position: absolute;
left: 20vw;
top: 20vh;
width: 60vw;
min-height: 60vh;
}

#graph-paper {
margin: 10vw auto 0;
margin: 0 auto;
padding: 10vh 0;
max-width: 38rem;
width: 40vw;
}

0 comments on commit 02e4aa0

Please sign in to comment.