Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
postcss-hyperform
Advanced tools
This PostCSS-Plugin allows you to convert advanced CSS pseudo-classes for form handling into their Hyperform counterparts.
Currently supported pseudo-classes and their transformation:
CSS selector | Class applied by Hyperform |
---|---|
:user-error | .hf-validated.hf-invalid |
:user-invalid | .hf-validated.hf-invalid |
:invalid | .hf-invalid |
:valid | .hf-valid |
Install via npm
:
npm install postcss-hyperform
Then use it:
postcss([ require('postcss-hyperform') ])
This will transform this perfectly standards-conform code (that is, unfortunately, not fully supported by any browser as of 2016)
.input:valid {
background: green;
}
.input:user-invalid {
background: red;
}
into this stylesheet, that works like a charm, if you also happen to use Hyperform:
.input:valid, .input.hf-valid {
background: green;
}
.input:user-invalid, .input.hf-validated.hf-invalid {
background: red;
}
:user-invalid
is lower than that of the two
replacement classes:in-range
, :out-of-range
, :required
, :optional
.
They will be added when this accompanying
issue is fixed.Written by Manuel Strehl, based on code by Kevin Suttle.
This code is published under the terms of the MIT license.
FAQs
Rewrite CSS pseudo-classes into Hyperform classes
The npm package postcss-hyperform receives a total of 0 weekly downloads. As such, postcss-hyperform popularity was classified as not popular.
We found that postcss-hyperform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.