Site specific stylesheets in Mozilla
19th August 2004
New in Mozilla 1.8 Alpha 3: bug 238099—implement at-rule for matching on site/document URL. Here’s the example:
@-moz-document url-prefix(http://www.mozilla.org/) {
#q { background: white ! important; color: black ! important; }
}
Drop that in your userContent.css file for black-on-white search fields, but only for pages with URLs starting in http://www.mozilla.org/. Two other selection functions are available: domain(mozilla.org)
for all page (and sub-domains) of the mozilla.org domain and url(http://www.mozilla.org/)
for just the page matching that exact URL.
The sooner this makes it in to Firefox the better.
More recent articles
- W̶e̶e̶k̶n̶o̶t̶e̶s̶ Monthnotes for October - 30th October 2024
- You can now run prompts against images, audio and video in your terminal using LLM - 29th October 2024
- Run a prompt to generate and execute jq programs using llm-jq - 27th October 2024