Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davezatch/Media-Query-Snippets
https://github.com/davezatch/Media-Query-Snippets
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/davezatch/Media-Query-Snippets
- Owner: davezatch
- Created: 2012-08-22T08:49:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-22T09:17:42.000Z (about 12 years ago)
- Last Synced: 2024-08-01T05:23:39.024Z (3 months ago)
- Size: 99.6 KB
- Stars: 8
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sublime Text CSS Media Query Snippets
===========================A collection of media query snippets for common use cases. Included snippets:
* Desktop/Laptop
* Ipad (general)
* Ipad Landscape
* Ipad Portrait
* Smartphone (general)
* Iphone 4 (retina)
* Smartphone Portrait
* Smartphone LandscapeThe `trigger` for each snippet is in the format `media query XXX` where **XXX** is the name of each snippet. So you could type e.g. "med" then ctrl+space to trigger the snippets and select the one you want, or keep typing e.g. _por_ and the portrait snippets will pop up.
They look like this:
```
/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
${1:/* Styles */}
}
```where the ${1} makes the cursor immediately jump to that spot so you can begin editing your styles.
Feedback welcome, this is my first (teeny tiny) sublime package but it may be useful for someone else.