this post was submitted on 25 Feb 2025
2 points (100.0% liked)

Firefox Customs

64 readers
3 users here now

Chat with us!

Post your unsupported Firefox customizations here!

From the makers of r/FirefoxCSS

Links

Related

Rules

  1. Posts must have flair!
  2. Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.
  3. Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.
  4. When posting large amount of code use a service dedicated to hosting text snippets, such as pastebin, hastebin, github gist or equivalent. Relatively short snippets can be wrapped in code-block for inline viewing.
  5. Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.

founded 2 years ago
MODERATORS
 

I would like to apply the next code only when using X11:

/* Remove unwanted margin of menupopup just in linux */
    
    @media (-moz-platform: linux) {
        #appMenu-popup {
            --panel-shadow-margin: 0px !important;
            --panel-padding-block: 0px !important;
        }
    }

this code when using Wayland makes the popup unaligned.

top 2 comments
sorted by: hot top controversial new old
[โ€“] MrOtherGuy 1 points 1 week ago (1 children)

I doubt there's any way for css to really distinguish between the two. But few things come to mind that I could believe might be usable as a proxy; perhaps there is a pref that is set only in wayland or only in x11 systems, or perhaps the window has some attribute set only in one of the two modes. If nothing else, you could invent a pref and use that to manually select when your rules should apply.

[โ€“] Godie 1 points 1 week ago

I see, thanks for the answer. ๐Ÿซฑ๐Ÿปโ€๐Ÿซฒ๐Ÿผ