The cause isn't the JavaScript code. I don't know.Code Name wrote:Any ideas?
I added these categories with the red color as a test.Code Name wrote:handful of categories... using '&' symbol and forward slashes '/'
Beta & Zeta
Gamma/Delta/Epsilon
Here is the style entries.
Code: Select all
calendar-month-day-box-item[categories^="beta_-ux26-_zeta"] .calendar-color-box {
background-color: var(--category-beta_-ux26-_zeta-color) !important;
color: white !important;
}
Code: Select all
calendar-month-day-box-item[categories^="gamma-ux2f-delta-ux2f-epsilon"] .calendar-color-box {
background-color: var(--category-gamma-ux2f-delta-ux2f-epsilon-color) !important;
color: white !important;
}
Here are the calendar.category.color.* preference names for the above categories in the about:config window.morat wrote:You can search for the calendar.category.color.* preferences in the about:config window to help figure out the css selector.
calendar.category.color.beta_-ux26-_zeta
calendar.category.color.gamma-ux2f-delta-ux2f-epsilon
Did you notice that the string is the same in the style entry and preference name?
Unicode Character Ampersand U+0026
http://www.fileformat.info/info/unicode ... /index.htm
Unicode Character Solidus U+002F
http://www.fileformat.info/info/unicode ... /index.htm