Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
added mixins to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Chaplinsky committed Apr 11, 2014
1 parent 5b9de18 commit addc840
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dist/sass/mixins/font.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
=font-face($fontname, $fontpath)
font-family: $fontname
src: url($fontpath, 'eot', 'embedded-opentype', '?#iefix'), url($fontpath, 'woff', 'woff'), url($fontpath, 'ttf', 'truetype'), url($fontpath, 'svg', 'esvg', '?#' + $fontname)
font-style: normal
font-weight: normal
36 changes: 36 additions & 0 deletions dist/sass/mixins/responsive.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$break-small: 480px
$break-medium: 768px
$break-large: 980px
$break-x-large: 1200px

=screen($size)
@if $size == big-phone-up
@media only screen and (min-width: $break-small)
@content
@if $size == tablet-up
@media only screen and (min-width: $break-medium)
@content
@else if $size == desktop-up
@media only screen and (min-width: $break-large)
@content
@else if $size == big-desktop
@media only screen and (min-width: $break-x-large)
@content
@else if $size == phone-only
@media only screen and (max-width: $break-medium - 1)
@content
@else if $size == small-phone-only
@media only screen and (max-width: $break-small - 1)
@content
@else if $size == big-phone-only
@media only screen and (min-width: $break-small) and (max-width: $break-medium - 1)
@content
@else if $size == tablet-only
@media only screen and (min-width: $break-medium) and (max-width: $break-large - 1)
@content
@else if $size == desktop-only
@media only screen and (min-width: $break-large) and (max-width: $break-x-large - 1)
@content
@else if $size == print
@media print
@content

0 comments on commit addc840

Please sign in to comment.