X
Нажмите здесь, чтобы перейти на мобильную версию сайта.

Форум поддержки

How to change the tooltip's color of the menu button?

Размещено

After added the following code to my userChrome.css file, tooltip {

 -moz-appearance: none !important;
 background-color: #1e1e1e !important;
 color: #b4b4b4 !important;

} most tooltips' styles were modified. But it just didn't work for the menu button. I'm using Firefox 70. Thank you!

After added the following code to my userChrome.css file, tooltip { -moz-appearance: none !important; background-color: #1e1e1e !important; color: #b4b4b4 !important; } most tooltips' styles were modified. But it just didn't work for the menu button. I'm using Firefox 70. Thank you!
Приложенные скриншоты
Цитата

Дополнительные сведения о системе

Приложение

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0

Дополнительная информация

Dinushi Dhananjani
  • Top 25 Contributor
5 решений 216 ответов
Размещено

To edit your your userContent.css file:

   First you need to find your Firefox profile. ...
   Under “Application Basics”, ...
   Look for the chrome folder inside your profile folder. ...
   Look for a file called userContent.css in the 'chrome' folder. ...
   Add the CSS and wrap-around text shown below.
   Save the file.
   Restart Firefox.
To edit your your userContent.css file: First you need to find your Firefox profile. ... Under “Application Basics”, ... Look for the chrome folder inside your profile folder. ... Look for a file called userContent.css in the 'chrome' folder. ... Add the CSS and wrap-around text shown below. Save the file. Restart Firefox.
Помогла ли вам это?
Цитата
cor-el
  • Top 10 Contributor
  • Moderator
17688 решений 160015 ответов
Размещено

Try to make the code work for all namespaces. You can also try to place the code above the default @namespace line.


*|*tooltip {
 -moz-appearance: none !important;
 background-color: #1e1e1e !important;
 color: #b4b4b4 !important;
}
Try to make the code work for all namespaces. You can also try to place the code above the default @namespace line. ---- <pre><nowiki> *|*tooltip { -moz-appearance: none !important; background-color: #1e1e1e !important; color: #b4b4b4 !important; }</nowiki></pre>
Помогла ли вам это?
Цитата
Размещено

Задавший вопрос

cor-el said

Try to make the code work for all namespaces. You can also try to place the code above the default @namespace line.
*|*tooltip {
 -moz-appearance: none !important;
 background-color: #1e1e1e !important;
 color: #b4b4b4 !important;
}

I tried your ways, but they didn't work for me.

''cor-el [[#answer-1269900|said]]'' <blockquote> Try to make the code work for all namespaces. You can also try to place the code above the default @namespace line. ---- <pre><nowiki> *|*tooltip { -moz-appearance: none !important; background-color: #1e1e1e !important; color: #b4b4b4 !important; }</nowiki></pre> </blockquote> I tried your ways, but they didn't work for me.
Помогла ли вам это?
Цитата
cor-el
  • Top 10 Contributor
  • Moderator
17688 решений 160015 ответов
Размещено

Did you try to place the *|*tooltip {} code above the @namespace line because your screenshot shows your not working code in that position?

Tooltips are always difficult to get a selector or find them in the DOM and some elements in the user interface have been moved from XUL space to HTML space making this more difficult.

Did you try to place the <b>*|*tooltip {}</b> code above the @namespace line because your screenshot shows your not working code in that position? Tooltips are always difficult to get a selector or find them in the DOM and some elements in the user interface have been moved from XUL space to HTML space making this more difficult.
Помогла ли вам это?
Цитата
Размещено

Задавший вопрос

cor-el said

Did you try to place the *|*tooltip {} code above the @namespace line because your screenshot shows your not working code in that position? Tooltips are always difficult to get a selector or find them in the DOM and some elements in the user interface have been moved from XUL space to HTML space making this more difficult.

Thanks for your reply, but it didn't work either. Maybe it's a bug

''cor-el [[#answer-1270166|said]]'' <blockquote> Did you try to place the <b>*|*tooltip {}</b> code above the @namespace line because your screenshot shows your not working code in that position? Tooltips are always difficult to get a selector or find them in the DOM and some elements in the user interface have been moved from XUL space to HTML space making this more difficult. </blockquote> Thanks for your reply, but it didn't work either. Maybe it's a bug
Помогла ли вам это?
Цитата
Задать вопрос

Для ответа на сообщения вы должны войти в свою учётную запись. Пожалуйста, задайте новый вопрос, если у вас ещё нет учётной записи.