Replies: 1 comment 2 replies
-
Is that a thing you can do with CSS only? Otherwise, I'd suggest doing this with JavaScript and write a small plugin to do this. https://play.tailwindcss.com/UHV8p9ynTJ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Would it be possible to add utility classes to detect certain browsers or operating systems ?
I currently have a little dropdown on my website where people can add an appointment to their calendar.

Preferably I would like Apple Calendar to be only visible on iOS devices.
So I am thinking of something like the classes
platform-ios
: Targets iOS devicesplatform-android
: Targets Android devicesplatform-windows
: Targets Windows devicesThat way could do this for example:
I know there's javascript packages as well for detecting a device, and you could use a simple use agent check to render an element or not. But I think it could be nice to have something so you could do
platform-ios:bg-red
as wellThoughts ?
Beta Was this translation helpful? Give feedback.
All reactions