Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Need to specifically style @mentions [2.2.4]

ZhaanZhaan Professional fool ✭✭
edited July 2014 in Vanilla 2.0 - 2.8

Hello, sweethearts!

I need to specifically style @mention links in order to make them stand out a bit more, but since they appear to be treated as regular links, I can't target them through CSS..

The solution seems simple - give them a CSS class of their own and then style it, but where exactly can I do this? I can't seem to find the correct file/template.

As always, any input will be appreciated!

Comments

  • R_JR_J Ex-Fanboy Munich Admin

    Take a look at Mentions+ plugin
    It will show you how you can use a plugin to manipulate the way mention is working.

    But you could also write a javascript that adds a css class to every $('div.Message a[href^="/profile"]')

  • ZhaanZhaan Professional fool ✭✭
    edited July 2014

    Thank you @R_J, that worked like a charm!

    I had no idea you could do stuff like this in CSS.

  • @Zhaan said:
    Thank you R_J, that worked like a charm!

    I had no idea you could do stuff like this in CSS.

    you could rule the world with css, once mastered.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.