-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation warnings after upgrading Sass when using ms
Variable
#171
Comments
Thank you. I have not updated in a while and Sass functionality as well as CSS has come a long way over the years. It may be about time for a re-write to take advantage of the new Sass module system. My main focus has been another typography tool, Typetura, and it's been a while since I've done modular scale stuff. |
@joyheron: The same thing happened to me yesterday. Until this is updated, I have copied the Then I updated the math divisions in three of the Sass partials to use Sass 1.33's new You can see the changes I made here: https://github.com/modularscale/modularscale-sass/compare/3.x...spenno:feature/math-division?expand=1 And a quick summary of the changes made: _functions.scss line 29: I would submit a pull request for this @scottkellum, but it would completely break for people still using LibSass. Although LibSass is now deprecated, I'm guessing you would prefer a more elegant transition than that :) |
@spenno Breaking changes are what Semantic Versioning and dependency lists are for. I may go ahead and do a major version bump. Now that exponents are now native to the Sass that will simplify a ton of code. Might as well do a big re-write. Note that I’ll likely make some changes to ms-respond in the process. Changes there may be breaking with that mixin, but I’ll try to avoid it. There have been a lot of advancements here and plenty of better ways to implement responsive typography. |
Thank you for looking into this! |
Related to exponents in sass: #113 |
Status update: The thing holding this up now is the responsive logic |
Does it make sense to prepare it for the upcoming CSS Container Queries? |
@strarsis Yes, part of the reason why I want to update it to output Typetura styles instead of locks/clamp as an option. It would be easier with post-processing stylesheets as opposed to pre-processing as you have to be more explicit in pre-processing. Use cases like #148 are difficult to build a nice syntax around. |
I got things working and the syntax is going to be something like this: @include ms.step using ($respond) {
foo {
// This will be responsive
bar: ms.step(2, $settings: $respond);
// If for some reason you don’t want something to be responsive in these blocks, you can do this
baz: ms.step(2)
// Shorthand will work here! And you can mix responsive and non-responsive values.
padding: ms.step(2, $settings: $respond) ms.step(1)
}
} I do not think I will support Related to issue #148 |
New release you can test out here: https://github.com/modularscale/modularscale-sass/releases/tag/v4.0.0.rc1 |
@scottkellum , hi! I'm sorry, but I didn't get the expose of the @use '../vendor/modularscale' with (
$settings: (base: 1rem, ratio: 1.25),
);
@forward '../vendor/modularscale'; It can be "imported" once and forwarded already configured. |
@robsonsobral thanks Rob, I will definitely look into this approach. I do like the ability to change the settings throughout your style sheet as needed, so I might want to make this work with that functionality. |
Thanks for your feedback @robsonsobral, I drafted a new release here: https://github.com/modularscale/modularscale-sass/releases/tag/v4.0.0.rc2 |
@scottkellum , I've been really busy, but I would like to do some tests before the release, if you don't mind. |
@robsonsobral I understand but I am also really busy. I would love a PR here if anyone has the time and is interested in contributing. If you do contribute please keep any configuration and dependencies to a minimum. If no one can help I may release next week without tests. |
To clarify, @ everyone reading this. I am looking for help to write tests and ensure distribution channels are solid before release. |
This lib/addon/plugin/toolkit/whatever has been a constant part of my work for years. So, I gonna to give it back to the community. |
Sharing a fairly low-effort workaround that works well for me. Install
On every |
@scottkellum Thank you for your work on this! I have been testing out the new One things that I noticed is that the migration from I am very happy to continue testing in the future. |
Since nothing has happened here for a long time, can we still expect an update? |
I just upgraded my Sass version to
1.33.0
, but now I have a lot of deprecated messages whenever I use thems
function within my code base. Since I use it in many different places in my code base, this occurs quite often. Is there any chance you could update your package so that these messages disappear?The text was updated successfully, but these errors were encountered: