parent
4cac9ab1c3
commit
1b1ef51778
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
@use 'sass:math';
|
||||||
|
|
||||||
// OpenDyslexic
|
// OpenDyslexic
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'OpenDyslexic';
|
font-family: 'OpenDyslexic';
|
||||||
|
@ -46,14 +48,14 @@
|
||||||
// html and body declaration allows developer to pass px value as argument
|
// html and body declaration allows developer to pass px value as argument
|
||||||
// Rendered css will default to "rem" and fall back to "px" for unsupported browsers
|
// Rendered css will default to "rem" and fall back to "px" for unsupported browsers
|
||||||
@mixin font-size($size) {
|
@mixin font-size($size) {
|
||||||
$rem: ($size / 10);
|
$rem: math.div($size, 10);
|
||||||
$px: $size;
|
$px: $size;
|
||||||
font-size: #{$px + "px"};
|
font-size: #{$px + "px"};
|
||||||
font-size: #{$rem + "rem"};
|
font-size: #{$rem + "rem"};
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin line-height($size) {
|
@mixin line-height($size) {
|
||||||
$rem: ($size / 10);
|
$rem: math.div($size, 10);
|
||||||
$px: $size;
|
$px: $size;
|
||||||
line-height: #{$px + "px"};
|
line-height: #{$px + "px"};
|
||||||
line-height: #{$rem + "rem"};
|
line-height: #{$rem + "rem"};
|
||||||
|
|
Loading…
Reference in a new issue