Created
January 31, 2014 21:28
-
-
Save pudgereyem/8743542 to your computer and use it in GitHub Desktop.
SCSS: font-feature-settings mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 experimental(font-feature-settings, $settings); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment