Skip to content
Browse files

[refs #182] Use new headings mixin courtesy of @thierrylemoulec

  • Loading branch information...
1 parent b321594 commit 0c1bcc2d033b28ffb226af42aa6cdbf016d256e7 @csswizardry committed Mar 19, 2013
Showing with 10 additions and 8 deletions.
  1. +10 −8 generic/_mixins.scss
View
18 generic/_mixins.scss
@@ -28,17 +28,19 @@
}
}
*
- * With thanks to @lar_zzz, @paranoida and @rowanmanning for refining and
- * improving my initial mixin.
+ * With thanks to @lar_zzz, @paranoida, @rowanmanning and ultimately
+ * @thierrylemoulec for refining and improving my initial mixin.
*/
@mixin headings($from: 1, $to: 6){
+ %base-heading {
+ @content
+ }
+
@if $from >= 1 and $to <= 6{
- $heading-selector: (unquote(""));
- @for $i from $from through $to {
- $heading-selector: $heading-selector, unquote("h#{$i}")
- }
- #{$heading-selector}{
- @content
+ @for $i from $from through $to{
+ h#{$i}{
+ @extend %base-heading;
+ }
}
}
}

0 comments on commit 0c1bcc2

Please sign in to comment.
Something went wrong with that request. Please try again.