Skip to content

Commit

Permalink
asmcss-mixin-w v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Sep 12, 2021
1 parent 7902c6a commit 0230ff3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<a name="1.1.0"></a>
# [1.1.0](https://github.com/Awilum/asmcss-mixin-w/compare/v1.0.1...v1.1.0) (2020-09-12)
* Added ability to make any fraction works by (@Explosion-Scratch)[https://github.com/Explosion-Scratch]

<a name="1.0.1"></a>
# [1.0.1](https://github.com/Awilum/asmcss-mixin-w/compare/v1.0.0...v1.0.1) (2020-09-12)
* Added `gulp-uglify` to minify build
Expand Down
1 change: 0 additions & 1 deletion dist/js/asmcss-mixin-w.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ AssemblerCSS.registerMixin("w", function (settings, fraction) {
return `w: ${fraction};`;
}


return `w: ${(fraction.split("/")[0] / fraction.split("/")[1]) * 100}%;`
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asmcss-mixin-w",
"version": "1.0.1",
"version": "1.1.0",
"description": "A mixin for Assembler CSS that provides extended functionality to set the width of an element.",
"repository": "https://github.com/Awilum/asmcss-mixin-w",
"bugs": "https://github.com/Awilum/asmcss-mixin-w/issues",
Expand Down
1 change: 0 additions & 1 deletion src/asmcss-mixin-w.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ AssemblerCSS.registerMixin("w", function (settings, fraction) {
return `w: ${fraction};`;
}


return `w: ${(fraction.split("/")[0] / fraction.split("/")[1]) * 100}%;`
});

0 comments on commit 0230ff3

Please sign in to comment.