[Feature proposal]: ":fullscreen" CSS pseudo-class #1578
MasseGuillaume
started this conversation in
Ideas
Replies: 3 comments 4 replies
-
+1 In the meanwhile I can achieve it by adding a custom plugin in tailwind.config.js: plugins: [
plugin(function({ addVariant }) {
addVariant('fullscreen', '&:fullscreen');
})
], |
Beta Was this translation helpful? Give feedback.
1 reply
-
If someone needs support also for plugins: [
plugin(({ addVariant }) => {
addVariant('fullscreen', '&:fullscreen');
addVariant('group-fullscreen', ':merge(.group):fullscreen &');
addVariant('peer-fullscreen', ':merge(.peer):fullscreen ~ &');
}),
], |
Beta Was this translation helpful? Give feedback.
0 replies
-
When using v4 the same thing can be accomplished by adding @variant fullscreen (&:fullscreen);
@variant group-fullscreen (.group:fullscreen &);
@variant peer-fullscreen (.peer:fullscreen &); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would love to see support for https://developer.mozilla.org/en-US/docs/Web/CSS/:fullscreen
Beta Was this translation helpful? Give feedback.
All reactions