-
Notifications
You must be signed in to change notification settings - Fork 73
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
No way to specify "border{direction}: none" #263
Comments
I see, good finding. A local workaround for you could be: key "border" none Solutions in the library might be to change the type signature of border :: Maybe (Size LengthUnit, Stroke, Color) -> CSS Or: data Border = Border
{ borderSize :: Size LengthUnit
, borderStroke :: Stroke
, borderColor :: Color
}
border :: Maybe Border -> CSS PRs welcome :) |
I think the simplest thing to do is not use borderRightStyle none
What the standard saysThe W3C draft says that border-right-width: none
border-right-style: initial
border-right-color: initial Strictly speaking, the W3C draft does not allow ... but ...Some browsers may interpret |
Sometimes I find myself needing to remove a border (often on
last-child
elements), but the following produces invalid CSS:borderRight none none none -- gives "border-right: none none none;" which the browser (Firefox in this case) rejects
Valid CSS would be
border-right: none
but I don't see a way to achieve this with Clay.The text was updated successfully, but these errors were encountered: