Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

font-weight #4

Merged
merged 1 commit into from

3 participants

@carwin

I like being able to optionally define the font-weight via the ff() mixin, maybe some others will consider this useful.

@ElijahLynn

I could see this being useful.

@adamstac adamstac merged commit 8bd3089 into adamstac:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 25, 2012
  1. @carwin
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +4 −2 stylesheets/font-stacks/_mixin.scss
View
6 stylesheets/font-stacks/_mixin.scss
@@ -1,7 +1,9 @@
-@mixin font-family($family) {
+@mixin font-family($family, $weight: normal) {
font-family: font-family($family);
+ font-weight: $weight;
}
-@mixin ff($family) {
+@mixin ff($family, $weight: normal) {
@include font-family($family);
+ font-weight: $weight;
}
Something went wrong with that request. Please try again.