Created
April 25, 2014 22:35
-
-
Save nucliweb/11305453 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
| // ---- | |
| // Sass (v3.3.5) | |
| // Compass (v1.0.0.alpha.18) | |
| // ---- | |
| // Mixin @each vendor | |
| @mixin vendor($prop, $args) { | |
| @each $vendor in webkit, moz, ms, o { | |
| -#{$vendor}-#{$prop}: $args; | |
| } | |
| #{$prop}: $args; | |
| } | |
| .border-radius { | |
| @include vendor(border-raius,5px); | |
| } | |
| ////////////////////////////////////////// | |
| %icon { | |
| transition: background-color ease .2s; | |
| margin: 0 .5em; | |
| } | |
| .icon-error { | |
| @extend %icon; | |
| color: red; | |
| } | |
| .icon-info { | |
| @extend %icon; | |
| color: blue; | |
| } | |
| ////////////////////////////////////////// | |
| @mixin media($type) { | |
| @if $type == tablet { | |
| @media only screen and (min-width:768px) and (max-width:991px) { | |
| @content; | |
| } | |
| } | |
| @else if $type == mobile { | |
| @media only screen and (max-width:767px) { | |
| @content; | |
| } | |
| } | |
| } | |
| .content { | |
| width: 960px; | |
| @include media(tablet) { | |
| width: 720px; | |
| } | |
| @include media(mobile) { | |
| width: 90%; | |
| } | |
| } | |
This file contains hidden or 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
| .border-radius { | |
| -webkit-border-raius: 5px; | |
| -moz-border-raius: 5px; | |
| -ms-border-raius: 5px; | |
| -o-border-raius: 5px; | |
| border-raius: 5px; | |
| } | |
| .icon-error, .icon-info { | |
| transition: background-color ease .2s; | |
| margin: 0 .5em; | |
| } | |
| .icon-error { | |
| color: red; | |
| } | |
| .icon-info { | |
| color: blue; | |
| } | |
| .content { | |
| width: 960px; | |
| } | |
| @media only screen and (min-width: 768px) and (max-width: 991px) { | |
| .content { | |
| width: 720px; | |
| } | |
| } | |
| @media only screen and (max-width: 767px) { | |
| .content { | |
| width: 90%; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment