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

CSS Media Query Snippets

by davezatch ALL

No description provided

Labels snippets

Details

  • 2012.08.22.09.17.17
  • github.​com
  • github.​com
  • 12 years ago
  • 48 minutes ago
  • 12 years ago

Installs

  • Total 29K
  • Win 18K
  • Mac 7K
  • Linux 3K
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 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
Windows 1 2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 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.