-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop migrating division inside calc expressions (#217)
Fixes #216.
- Loading branch information
Showing
4 changed files
with
67 additions
and
9 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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: sass_migrator | ||
version: 1.5.2 | ||
version: 1.5.3 | ||
description: A tool for running migrations on Sass files | ||
author: Jennifer Thakar <[email protected]> | ||
homepage: https://github.com/sass/migrator | ||
|
||
environment: | ||
|
@@ -18,7 +17,7 @@ dependencies: | |
node_interop: ^2.0.2 | ||
node_io: ^2.1.0 | ||
path: ^1.8.0 | ||
sass: ^1.38.1 | ||
sass: ^1.44.0 | ||
source_span: ^1.8.1 | ||
string_scanner: ^1.1.0 | ||
term_glyph: ^1.2.0 | ||
|
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,23 @@ | ||
<==> input/entrypoint.scss | ||
a { | ||
$x: 300px; | ||
$y: 100%; | ||
b: calc($x / 2); | ||
c: clamp($x / 10, $y / 4, $x / 2); | ||
d: min($x / 2, $y / 2); | ||
e: calc(max($x / 2, $y / 2) / 2); | ||
f: calc(#{$x / 2}); | ||
g: calc(fn($x / 2)); | ||
} | ||
|
||
<==> output/entrypoint.scss | ||
a { | ||
$x: 300px; | ||
$y: 100%; | ||
b: calc($x / 2); | ||
c: clamp($x / 10, $y / 4, $x / 2); | ||
d: min($x / 2, $y / 2); | ||
e: calc(max($x / 2, $y / 2) / 2); | ||
f: calc(#{$x * 0.5}); | ||
g: calc(fn($x * 0.5)); | ||
} |