Skip to content

Instantly share code, notes, and snippets.

@manuelbieh
Created January 12, 2015 15:27
Show Gist options
  • Save manuelbieh/53db26f8b13b314d1c5a to your computer and use it in GitHub Desktop.
Save manuelbieh/53db26f8b13b314d1c5a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@mixin font-headline($type, $color: "") {
@if $type == h1 {
$font-size-headline: 28;
} @else if $type == h2 {
$font-size-headline: 24;
} @else if $type == h3 {
$font-size-headline: 20;
/* ... */
} @else {
@error 'Missing headline type';
}
@if $color == orange {
color: #f90;
} @else if $color == black or $color == default {
color: #111;
}
font: 700 #{$font-size-headline}/1.25 Arial, sans-serif;
}
.foo {
@include font-headline(h1);
}
.bar {
@include font-headline(h2, orange);
}
Undefined variable: "$font-size-headline".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment