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
Semigroup on refinements? #53
Comments
Just to clarify, should the |
Does this do what you wanted?
|
It does, but if I am already "in" And yes, all of those pseudo selectors should have the same rules. |
icwym, I experienced this the other day. |
Makes sense. You do want to be able to say |
I'm a bit curious about how you'd like this to work in certain cases. With the trivial Monoid instance I'm playing with, this renders as Conceptually, I think this is the right way to make Refinement a Monoid, but I'm open to being convinced that the split case is the better default. |
I agree that what your suggesting. I can't say I gave the semigroup much thought, but seeing as pseudo selectors "stack" I'd be ok with your proposal. |
I stumbled over So it would more sense to make it a commutative semigroup that combines its effects in that manner. |
I guess it would make sense to make |
Stale issue message |
I wanted to set
outline-style:none
for botha:active
anda:visited
, and thought I could do(":active" <> ":hover") & outlineStyle none
, butRefinement
is not aMonoid
orSemigroup
instance. In the end I did:Which does the job, but it is a tad verbose.
It also doesn't produce
a:active, a:focus
as I wanted, but instead gives me two separate blocks.The text was updated successfully, but these errors were encountered: