Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.01 KB | None | 0 0
  1. /* Display usernames in bold red */
  2. body a.link-user,
  3. body.theme-light a.link-user,
  4. body.theme-dark a.link-user,
  5. body.theme-black a.link-user {
  6.     color: #ff5555;
  7.     font-weight: bold;
  8. }
  9.  
  10. /* WARNING: UGLY
  11.  Display username mentions (e.g. @apoctr) in bold red,
  12. Have to match /user/ in href instead of @ in text because of CSS limitations AFAIK.
  13. ---
  14. Avoids changing colour of text in PM message of other users (:not([href$="new_message"]),
  15. Avoids changing colour of own username at top of screen - (:not(.logged-in-user-username)).
  16. ---
  17. If anyone has a better way to achieve the same thing, let me know.
  18. */
  19. body a[href^="/user/"]:not([href$="/new_message"]):not(.logged-in-user-username),
  20. body.theme-light a[href^="/user/"]:not([href$="/new_message"]):not(.logged-in-user-username),
  21. body.theme-dark a[href^="/user/"]:not([href$="/new_message"]):not(.logged-in-user-username),
  22. body.theme-black a[href^="/user/"]:not([href$="/new_message"]):not(.logged-in-user-username) {
  23.     color: #ff5555;
  24.     font-weight: bold;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement