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
  • 8 years ago
  • 29 minutes ago
  • 8 years ago

Installs

  • Total 27K
  • Win 17K
  • Mac 7K
  • Linux 3K
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 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20
Windows 1 4 4 4 5 5 1 2 1 1 2 2 0 2 3 0 2 4 5 5 1 2 3 3 6 2 3 1 3 3 2 4 3 1 5 2 0 3 1 2 2 3 3 2 4 1
Mac 0 1 0 0 1 0 0 1 1 1 0 1 4 0 0 0 0 2 0 1 0 0 0 2 0 0 1 0 0 0 1 1 1 0 1 0 2 1 0 0 0 0 0 1 0 2
Linux 0 0 0 0 2 0 2 1 0 0 0 0 0 1 0 2 1 0 0 2 1 0 0 1 2 1 0 1 0 0 0 2 2 1 1 0 0 0 0 2 1 2 1 1 1 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.