Skip to content

Commit

Permalink
responsive for phones
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianMcC committed Aug 4, 2024
1 parent 81a9de2 commit 2a08bf5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
16 changes: 16 additions & 0 deletions style/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,20 @@ main {
section h2 {
border-bottom: 5px solid #212121;
margin-bottom: 10px;
}

@media (max-width: 480px) {
html {
font-size: 1.5rem;
}
main {
margin: 10% 15%;
}
nav {
display: none;
}
header {
font-size: 1.3rem;
height: 25%;
}
}/*# sourceMappingURL=general.css.map */
38 changes: 37 additions & 1 deletion style/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ header {
nav {
background-color: $background-secondary;
height: 5%;
// box-shadow: 0px 5px 10px black;

ul {
height: 100%;
Expand Down Expand Up @@ -83,4 +82,41 @@ section {
border-bottom: 5px solid $background-secondary;
margin-bottom: 10px;
}
}










// Responsive phone
@media (max-width: 480px) {

// Make the base font smaller
html {
font-size: 1.5rem;
}

// Make the margins smaller
main {
margin: 10% 15%;
}

// Just straight up get
// rid of the navbar if
// they are on a phone
nav {
display: none;
}

// Make the header size smaller
// and also text smaller
header {
font-size: 1.3rem;
height: 25%;
}
}

0 comments on commit 2a08bf5

Please sign in to comment.