5 ms·
I just tried Stylish add-on for Firefox. Works great except I can't seem to figure out a way to make custom styles work for only a specific page. Maybe I'm miss
by skcin7 14y ago
I just tried Stylish add-on for Firefox. Works great except I can't seem to figure out a way to make custom styles work for only a specific page. Maybe I'm missing something but there doesn't seem to be a way.
For example if you have .margin-width CSS class defined it will work on any page that has .margin-width CSS class, not just desired page (like Facebook).
- bpierre 14y agoYou can use @-moz-document, I’m using this with dotjs for Firefox https://github.com/rlr/dotjs-addon#css https://github.com/rlr/dotjs-addon#css
- KwanEsq 14y agoAs bpierre said @-moz-document rule, which I just discovered has actually been unprefixed since Fx6. Here's the MDN page detailing it and the various functions: https://developer.mozilla.org/en-US/docs/CSS/@document https://developer.mozilla.org/en-US/docs/CSS/@document
- pbhjpbhj 14y agoSo @document means you can bypass the addon and just use the user stylesheet to implement the same thing. Didn't know about @document.