Skip to content

Commit

Permalink
Fixed small bug in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaydek Michels-Gualtieri committed Dec 19, 2020
1 parent ed06e06 commit 37e479e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/duomo/configuration/variants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $variants: (
container: to-array(core),
group: to-array(core),

// Stacks (and CSS Grid) take precedence
// Stacks (and CSS Grid) take precedence.
stacks: to-array(core, responsive),
border-radius: to-array(core, responsive),
border-width: to-array(core, responsive),
Expand Down
3 changes: 2 additions & 1 deletion src/duomo/core/font-weight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@

$-opts: (100, 200, 300, 400, 500, 600, 700, 800, 900);

// TODO: Change to `generate-from-range` API?
@mixin font-weight($variants...) {
@include variants($variants...) using ($v) {
@each $rv in $-opts {
#{variant($rv, $v)} {
#{variant(weight-#{$rv}, $v)} {
font-weight: $rv;
}
}
Expand Down

0 comments on commit 37e479e

Please sign in to comment.