Skip to content

Commit

Permalink
Add round func to _spacing-class-generator (#777)
Browse files Browse the repository at this point in the history
* add round func

* npm run prod

* update changelog

* build

* revert change

* add back change

* debug

* add use of round func

* add comment
  • Loading branch information
eboniebutler authored Mar 24, 2023
1 parent f89911f commit 8932a30
Show file tree
Hide file tree
Showing 21 changed files with 427 additions and 98 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unpublished Changes
* larva-scss - Use `round` func when generating spacing utility classes to prevent errors when converting rems to pixels for class name.

## 1.43.1 02-21-2023
* Re-build larva JSON/versioning
Expand Down
2 changes: 1 addition & 1 deletion build/css/larva-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.inline-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/css/larva.inline.css

Large diffs are not rendered by default.

159 changes: 146 additions & 13 deletions build/js/common.js

Large diffs are not rendered by default.

31 changes: 30 additions & 1 deletion build/js/larva-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/svg/defs/sprite.defs.html
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ <h2>youtube</h2>

</section>
<footer>
<p>Generated at Tue, 14 Feb 2023 19:19:26 GMT by <a href="https://github.com/svg-sprite/svg-sprite" target="_blank" rel="noopener noreferrer">svg-sprite</a>.</p>
<p>Generated at Thu, 23 Mar 2023 18:54:47 GMT by <a href="https://github.com/svg-sprite/svg-sprite" target="_blank" rel="noopener noreferrer">svg-sprite</a>.</p>
</footer>
</body>
</html>
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/larva-css/build/css/algorithms.common.inline.css

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions packages/larva-css/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions packages/larva-patterns/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
// Multiply by 100 to turn values less than 1 (e.g. 0.25)
// into non-decimals with a leading zero (e.g. 025).
$value: '0' + $value * 100;
} @else if (round($value) != $value) {
// If value is not a whole number (e.g. 1.5), multiply
// by 100 to make it so (e.g. 150).
$value: $value * 100;
}

@if (length($token) == 3) {
Expand Down
2 changes: 1 addition & 1 deletion packages/larva/build/css/larva-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.inline-important.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/larva/build/css/larva.inline.css

Large diffs are not rendered by default.

Loading

1 comment on commit 8932a30

@vercel
Copy link

@vercel vercel bot commented on 8932a30 Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pmc-larva – ./

pmc-larva-penske-media-corp.vercel.app
pmc-larva-git-master-penske-media-corp.vercel.app

Please sign in to comment.