This file contains hidden or 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
@function extract-type-variant($type) | |
{ | |
@return nth($type, 2); | |
} |
This file contains hidden or 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
@function extract-type-style($type) | |
{ | |
@return nth($type, 1); | |
} |
This file contains hidden or 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
@function px-to-relative-line-height($target-px, $context: $base-font-size, $unit: $leading-unit) | |
{ | |
@return px-to-relative-size($target-px, $context, $unit); | |
} |
This file contains hidden or 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
@function px-to-relative-font-size($target-px, $context: $base-font-size, $unit: $font-unit) { | |
@return px-to-relative-size($target-px, $context, $unit); | |
} |
This file contains hidden or 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
@mixin line-height($target,$context:$base-line-height) | |
{ | |
// line-height: px-to-relative-line-height($target, $context); | |
@include adjust-leading-to($target, $context); | |
} |
This file contains hidden or 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
@mixin font-size($target,$context:$base-font-size) | |
{ | |
// font-size: px-to-relative-font-size($target, $context); | |
@include adjust-font-size-to($target, $context); | |
} |
This file contains hidden or 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
@mixin font-family($type) | |
{ | |
font-family: extract-type-family($type); | |
} |
This file contains hidden or 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
@mixin font-weight($type) | |
{ | |
font-weight: extract-type-weight($type); | |
} |
This file contains hidden or 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
@mixin font-variant($type) | |
{ | |
font-variant: extract-type-variant($type); | |
} |
This file contains hidden or 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
@mixin font-style($type) | |
{ | |
font-style: extract-type-style($type); | |
} |