Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Change the text color of individual folders created on toolbar

  • 6 відповідей
  • 0 мають цю проблему
  • 26 переглядів
  • Остання відповідь від cor-el

more options

Hello! I am using the following code (userChrome.css) to color the individual folders created on the toolbar and it works great;

#PlacesToolbarItems > .bookmark-item[container][label="Music" i] {background-color: #ff0545 !important;}
#PlacesToolbarItems > .bookmark-item[container][label="NewsPapers" i] {background-color: #386bff !important;}
#PlacesToolbarItems > .bookmark-item[container][label="News Video" i] {background-color: #386bff !important;}
#PlacesToolbarItems > .bookmark-item[container][label="TV" i] {background-color: #ff1fc8 !important;}

What I am trying to find, is how to change the color of the individual folder name (text) from white to maybe black, yellow, etc.….

Any suggestion is appreciated. Regards,

Hello! I am using the following code (userChrome.css) to color the individual folders created on the toolbar and it works great; #PlacesToolbarItems > .bookmark-item[container][label="Music" i] {background-color: #ff0545 !important;} #PlacesToolbarItems > .bookmark-item[container][label="NewsPapers" i] {background-color: #386bff !important;} #PlacesToolbarItems > .bookmark-item[container][label="News Video" i] {background-color: #386bff !important;} #PlacesToolbarItems > .bookmark-item[container][label="TV" i] {background-color: #ff1fc8 !important;} What I am trying to find, is how to change the color of the individual folder name (text) from white to maybe black, yellow, etc.…. Any suggestion is appreciated. Regards,
Прикріплені знімки екрана

Змінено lemo

Обране рішення

You can simply add a color property to set the text color.

Note that "i" means case insensitive, so you do not really have to capitalize.

Читати цю відповідь у контексті 👍 0

Усі відповіді (6)

more options

Вибране рішення

You can simply add a color property to set the text color.

Note that "i" means case insensitive, so you do not really have to capitalize.

Корисно?

more options

@cor-el

With the information you provided I was able to use and find the way to change the text color;

  1. PlacesToolbarItems > .bookmark-item[container][label="Music" i] {color: #0E0E0E !important;}
  2. PlacesToolbarItems > .bookmark-item[container][label="News Papers" i] {color: #0E0E0E !important;}
  3. PlacesToolbarItems > .bookmark-item[container][label="News Video" i] {color: #0E0E0E !important;}
  4. PlacesToolbarItems > .bookmark-item[container][label="TV" i] {color: #0E0E0E !important;}

Thank you for pointing me to the path for the the solution. Sincerely and regards,

Корисно?

more options

Note that you combine this with your previous code for maitainability.

#PlacesToolbarItems > .bookmark-item[container][label="Music" i] {background-color: #ff0545 !important; color: #0E0E0E !important;}
#PlacesToolbarItems > .bookmark-item[container][label="NewsPapers" i] {background-color: #386bff !important; color: #0E0E0E !important;}
#PlacesToolbarItems > .bookmark-item[container][label="News Video" i] {background-color: #386bff !important; color: #0E0E0E !important;}
#PlacesToolbarItems > .bookmark-item[container][label="TV" i] {background-color: #ff1fc8 !important; color: #0E0E0E !important;}

Корисно?

more options

@cor-el

Much better... Regards,

Корисно?

more options

I see the css and that it will do what I need. What I don't know is where to put the code, so that it is effective. Help please!

Корисно?

more options

More info about userChrome.css/userContent.css in case you are not familiar:

In Firefox 69 and later you need to set this pref to true in about:config to enable userChrome.css and userContent.css.

Корисно?

Запитати

Щоб відповідати на повідомлення, ви повинні ввійти у свій обліковий запис. Поставте нове питання, якщо ви ще не маєте облікового запису.