Skip to content

Commit

Permalink
Merge pull request #11 from e4f-hamburg/mobile-font-size
Browse files Browse the repository at this point in the history
Smaller font size for smaller screens
  • Loading branch information
magro authored Jan 22, 2024
2 parents f01ef91 + c5324d6 commit 4bc3a16
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions _sass/components/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@include heading-font;
}
.navbar-brand {
font-size: 1.1em;
color: $white;
&.active,
&:active,
Expand Down
2 changes: 1 addition & 1 deletion _sass/layout/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ header.masthead {
@include serif-font;
}
.intro-heading {
font-size: 50px;
font-size: 44px;
font-weight: 700;
line-height: 50px;
margin-bottom: 25px;
Expand Down
12 changes: 11 additions & 1 deletion _sass/layout/_portfolio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
.modal-content {
padding: 100px 0;
h2 {
font-size: 3em;
font-size: 1.4em;
margin-bottom: 15px;
}
p {
Expand Down Expand Up @@ -145,3 +145,13 @@
}
}
}

@media (min-width: 768px) {
.portfolio-modal {
.modal-content {
h2 {
font-size: 2.2em;
}
}
}
}

0 comments on commit 4bc3a16

Please sign in to comment.