stylesheets/_layout.scss in compass-excess-0.3.1 vs stylesheets/_layout.scss in compass-excess-0.4.0
- old
+ new
@@ -47,9 +47,14 @@
@media only screen and (min-width: #{breakpoint($min-width)}) and (max-width: #{breakpoint($max-width) - 1px}) {
@content;
}
} // @mixin between-widths
-@mixin desktop-width {
+@mixin desktop-width($margin: 0 auto) {
max-width: breakpoint(desktop_medium);
- margin: 0 auto;
+ margin: $margin;
} // @mixin desktop-width
+
+@mixin auto-width($breakpoint, $margin: 0 auto) {
+ max-width: breakpoint($breakpoint);
+ margin: $margin;
+} // @mixin auto-width