Comments (7)
Yeap, I think skipping will be useful. But what API we should use?
input:only-hover {}
/* postcss-focus: disable */
input:only-hover {}
What do you think?
from postcss-focus.
:only-hover
sounds nice, didn’t think of that! But, following currently available pseudo selectors, maybe parsing something like :hover:not(:focus)
could produce only :hover
styles? Or is this something too complicated?
from postcss-focus.
@niksy :hover:not(:focus)
is awesome idea!
Do you want to make a PR? (I will be able to fix it only in Wednesday)
from postcss-focus.
@ai looking at it more closely, :hover:not(:focus)
maybe doesn’t represent something which will produce desired output—it just isn’t clear enough, it means that hover styles should be applied only when focus is not active. :only-hover
probably gives more expecting end result.
I had similar idea for this plugin some time ago and was delighted to see you created something like that. My idea was to create new pseudo selector, :fover
(as in focus+hover) which will do this, and could also remove outline as described in #2. Is going the route of new pseudo selector something you would consider?
from postcss-focus.
@niksy postcss-fover
is a nice solution too. We can crosslink each other.
from postcss-focus.
@ai There is a new PostCSS plugin which does exactly this with :enter
pseudo class https://github.com/jonathantneal/postcss-pseudo-class-enter
from postcss-focus.
Done 904572b
from postcss-focus.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-focus.