-
Notifications
You must be signed in to change notification settings - Fork 15
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
When '!important' used in declaration output is incorrect #10
Comments
might be late to answer, however you can use the @include ltr {
padding-left: 10px !important;
}
@include rtl {
padding-right: 10px !important;
} |
There's a better way if you can add |
pull requests are welcome, but should not break previous behavior ( backward compitable ) |
I managed to do it but not backward compatible :( ... I'll try and if i did it i'll make a pull request for sure |
@izer0x here's a quick proof of concept of how to implement the |
@anasnakawa looking good! but I remember that I did it in the same way and it threw an error. Anyway i'll look again and see how it plays :) |
#11 adds an extra space to the float mixin's output if you don't actually use !important (eg: "float: left ;") |
I think we need to have a better approach than quoting / unquoting |
Sure, although I find the extra boolean argument a bit funky, it makes the file a bit less readable, personally I would prefer to keep the "!important", don't know if that's possible though... |
but that extra boolean argument is optional, isn't it ? |
Hey there,
I'm using !important in some of my declarations. I notice that the output is incorrect in one of the sass files.
For example,
.selector{
@include float(left !important)
}
Will output to the following in the ltr and rtl files
.selector {
float: left !important;
}
The direction doesn't change in the RTL file
The text was updated successfully, but these errors were encountered: