Provide a @media query to target major platform/toolkits
Categories
(Toolkit :: Themes, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: sfoster, Assigned: emilio)
References
Details
Attachments
(1 file, 1 obsolete file)
We currently use CONFIG["MOZ_WIDGET_TOOLKIT"]
to determine which of the windows/osx/linux theme directory branches to package. We don't have a good way to make a similar distinction from the stylesheet itself however.
I'd like to be able to provide a media query and set of rules for each of the major platforms/toolkits we support, e.g.
@media (-moz-platform: windows) {
/* some rules targeting windows OS */
}
@media (-moz-platform: osx) {
/* some rules targeting mac OS */
}
@media (-moz-platform: linux {
/* some rules targeting linux (by which I think we normally mean gtk in practice? */
}
I'm not sure what the naming or query structure should be. We support @media (-moz-mac-rtl
for example, but also @media (-moz-os-version: windows-win10)
.
Reporter | ||
Comment 1•2 years ago
|
||
Not sure if this is in the right bug component, but there's that bug :emilio. Let me know if I can answer any more questions about the requirement.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Allow differentiating non-windows platforms on it.
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b9a5979a66e Generalize moz-os-version into moz-platform. r=dao,preferences-reviewers,Gijs
Comment 4•2 years ago
|
||
bugherder |
Comment 5•2 years ago
|
||
find . -type f -not -path ".hg/" -not -path "suite/" -regex "..css$" -exec sed -i -E 's/-moz-os-version/-moz-platform/g' {} ;
Updated•2 years ago
|
Description
•