Skip to content

Instantly share code, notes, and snippets.

@jefsnare
Created June 3, 2014 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jefsnare/4cd460f429fb2f34850e to your computer and use it in GitHub Desktop.
Save jefsnare/4cd460f429fb2f34850e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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);
}
.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