Created
June 3, 2014 08:03
-
-
Save jefsnare/4cd460f429fb2f34850e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
//assignment 1 | |
.car { | |
zoom: 1; | |
&__tire { | |
zoom: 2; | |
} | |
&--bmw { | |
zoom: 3; | |
&__tire { | |
zoom: 4; | |
} | |
} | |
} | |
//assignment 2 | |
p { | |
box-shadow: 0 0 5px #000; | |
.no-boxshadow & { | |
border: solid 1px #000; | |
} | |
} | |
//assignment 3 | |
@mixin box-sizing($box-model) { | |
-webkit-box-sizing: $box-model; | |
-moz-box-sizing: $box-model; | |
box-sizing: $box-model; | |
} | |
@mixin rotate($degrees) { | |
-ms-transform: rotate(#{$degrees}deg); | |
transform: rotate(#{$degrees}deg); | |
} | |
p { | |
@include box-sizing(border-box); | |
@include rotate(90); | |
} |
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
.car { | |
zoom: 1; | |
} | |
.car__tire { | |
zoom: 2; | |
} | |
.car--bmw { | |
zoom: 3; | |
} | |
.car--bmw__tire { | |
zoom: 4; | |
} | |
p { | |
box-shadow: 0 0 5px #000; | |
} | |
.no-boxshadow p { | |
border: solid 1px #000; | |
} | |
p { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
-ms-transform: rotate(90deg); | |
transform: rotate(90deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment