Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Add @content to the font-face mixin
Browse files Browse the repository at this point in the history
- This allows additional properties to be include with the mixin and output
  within the `@font-face` declaration
- Closes #806
  • Loading branch information
KittyGiraudel authored and Tyson Gach committed Feb 5, 2016
1 parent c4df69a commit 2356719
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/bourbon/addons/_font-face.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@charset "UTF-8";

/// Generates an @font-face declaration. Accepts arugments for weight, style,
/// usage with the Rails Asset Pipeline and file formats.
/// Generates an @font-face declaration. Accepts arguments for weight, style,
/// usage with the Rails Asset Pipeline and file formats. Also possible to
/// pass additional `@content` to the mixin, for instance `unicode-range`.
///
/// @argument {string} $font-family
///
Expand Down Expand Up @@ -58,13 +59,13 @@
font-family: $font-family;
font-style: $style;
font-weight: $weight;

src: _font-source-declaration(
$font-family,
$file-path,
$asset-pipeline,
$file-formats,
$font-url-prefix
);
@content;
}
}

0 comments on commit 2356719

Please sign in to comment.