-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to not only to rely on sizes from the modular scale set, a custom font-size can be passed to the `fluidms-font-size()` mixin to allow to “break out” of the modular scale in special cases. BREAKING CHANGE: the name of the `$ms` argument for the `fluidms-font-size()` mixin has changed to `$font-size` to make it more natural to use if a custom font-size is used.
- Loading branch information
Showing
6 changed files
with
107 additions
and
49 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
language: node_js | ||
install: | ||
- npm ci | ||
script: | ||
- commitlint-travis |
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// /*------------------------------------*\ | ||
// #MS | ||
// \*------------------------------------*/ | ||
|
||
// To clearly indicate that a scale value is used, use it with a custom | ||
// function which just passes the number through. | ||
@function ms($scale: 0) { | ||
// Check if `scales` list has `$scale` entry. | ||
@if (index(map-get($FLUIDMS-CONFIG, scales), $scale)) { | ||
@return $scale; | ||
} @else { | ||
@error "`#{$scale}` is no valid entry in the `scales` list in `$FLUIDMS-CONFIG`."; | ||
} | ||
} |
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