this post was submitted on 06 Jul 2023
2 points (100.0% liked)

Firefox CSS

446 readers
1 users here now

Pushing the limits of the Firefox Browser through the use of CSS.

#join #firefoxcss:mozilla.org

Post your Firefox UI customizations here!

What is userChrome.css?

Rules (enforced)

  1. Posts must have flair!

  2. Follow Lemmy.World rules

  3. Posts cannot be memes/shitposts. They should be about Firefox customization with CSS.

  4. Please be civil. Bear in mind that many users come here for help and would be turned off by insults and rudeness.

  5. 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.

  6. Do NOT use url-shorteners or link to compressed downloads (such as zip or rar) when sharing code.

Guidelines (not enforced)

Consider adding the following info to help people try your tweaks:

  1. Screenshots should have code in comments.

  2. Include Firefox version

  3. When asking for help you should share your custom style to help others understand what you are doing. This is increasingly important the more custom rules you have.

  4. List any other addons that may be changing the UI

  5. If a custom wallpaper is used, include a link to the original.

  6. If someone's comment solves you problem, reply to the comment to let them know, and change your post flair to solved.

Wiki

Find Helpful Knowledge and answers to common issues in /c/FirefoxCSS wiki.

Links

Lemmy Communities

Websites

founded 1 year ago
MODERATORS
 

Hi, i was trying to change the background of the pocket stories in the Firefox homepage with this code

@-moz-document url("about:home"), url("about:newtab"){
  div.meta{
    background-color: #08111c !important;
  }
}

yet the pocket stories are still the same default grey color.

What is wrong with my code?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (1 children)

I don't see any problems with it, your CSS works just fine. Make sure you put that into userContent.css, not userChrome.css because newtab page is a content document.

Also, please use the community at fedia, https://lemmy.world/c/[email protected]

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Okay, your userContent.css is missing a closing bracket } in a few places, that's probably what is causing the issue.

You need to close your @-moz-document blocks before opening a new one.

[–] [email protected] 1 points 1 year ago

Yeah that was the culprit thank you so much! It now works.