-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set base font size for each breakpoint (#295)
* Set base font size for each breakpoint and testing for modular typography * Change default scale value of modular-typography to 1 since that's in the doc
- Loading branch information
1 parent
f763252
commit 403d237
Showing
8 changed files
with
60 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
core/scss/utilities/mixins/modular-scale/_modular-typography-base.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@charset 'UTF-8'; | ||
|
||
// | ||
// @modular-typography-base | ||
// | ||
// Set base font-size for <body> at each breakpoint to use with modular typography. | ||
// | ||
// Style guide: Mixins.Modular.modular-typography-base | ||
// | ||
@mixin modular-typography-base($grid: $grid-media) { | ||
@each $key, $breakpoint in $grid { | ||
@include grid-media($key) { | ||
font-size: map-get($modular-typography-base, $key); | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ | |
|
||
@import | ||
'modular-spacing', | ||
'modular-typography-base', | ||
'modular-typography'; |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.