I read here that "You can fix this by enclosing all the other style rules in"
@-moz-document url-prefix(mailbox:) {
/* all the other rules go here */
}
But when i add it in "userContent.css" nothing happens.
While if you do not use the styles are applied.
How to limit userContent.css rule to email client?
[SOLVED] userContent.css only for email content
-
- Posts: 778
- Joined: June 12th, 2008, 9:02 am
[SOLVED] userContent.css only for email content
Last edited by Diamanti on May 22nd, 2015, 1:39 pm, edited 1 time in total.
-
- Posts: 1504
- Joined: October 1st, 2014, 3:25 pm
Re: userContent.css only for email content
Use DOM Inspector to determine the URL's of the documents you are trying to style? Most likely what you are trying to style does not have a mailbox:// URL...
-
- Posts: 778
- Joined: June 12th, 2008, 9:02 am
Re: userContent.css only for email content
I tried also chrome://messenger/content/messenger.xul but not work
-
- Posts: 1504
- Joined: October 1st, 2014, 3:25 pm
Re: userContent.css only for email content
There's no need to guess somewhat blindly unless you went to Tools > Add-ons and disabled or removed "DOM Inspector". Open the window you want to style, then in that window's menu bar, go to Tools > Web Development > DOM Inspector. From there, File > Inspect (Content|Chrome) Document > Pick the one you want to re-style. You should now be able to see its URL in DOM Inspector's URL bar.
Does that help?
Does that help?
-
- Posts: 778
- Joined: June 12th, 2008, 9:02 am
Re: userContent.css only for email content
I'm not going to guess, but I have already done so and I find as I wrote:
chrome://messenger/content/messenger.xul
chrome://messenger/content/messenger.xul
-
- Posts: 1504
- Joined: October 1st, 2014, 3:25 pm
Re: userContent.css only for email content
Is this an IMAP email account? If so you need to use also url-prefix("imap:/")
Oh.. I see another problem. Try enclosing mailbox: in quotes
Oh.. I see another problem. Try enclosing mailbox: in quotes
Code: Select all
url-prefix("mailbox:")
-
- Posts: 778
- Joined: June 12th, 2008, 9:02 am
Re: userContent.css only for email content
OK!
it work
Ty.
But it was not with Dom Inspector
I have same problem with compose message windows body.
Do you know also to referer to it?
it work
Ty.
But it was not with Dom Inspector
I have same problem with compose message windows body.
Do you know also to referer to it?
-
- Posts: 1504
- Joined: October 1st, 2014, 3:25 pm
Re: userContent.css only for email content
You're welcome.
Compose appears to be
Compose appears to be
Code: Select all
url("chrome://messenger/content/messengercompose/messengercompose.xul")
-
- Posts: 778
- Joined: June 12th, 2008, 9:02 am
Re: userContent.css only for email content
This not work for me.