How do I style @mentions?

I've changed all of the colours under Colour Scheme to match our corporate colours, but for some reason the mentions are still set in the default Confluence colours. I'm hoping I can just change this via CSS, but I'm not sure exactly which classes to change. Thanks in advance!

2 answers

1 accepted

The @'s are using css before. I got it working with this:

#main-content .current-user-mention,
#main-content .user-mention,
#main-content .current-user-mention::before, 
#main-content .current-user-mention:hover::before, 
#main-content .current-user-mention:active::before, 
#main-content .current-user-mention:visited::before,
#main-content .user-mention::before, 
#main-content .user-mention:hover::before, 
#main-content .user-mention:active::before, 
#main-content .user-mention:visited::before {
    background-color: #F2F2F2;
    border-color: #CCCCCC;
    color: #F15D22;

Hi Becky,

I believe this is the CSS you need:

.wiki-content .current-user-mention {
    background-color: #3b7fc4;
    color: #f5f5f5;

.wiki-content .user-mention {
    background-color: #f5f5f5;



Thanks, Sharon! That partially worked, as it only changed the background colour. I also had to add the following, then the text colour changed, too:

#main-content .current-user-mention,
#main-content .user-mention {
    background-color: #F2F2F2;
    border-color: #CCCCCC;
    color: #F15D22;

But I still can't seem to figure out how to style the "@". It stays the default light grey no matter what. Any thoughts?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,902 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you