stylesheets/stitch/patterns/layout/_media.scss in stitch-0.0.3 vs stylesheets/stitch/patterns/layout/_media.scss in stitch-0.1.0
- old
+ new
@@ -9,15 +9,16 @@
<img class="content-image" />
<div class="content"></div>
</div>
*/
-@mixin content-with-media($position: left, $spacing:20px, $image: '.content-image', $content: '.content') {
- #{unquote($image)} {
+@mixin media-block($position: left, $spacing:0, $media: '.media', $block: '.block') {
+ #{unquote($media)} {
float:$position;
- margin-#{opposite-position($position)}:$spacing;
+ @if $spacing > 0 {
+ margin-#{opposite-position($position)}:$spacing;
+ }
}
- #{unquote($content)} {
+ #{unquote($block)} {
overflow:hidden;
- float:none;
}
}
\ No newline at end of file