Skip to content

Instantly share code, notes, and snippets.

@joelbrennan0
Created January 20, 2016 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelbrennan0/bcdafc6a223d5eeccb7d to your computer and use it in GitHub Desktop.
Save joelbrennan0/bcdafc6a223d5eeccb7d to your computer and use it in GitHub Desktop.
@font-face _mixin
// Web fonts
@mixin font-face($family, $file) {
@font-face {
font-family: $family;
src: url('#{$path-font}/#{$file}-webfont.eot');
src: url('#{$path-font}/#{$file}-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$path-font}/#{$file}-webfont.woff') format('woff'),
url('#{$path-font}/#{$file}-webfont.ttf') format('truetype');
}
}
// Text
@mixin text($size, $l-height: null, $weight: null, $color: null) {
font-size: $size;
line-height: $l-height;
font-weight: $weight;
color: $color;
}
/* Pseudo-classes ------------------ */
a {
&:link {
color: $color-link-default;
text-decoration: none;
}
&:visited {
color: $color-link-visited;
}
&:hover {
color: rgba($color-link-default, .5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment