XF 2.2 Change color of selection

sbj

Well-known member
Licensed customer
What is a selection?

1614705551260.png

So I want to change the color for selections.

I did this:

CSS:
::-moz-selection {
    color: #fff;
    background: black;
}
::selection {
    color: #fff;
    background: black;
}

.fr-view p::-moz-selection {
    color: #fff;
    background: black;
}
.fr-view p::selection {
    color: #fff;
    background: black;
}

If a text has bbcode, the selection css is not applied.

Maybe there is a better way to "catch" all cases.

Or at least does anyone know how to target texts with bbcodes?
 
So close but yet so far. Yeah, like stupid me didn't think about that. Now it is working, thank you as always.
 
Back
Top Bottom