Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #130 from thewhiteswan/master
Browse files Browse the repository at this point in the history
Added CSS device media queries snippets
  • Loading branch information
rickwest authored Oct 30, 2019
2 parents 74e998a + 4ef1dec commit c2a40b3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions source/snippets/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,26 @@ description: CSS Snippets
}
```

## Device breakpoints

It is impossible to create the perfect experience for every device on the market but this list of typical media queries can help you decide on the right break point for your content.

For device specific media queries check out this page on [CSS Tricks](https://css-tricks.com/snippets/css/media-queries-for-standard-devices/).

```
/* Small devices (mobile phones) */
@media only screen and (max-width: 600px) {...}
/* Medium devices (tablets) */
@media only screen and (min-width: 768px) {...}
/* Large devices (laptops/desktops) */
@media only screen and (min-width: 992px) {...}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {...}
```


0 comments on commit c2a40b3

Please sign in to comment.