Skip to content

Instantly share code, notes, and snippets.

@srikant
Created October 15, 2014 19:01
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 srikant/10d06a8802121ba0c4a6 to your computer and use it in GitHub Desktop.
Save srikant/10d06a8802121ba0c4a6 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
%h1 mobilewebdeveloper.me!
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
@function MakeColor ($color) {
@return $color + #010;
}
@mixin textFormat($size, $family, $color) {
font: {
size: $size;
family: $family;
};
color: MakeColor($color);
}
.block {
color: orange;
}
.foo {
@include textFormat(12px, verdana, red);
@extend .block;
font-size: 12px;
padding: 10px;
width: 50%;
.nested-foo {
background-color: green;
}
}
.block, .foo {
color: orange;
}
.foo {
font-size: 12px;
font-family: verdana;
color: #ff1100;
font-size: 12px;
padding: 10px;
width: 50%;
}
.foo .nested-foo {
background-color: green;
}
<h1>mobilewebdeveloper.me!</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment