From 235671948ef3a9c343c4391d250082a0373c8d83 Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Thu, 28 Jan 2016 11:55:16 +0100 Subject: [PATCH] Add `@content` to the `font-face` mixin - This allows additional properties to be include with the mixin and output within the `@font-face` declaration - Closes #806 --- core/bourbon/addons/_font-face.scss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/bourbon/addons/_font-face.scss b/core/bourbon/addons/_font-face.scss index bdc565f8d..a06af4cf6 100644 --- a/core/bourbon/addons/_font-face.scss +++ b/core/bourbon/addons/_font-face.scss @@ -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 /// @@ -58,7 +59,6 @@ font-family: $font-family; font-style: $style; font-weight: $weight; - src: _font-source-declaration( $font-family, $file-path, @@ -66,5 +66,6 @@ $file-formats, $font-url-prefix ); + @content; } }