-
-
Save stephan-romhart/c1693fa3efdf64b290c7edbf82f811dc to your computer and use it in GitHub Desktop.
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
/* Media Queries */ | |
/* Standard desktop */ | |
@media(max-width:1920px){ | |
:root{ | |
--content-padding:4rem; | |
} | |
... | |
} | |
/* Old desktop or large scaled UI */ | |
@media(max-width:1280px){ | |
:root{ | |
font-size:8px; | |
} | |
... | |
} | |
/* Tablet landscape */ | |
@media(max-width:1024px){ | |
:root{ | |
font-size:10px; | |
--content-width:100%; | |
--content-padding:2rem; | |
} | |
... | |
} | |
/* Tablet portrait */ | |
@media(max-width:800px){ | |
:root{ | |
font-size:9px; | |
} | |
... | |
} | |
/* Smartphones */ | |
@media(max-width:550px){ | |
:root{ | |
font-size:7px; | |
--content-padding:1rem; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment