XF 2.2 Change color of selection

sbj

Well-known member
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?
 
Top Bottom