Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
fela-plugin-hover-media
Advanced tools
Extracts all :hover
styles and wrap them in a @media (hover: hover)
media query.
It is inspired by postcss-hover-media-feature.
This paragraph was copied from postcss-hover-media-feature and it perfectly answers the question.
Certain mobile browsers apply :hover
styles on 'tap', which (in most cases) isn't desirable. By wrapping :hover
styles with a Hover Media Feature media query these styles will only be applied on devices that support them.
yarn add fela-plugin-hover-media
You may alternatively use npm i --save fela-plugin-hover-media
.
Make sure to read the documentation on how to use plugins.
import { createRenderer } from 'fela'
import hoverMedia from 'fela-plugin-hover-media'
const renderer = createRenderer({
plugins: [hoverMedia()],
})
{
color: "red",
':hover': {
color: "blue"
}
}
{
color: "red",
'@media (hover: hover)': {
':hover': {
color: "blue"
}
}
}
Fela is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @robinweser and all the great contributors.
FAQs
Fela plugin to wrap :hover styles in @media (hover: hover)
The npm package fela-plugin-hover-media receives a total of 1,148 weekly downloads. As such, fela-plugin-hover-media popularity was classified as popular.
We found that fela-plugin-hover-media 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.