thenashy Active member Apr 14, 2021 #1 Hi All, How do I change the background colour of highlighted text in the editor?
P Paul B XenForo moderator Staff member Apr 14, 2021 #2 This added to the extra.less template should work: Less: ::selection, ::-moz-selection { color: black !important; background: orange !important; } Upvote 0 Downvote
This added to the extra.less template should work: Less: ::selection, ::-moz-selection { color: black !important; background: orange !important; }
thenashy Active member Apr 14, 2021 #3 Brogan said: This added to the extra.less template should work: Less: ::selection, ::-moz-selection { color: black !important; background: orange !important; } Click to expand... That doesn't seem to have had any affect on it. Edit: Checked on default and it remains the same colour also. Upvote 0 Downvote
Brogan said: This added to the extra.less template should work: Less: ::selection, ::-moz-selection { color: black !important; background: orange !important; } Click to expand... That doesn't seem to have had any affect on it. Edit: Checked on default and it remains the same colour also.
P Paul B XenForo moderator Staff member Apr 14, 2021 #4 Works for me on my local. Try this instead: Less: ::selection { color: black !important; background: orange !important; } Upvote 0 Downvote
Works for me on my local. Try this instead: Less: ::selection { color: black !important; background: orange !important; }
thenashy Active member Apr 14, 2021 #5 Brogan said: Works for me on my local. Try this instead: Less: ::selection { color: black !important; background: orange !important; } Click to expand... That's done the trick. Thanks very much. Out of interest, if this isn't in extra.css, would it appear anywhere in the inspector? Upvote 0 Downvote
Brogan said: Works for me on my local. Try this instead: Less: ::selection { color: black !important; background: orange !important; } Click to expand... That's done the trick. Thanks very much. Out of interest, if this isn't in extra.css, would it appear anywhere in the inspector?
P Paul B XenForo moderator Staff member Apr 14, 2021 #6 It appears in the inspector like so: The upper is the default, the lower is the changed code. Upvote 0 Downvote
thenashy Active member Apr 14, 2021 #7 Brogan said: It appears in the inspector like so: View attachment 250246 The upper is the default, the lower is the changed code. Click to expand... Awesome thanks, will help me next time I need to do this. Upvote 0 Downvote
Brogan said: It appears in the inspector like so: View attachment 250246 The upper is the default, the lower is the changed code. Click to expand... Awesome thanks, will help me next time I need to do this.