Skip to content

Instantly share code, notes, and snippets.

@pudgereyem
Created January 31, 2014 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pudgereyem/8743542 to your computer and use it in GitHub Desktop.
Save pudgereyem/8743542 to your computer and use it in GitHub Desktop.
SCSS: font-feature-settings mixin
// 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