Skip to content

Commit

Permalink
Adds font-feature-settings mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethormandy committed Dec 8, 2013
1 parent 185bfe6 commit 011bde6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/css3/_font-feature-settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Font feature settings mixin and property default.
// Examples: @include font-feature-settings("liga");
// @include font-feature-settings("lnum" false);
// @include font-feature-settings("pnum" 1, "kern" 0);
// @include font-feature-settings("ss01", "ss02");

@mixin font-feature-settings($settings...) {
@if length($settings) == 0 { $settings: none; }
@include prefixer(font-feature-settings, $settings, webkit moz ms spec);
}

0 comments on commit 011bde6

Please sign in to comment.