// This usage example assumes you've imported the mixin
// from a library or further up the stack
// IMPORTANT: This example also leverages a mixin available in Compass
h1 {
@include replace-text-with-dimensions("logo.png");
@include stretch-link;
}
// This can also be condensed to one line:
h1 { @include replace-text-with-dimensions("logo.png"); @include stretch-link; }
// Here's an alternate using mixins only from Compass
// Thanks for the heads up Chris: https://twitter.com/#!/compass/status/112994911632101376
h1 {
@include replace-text-with-dimensions("logo.png");
position: relative;
a { @include stretch; }
}
// And again, condensed to one line:
h1 { @include replace-text-with-dimensions("logo.png"); position: relative; a { @include stretch; } }