media query to detect Firefox's default theme

家住魔仙堡 提交于 2019-12-13 05:24:42

问题


Is there any media query to detect if user is using Firefox's default theme

I have tried

@media (-moz-windows-default-theme: 1) {...}

but it is also triggered when I was on a custom theme (e.g. FD deep dark) The aim is to change some colors on the UI, but they don't look good on dark themes


回答1:


You're using it incorrectly, here's the right way to use it :

@media (-moz-windows-default-theme) {...}


来源:https://stackoverflow.com/questions/20303599/media-query-to-detect-firefoxs-default-theme

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!