-
Notifications
You must be signed in to change notification settings - Fork 39
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 more standard pseudo-classes #82
Add more standard pseudo-classes #82
Conversation
link :: Refinement | ||
link = fromString ":link" | ||
|
||
-- TODO: not, nth-child, nth-last-child |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to implement this yet, so I've left several TODOs for those I had to skip
d36e2ac
to
3140f2d
Compare
3140f2d
to
741ec2e
Compare
@@ -14,7 +14,7 @@ import CSS.Geometry (bottom, height, left, lineHeight, margin, marginBottom, mar | |||
import CSS.Gradient (Extend, Radial, Ramp, circle, circular, closestCorner, closestSide, ellipse, elliptical, farthestCorner, farthestSide, hGradient, hRepeatingGradient, linearGradient, radialGradient, repeatingLinearGradient, repeatingRadialGradient, vGradient, vRepeatingGradient) as X | |||
import CSS.Property (class Val, Key(..), Literal(..), Prefixed(..), Value(..), cast, noCommas, plain, quote, value, (!)) as X | |||
import CSS.Render (Inline(..), Rendered, Sheet(..), collect, collect', face, feature, frame, getInline, getSheet, imp, kframe, mediaQuery, mediaType, merger, nel, predicate, properties, putInline, putStyleSheet, query', render, renderedInline, renderedSheet, rule', rules, selector, selector', selector'', sepWith) as X | |||
import CSS.Pseudo (hover) as X | |||
import CSS.Pseudo (active, any, anyLink, checked, default, defined, disabled, empty, enabled, first, firstChild, firstOfType, fullscreen, focus, focusVisible, hover, indeterminate, inRange, invalid, lastChild, lastOfType, link, onlyChild, onlyOfType, optional, outOfRange, readOnly, readWrite, required, root, scope, target, valid, visited) as X |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not re-exporting left
and right
here because there are two CSS properties with the same names that are already exported from the CSS.Geometry
module and I believe they are used more often
I think it makes sense to add these pseudo-classes as part of #101, so I'm closing this PR |
Used https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes as a reference.
Resolves #89