Skip to content

Instantly share code, notes, and snippets.

@stephan-romhart
Last active October 21, 2021 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephan-romhart/c1693fa3efdf64b290c7edbf82f811dc to your computer and use it in GitHub Desktop.
Save stephan-romhart/c1693fa3efdf64b290c7edbf82f811dc to your computer and use it in GitHub Desktop.
/* 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