ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

CSS Media Query Snippets

by davezatch ST2/ST3

No description provided

Labels snippets

Details

  • 2012.08.22.09.17.17
  • github.​com
  • github.​com
  • 5 years ago
  • 1 hour ago
  • 5 years ago

Installs

  • Total 21K
  • Win 13K
  • OS X 6K
  • Linux 2K
Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 9 2 7 6 5 4 8 8 2 3 1 9 7 4 2 10 5 7 5 10 5 10 4 2 3 6 10 5 7 2 2 6 2 5 9 8 4 4 1 8 4 6 3 9 0 7
OS X 0 1 3 2 1 4 1 1 0 1 0 2 0 0 4 0 0 2 0 3 3 1 1 2 1 1 2 3 2 1 2 2 1 0 1 1 1 1 2 1 1 2 1 4 0 1
Linux 2 2 0 1 1 0 5 2 0 1 0 0 1 2 0 2 1 1 0 1 1 3 0 1 0 2 3 1 0 2 0 1 1 2 6 2 1 1 0 1 1 1 0 2 1 0

Readme

Source
raw.​githubusercontent.​com

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 Landscape

The 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.