Comments (8)
Here's a PR written by my coworker that fixes the current issue
from compass-mixins.
We're having the exact same issue here. We were able to fix all the instances in our own code by wrapping divisions with calc()
but we can't fix the warnings related to compass-mixins since it's in node_modules
. Could the fix be as simple as wrapping those in calc()
? I could open a PR if that's the case.
from compass-mixins.
@blaiz
Thank you for your comment.
Could the fix be as simple as wrapping those in calc ()?
Yes, that's right. The official page also says:
This deprecation does not affect uses of / inside calc () expressions.
Alternatively, users can wrap division operations inside a calc() expression, which Sass will simplify to a single number.
// WRONG, will not work in future Sass versions.
@debug (12px/4px); // 3// RIGHT, will work in future Sass versions.
@debug calc(12px / 4px); // 3
https://sass-lang.com/d/slash-div
We apologize for the inconvenience, but we would be grateful if you could fix it.
from compass-mixins.
I got the following warning:
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
32 │ $base-rhythm-unit: $base-line-height / $base-font-size * $font-unit;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/compass-mixins/lib/compass/typography/_vertical_rhythm.scss 32:20 @import
36 │ $base-leader: ($base-line-height - $base-font-size) * $font-unit / $base-font-size;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/compass-mixins/lib/compass/typography/_vertical_rhythm.scss 36:15 @import
40 │ $base-half-leader: $base-leader / 2;
│ ^^^^^^^^^^^^^^^^
node_modules/compass-mixins/lib/compass/typography/_vertical_rhythm.scss 40:20 @import
120 │ $rhythm: $font-unit * ($lines * $base-line-height - $offset) / $font-size;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/compass-mixins/lib/compass/typography/_vertical_rhythm.scss 120:12 rhythm()
Maybe there are other things I missed.
I'm not confident ..., but I also get the source and are looking for parts to repair.
from compass-mixins.
Could you please submit a PR with the changes ? Thanks
from compass-mixins.
from compass-mixins.
I don't get any warnings at hand.
Pushing to github.com:Igosuki/compass-mixins.git
ERROR: Permission to Igosuki/compass-mixins.git denied to hiratsuka-r.
fatal: Could not read from remote repository.
Please add to the team with write access to the repository.
↑ It doesn't matter if it's temporary.
from compass-mixins.
@blaiz @SiriVadlapudi
I'm sorry it took a long time
Thank you for the fix! I checked the contents of the pull request.
There was only one difference from what I fixed. I made a comment.
Please check them when you have time.
from compass-mixins.
Related Issues (20)
- File to import not found or unreadable: compass HOT 1
- @elseif instead of @else if HOT 6
- mixins transition output compact function HOT 3
- font-face and font-files
- compass-mixins not translating background-image property correctly in browser
- Error while compiling with webpack HOT 1
- Undefined operation: times HOT 1
- Please publish v0.12.11 on npm HOT 1
- it throws a deprecation warning : Slash as Division
- Please publish v0.12.12 on npm HOT 4
- New release..? HOT 3
- Broken on node-sass@^3.5.0 HOT 34
- Invalid Sass HOT 4
- How to configurate sprites using compass-mixins? HOT 4
- Missing `rhythm-padding` mixin
- @background-image mixin not accepting value HOT 1
- Gradient has outdated direction syntax. HOT 3
- 1.0.2 version in maven central - missing files
- Bower update from "latest" returns older version (0.12.3) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compass-mixins.