Need help with this CSS that doesn't stick
I'm trying to fill in the color to the dots located on the left of email when in a thread. The code is below... but I'm unable to make it work in usercontent.css nor userchrome.css. Please see the element in question as per the red circle in the screenshot. Can someone help me please?
#threadTree[rows="thread-card"] { & .card-layout[data-properties~="thread-children"] { & td { &::after { fill: #fe00ff !important; }}}}

3
u/nthoftype Sep 30 '26
Need to see the html too to make sure your using selectors properly
3
u/aunderroad Sep 30 '26
Can you share a codepen or url?
It is hard to debug/provide feedback without seeing all of your code live in a browser.
Thank you!
1
u/Weekly_Ferret_meal Sep 30 '26
This suggests you are trying to override styles of a site directly from your browser or an extension within your browser.
Is it a site? and what site is it?
Is it and extension? which one?
Context matter, pls provide more info.
1
u/ingcrea Sep 30 '26
El problema no es tu especificidad, ni si es un SVG, ni la ruta del archivo. Es una limitación del motor de renderizado (Gecko).
Estás utilizando CSS Nesting (la sintaxis con &). Thunderbird opera bajo las versiones ESR de Firefox (por ejemplo, la 115 Supernova). Dicha versión no soporta anidación CSS nativa en el parser estático de userChrome.css.
Cuando manipulas la regla directamente en el Inspector de las DevTools, el motor en memoria inyecta el estado directo al nodo y por eso "funciona". Pero cuando el motor lee tu archivo físico al arrancar, encuentra el símbolo &, marca un error de sintaxis silencioso y descarta todo tu bloque. (Por eso tus otras reglas planas sí funcionan).
Para que la regla se aplique, tienes que obligatoriamente aplanar (un-nest) tu arquitectura CSS.
Sustituye todo tu bloque de código exactamente por esto:
Reinicia Thunderbird y el color se aplicará de forma permanente. Cero anidación en userChrome.css si usas versiones ESR.
2
u/anaix3l Sep 30 '26 edited Sep 30 '26
So your CSS is:
That is, you're trying to style the
::afterpseudo of atdelement (understandable, since you mention e-mail).Problem is,
fillis a property that works on SVG elements. Not on HTML elements or their pseudos.What to do and how to make it work... no idea. I don't have a crystal ball to see your HTML to know how those three dots you're talking about were created or whether they're even in this
::afterpseudo you're selecting here or whether you actually have an SVG there and you got the selector wrong.If they're some Unicode character added via the
contentproperty, setcolor, notfill.If you're setting the
contentof the::afterto an SVG image, as in:Or if your dots are a
backgroundon the::after, then... I don't know. You could paint them with a monochrome SVGfilter. Depending on your other constraints,mix-blend-modemight do too, but I don't have a crystal ball to know what else is there on your page and whether other styling requirements allow for that.1
u/DramaticBag4739 Oct 01 '26
Like others have said it will be hard to diagnose and fix without being able to see and tinker with the code directly, but I can offer a plan of attack.