Created
November 12, 2013 22:20
-
-
Save puginabox/7439856 to your computer and use it in GitHub Desktop.
Sass/Compass mixins partial template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =================== @mixins ================================/ | |
@mixin breakpoint($point) { | |
//-------------------------- Mobile --------------| | |
@if $point == mobile { | |
@media (max-width: 500px) { @content; } | |
} | |
//-------------------------- Tablet --------------| | |
@else if $point == tablet { | |
@media (min-width:501px) and (max-width:1000px) { @content; } | |
} | |
//-------------------------- Desktop -------------| | |
@else if $point == desktop { | |
@media (min-width:1001px) and (max-width:1500px) { @content; } | |
} | |
//-------------------------- Large ---------------| | |
@else if $point == large { | |
@media (min-width:1501px) { @content; } | |
} | |
//-------------------------- Landscape -----------| | |
@else if $point == landscape { | |
@media only screen and (orientation: landscape) { @content; } | |
} | |
} | |
//-------------------------- @Borders --------------| | |
@mixin borderer { | |
border: 1px solid $color1; | |
} | |
@mixin button-hover { | |
@include single-transition(all, .5s, ease-out); | |
&:hover { | |
background: rgba($color1, .5); | |
} | |
a { | |
color: white; | |
&:hover { | |
color: $color1; | |
} | |
} | |
} | |
//-------------------------- @Other useful susyettes --------------| | |
@include single-transition(all, .5s, ease-out); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment