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
  • 7 years ago
  • 2 hours ago
  • 7 years ago

Installs

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

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.