-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
_sass files could all be in extendable placeholders. #12
Comments
Hey @AhoyLemon, I had initially thought of that but instead broke out each type as its own partial. If someone is using the Sass setup and does not want to include 1 or more styles, they can easily go to
Aside from that, I’m not sure if there’s added value of Extends as opposed to what’s currently in place, but all ears in the event I’m missing something and there’s a compelling reason to change it. |
Commenting out source files of a package isn't the best scenario when using package managers such as Bower. It's expected that packages remain intact, and as such, the components themselves are often not committed with the projects they are included in. |
@christianmagill Valid and great point! +@AhoyLemon Instead of extends, I came up with an alternate solution. I added another settings variable, $hamburger-types (3dx, 3dy); When you don’t set it, it includes all of the types by default. Here’s the commit: |
Looks great! Thanks |
Just tried to compile Hamburgers using Sass and I get the following:
Compiles beautifully when I remove the |
@resknow Hm. Curious, with what are you compiling the Sass with? And what version? Seems like it’s libsass related and the issue could be fixed in a latter version sass/libsass#1724 |
I'm using Ruby Sass v3.4.20 (Selective Steve). |
@resknow Good to know! Apparently later versions of libsass allows |
@jonsuh Thanks! Works perfectly now. |
Awesome! Gonna safely assume this issue is good to close |
For the sass structure, do you think it might be helpful to rewrite the library using placeholders instead of classes? Ex:
That could help in a situation where somebody is getting the whole package but only want to use one of the transitions, and don't want to inflate the code with the ones they don't use.
The text was updated successfully, but these errors were encountered: