this post was submitted on 27 Oct 2024
6 points (100.0% liked)

Firefox CSS

452 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 2 years ago
MODERATORS
 

like this: https://i.imgur.com/vu85Vtp.png

Previously I've used the "Decrease toolbar height" section from here, which stopped working correctly a few days ago so I messed around and ended up with:

toolbar#nav-bar {
  height: 26px !important;
}
.urlbar-input-container {
  height: 26px !important;
  margin-top: -4px !important;
  margin-bottom: 0px !important;
}
#urlbar-background {
  height: 20px !important;
  margin-top: -1px !important;
  margin-bottom: 0px !important;
}

But almost every day the urlbar moves up or down from where I set it and I have to change the values above accordingly.

edit: the changes seem to have stopped. I've updated the code with the currently-working values

you are viewing a single comment's thread
view the rest of the comments
[–] MrOtherGuy 2 points 1 month ago (1 children)

You are almost certainly experiencing changed behavior from this bug

[–] [email protected] 1 points 1 month ago (1 children)

Thank you. Do you know if there's a way to disable/bypass that behavior?

[–] MrOtherGuy 1 points 1 month ago

With prefs or CSS no, but there's been quite lot of other changes related to that, and I think there's a non-zero chance that some other change could get introduced that could be used to fix custom styling for urlbar.