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
  • 10 minutes ago
  • 12 years ago

Installs

  • Total 29K
  • Win 18K
  • Mac 7K
  • Linux 3K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 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
Windows 0 0 0 0 0 1 0 1 1 0 0 2 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 1 1
Mac 0 1 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 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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 1 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.