Skip to content

Instantly share code, notes, and snippets.

@onezerodigits
Last active May 10, 2016 14:36
Show Gist options
  • Save onezerodigits/39780f03d1bc0cd71afd28e5edaa7b9a to your computer and use it in GitHub Desktop.
Save onezerodigits/39780f03d1bc0cd71afd28e5edaa7b9a to your computer and use it in GitHub Desktop.
SCSS anti-patterns
@mixin link-colors($normal, $hover: null, $active: $hover, $visited: null, $focus: null) {
color: $normal;
&:visited { color: $visited; }
&:focus { color: $focus; }
&:hover { color: $hover; }
&:active { color: $active; }
}
@mixin apple {float: left; width: auto;}
@mixin opacity($opacity: 0.7) {
-moz-opacity: $opacity;
-khtml-opacity: $opacity;
-webkit-opacity: $opacity;
opacity: $opacity;
}
$dark-header-img-p-default:#222;
$font-size-28: 28px;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment