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

Installs

  • Total 24K
  • Win 14K
  • OS X 7K
  • Linux 3K
Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30
Windows 5 7 4 8 4 6 8 4 9 4 6 2 3 7 8 3 5 1 7 4 8 6 8 5 3 5 8 10 6 6 9 4 5 4 4 0 5 4 7 1 4 7 4 2 3 2
OS X 5 1 2 1 1 1 1 1 3 3 1 1 3 4 1 2 0 0 0 4 2 0 4 3 1 0 1 0 1 1 1 0 1 0 1 2 2 0 0 0 1 1 0 1 1 2
Linux 1 1 2 0 1 0 0 2 1 2 1 1 0 3 1 2 2 2 2 0 1 1 2 1 0 1 0 0 0 0 2 1 2 0 1 1 1 2 3 1 1 2 0 0 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.