XF 2.0 How to change background color and text color of notices?

Here's the other style extra.less

faV7HbQ.png


I haven't changed it yet.

Is there a missing bracket below the one on line 20 in this one?

NPOoiSi.png
 
No, there is no missing } bracket - all of the entries are correct.

I can only assume there's an issue with one of the templates being included.
 
Here's the other style extra.less

faV7HbQ.png



I haven't changed it yet.

Is there a missing bracket below the one on line 20 in this one?

NPOoiSi.png
That’s the first time I’ve seen a template included like that.
I thought its
<xf:include template="extra_template.less" />
Or are both ok to use?
 
You were right. I added a Red and a Blue custom background to both styles and it works!

3FMa7JE.png


Now another problem came up. The text for the Blue background is black

xkHn6iB.png
 
Edit the CSS to change the text colour.

 
CSS:
.nvNoticeRed
{
    background-color: red;
    color: white;
    font-weight: bold;
}

I suggest reading up on that link I posted.

Knowing basic CSS will help going forward.
 
I agree and bookmarked that source. I will read it and hopefully absorb a lot of it. The thing is my limited knowledge and experience hampers my ability to apply what I've read. But I intend to read and learn. It will take time but I will gain some level of familiarity with it and I know that will help.

Again, many thanks for your help, Brogan. You're a great guy.
 
Back
Top Bottom