Skip to content

Commit

Permalink
Cleaner title break
Browse files Browse the repository at this point in the history
  • Loading branch information
WallSoGB committed May 24, 2024
1 parent fa33aab commit 26a0822
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
9 changes: 9 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,15 @@ h2 {
margin-top: -0.12px;
}
}
@media screen and (min-width: 900px) {
#title br {
display: none;
}
#title::after {
content: " ";
display: inline;
}
}
@media only screen and (max-width: 900px) {
.titleContainer h1 {
font-size: 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,18 @@ h2 {
}
}

@media screen and (min-width: 900px){
#title br {
display: none;
}


#title::after {
content: " ";
display: inline;
}
}

@media only screen and (max-width: 900px) {
.titleContainer h1 {
font-size: 1.5em;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<div id="backdrop" class="welcomeContent">
<div class="titleContainer">
<img src="img/Coco/Full.webp" alt="Background Image" class="backgroundImage">
<h1 id="title">Welcome to Viva New Vegas!</h1>
<h1 id="title">Welcome to <br>Viva New Vegas!</h1>
</div>
<div class="buttonContainer">
<div class="buttonWrapper">
Expand Down

0 comments on commit 26a0822

Please sign in to comment.