Skip to content

Commit

Permalink
Some responsiveness improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed Jun 8, 2024
1 parent abb69fa commit 2cc4c16
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/lib/components/monaco-viewer/MonacoViewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ h3, span {
background-color: var(--editor-color);
overflow-y: auto; /* Could be replaced with Monaco scrollbar */
user-select: text;
font-size: 14px;
/*
22px on top for breadcrumbs
Expand Down
4 changes: 4 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ import Projects from "./Projects.svelte";
:global(body) {
overflow-x: hidden;
}
main {
font-size: max(14px, min(2vw, 2vh));
}
</style>
2 changes: 0 additions & 2 deletions src/routes/Contact.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ section {
p {
padding: 1em;
font-size: 1.5em;
text-align: center;
}
Expand Down Expand Up @@ -132,7 +131,6 @@ li {
img {
width: 2em;
height: 2em;
padding-right: .5em;
}
a {
Expand Down
8 changes: 4 additions & 4 deletions src/routes/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ setInterval(changeRollingText, 6000);
<style>
/* HopperIcon */
section > svg {
max-width: 50%;
max-height: 50%;
padding-bottom: 20px;
max-width: 33%;
max-height: 33%;
padding-bottom: min(20px, 3%);
}
</style>
</svelte:head>
Expand All @@ -80,7 +80,7 @@ section {
flex-direction: column;
filter: drop-shadow(0 0 32px black);
font-family: "Courier New", Courier, monospace;
font-size: 3.5em;
font-size: 1.5em;
font-weight: bold;
text-align: center;
}
Expand Down
6 changes: 4 additions & 2 deletions src/routes/NavBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ a {
}
nav {
border-bottom: 5px solid white;
--nav-border: 0.2em solid white;
border-bottom: var(--nav-border);
background-color: #646464;
font-size: 1.5em;
font-weight: bold;
Expand Down Expand Up @@ -70,7 +72,7 @@ li {
}
nav {
border: 5px solid white;
border: var(--nav-border);
border-top: none;
border-radius: 0 0 1em 1em;
}
Expand Down

0 comments on commit 2cc4c16

Please sign in to comment.