-
Notifications
You must be signed in to change notification settings - Fork 14
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
add 2 rules for same property #11
Comments
It might be, but I haven't implemented the functionality since i thought most use cases were for vendor prefixes and cross browser support, which it's possible to handle dynamically without multiple identical properties, with css in js.
The case you represent here might not fit that scenario though, and could be a good reason to add support for it. Would you care to describe why you'd need to do like in your example here?
Thanks :)
… On 3 Jun 2018, at 01:47, James Yang ***@***.***> wrote:
I've try to add 2 rules for same property like below:
console.log(b.cursor('ns-resize').cursor('-webkit-grab'))
But result is only last style, is this an issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
When adding style to drag & drop element, I like the |
Ah I see. That makes perfect sense. I'll look into it. Until then you can define them in separate instances like this :
That will generate 2 classes but still achieve the desired end result. |
About this issue, I'm also facing the flexbox problem: .page-wrap {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
}
.main-nav,
.main-sidebar {
-webkit-box-flex: 1; /* OLD - iOS 6-, Safari 3.1-6 */
width: 20%; /* For old syntax, otherwise collapses. */
-webkit-flex: 1; /* Safari 6.1+. iOS 7.1+, BB10 */
-ms-flex: 1; /* IE 10 */
flex: 1; /* NEW, Spec - Firefox, Chrome, Opera */
} I'm struggled to include above into bss also. |
Thanks a lot for the examples @futurist I'll look into it today ;) |
Hi @futurist.. So I did look into it, but got caught up in a small mind game about the last flex-box example you posted. So optimally I'd want bss to handle this behind the scenes. That means I'd want bss to simply take So — I'll be introducing support for multiple same named properties (as one expects would be possible), but I'll hold out on documenting it for now until I've thought through a proper solution for seamless cross-browser support.. I've just pushed the changes now, but I'll hold on with a new release until I've done some more testing. Would you mind trying out how it works for you with the latest commit? |
Yes, the lastest commit allow same property repeation, thanks! |
I've try to add 2 rules for same property like below:
But result is only last style, is this an issue?
The text was updated successfully, but these errors were encountered: