Skip to content

Instantly share code, notes, and snippets.

@marvinahv
Created June 26, 2013 06:55
Show Gist options
  • Save marvinahv/5865297 to your computer and use it in GitHub Desktop.
Save marvinahv/5865297 to your computer and use it in GitHub Desktop.
A Sass Mixin to add Responsiveness to a Site
// Responsive Mixin
@mixin responsive($width)
@if $width == 300
@media all and (min-width:300px)
@content
@if $width == 600
@media all and (min-width:600px)
@content
@if $width == 900
@media all and (min-width:900px)
@content
@if $width == 1020
@media all and (min-width:1020px)
@content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment