Closed wheresrhys closed 9 years ago
Here is your implementation:
@mixin wrap($selector: null) {
@if $selector {
#{$selector} { @content; }
} @else {
@warn "Mixin `wrap` included but no selector was given. Content will not be wrapped.";
@content;
}
}
@wheresrhys do we have a use case for it?
Ages ago I raised a few issues in order to granularly document some features originally requested by @kavanagh, to see if anyone else wanted them too. The use case I think is to enable having parts of a page which use a different grid. Fine by me to close this
Thanks @wheresrhys. Closing this until a real world use case comes up.
So that e.g.
.grid-area
prefixes each of the grid stylesheet's selectorsProposed implementation
Prerequisite for https://github.com/Financial-Times/o-grid-issues/issues/27