-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from fac31/responsive-home-page
Responsive home page
- Loading branch information
Showing
3 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/**************************************** Responsive Styling for home page *************************************************/ | ||
|
||
/* | ||
I like to find these values by switching to the mobile view in devtools and | ||
resising the screen until the website starts to look funny and just taking the nearest | ||
whole number. | ||
Unfortunately these px values cant be put in variables | ||
*/ | ||
@media screen and (max-width: 1000px) { | ||
.page-main h1 { | ||
font-size: 37pt; | ||
} | ||
.page-main p { | ||
font-size: 15pt; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 700px) { | ||
.page-main h1 { | ||
font-size: 33pt; | ||
} | ||
.page-main p { | ||
font-size: 12pt; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
} | ||
|
||
.homePage-buttons button { | ||
width: 100px; | ||
font-size: 14px; | ||
margin: 20px 35px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 400px) { | ||
.page-main h1 { | ||
font-size: 29pt; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters