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
  • 6 years ago
  • 52 minutes ago
  • 6 years ago

Installs

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

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.