Skip to content

Instantly share code, notes, and snippets.

View shengt's full-sized avatar
:octocat:
I'm in NY

Tim Tian shengt

:octocat:
I'm in NY
View GitHub Profile
@shengt
shengt / variables.styl
Created February 27, 2014 21:21
Media queries variables for stylus
// Media queries breakpoints
// --------------------------------------------------
// Extra small screen / phone
$screen-xs ?= 480px
$screen-phone ?= $screen-xs
// Small screen / tablet
$screen-sm ?= 768px
$screen-tablet ?= $screen-sm
@shengt
shengt / mixins.styl
Created February 27, 2014 21:18
Some useful mixins for stylus
//
// Mixins
// --------------------------------------------------
// Font face
font-url(file)
return url(file)
webfont(family, file, weight = normal, style = normal)
@font-face