Announcement

Collapse
No announcement yet.

style_var for new PM link color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [vB4] style_var for new PM link color

    Hello

    I can't find style_var for changing link color when there is new private message, or even background when there is new PM.

    Somehow I lost it. ..

  • #2
    In the header? They are controlled by the toplinks_* stylevars.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      thanks, yea, I found it, for a background it's toplinks_hilite_background

      but when it's set, hilighted is also on mouseover and login background form, can it be just set for new pm's?

      Comment


      • #4
        You'd have to edit the CSS directly for that. Actually, I'd suggest putting overriding CSS in the addtional.css template.

        The code you want to edit is this:
        Code:
        .toplinks ul.isuser li a:hover {
            padding-top: 3px;
            padding-bottom: 3px;
            padding-{vb:stylevar left}: 4px;
            padding-{vb:stylevar right}: 4px;
            background: {vb:stylevar toplinks_hilite_background.backgroundColor};
            color:{vb:stylevar toplinks_linkhover_color};
        }
        and this:
        Code:
        .toplinks ul.nouser li a:hover {
            background: {vb:stylevar toplinks_hilite_background.backgroundColor};
            color:{vb:stylevar toplinks_linkhover_color};
        }
        Set it to fit your needs and place the new code in your Additional.css template.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          I succeed by setting custom additional.css , notification about new PM is now only with red background defined by style_var toplink_hilite_background , everything else have no background (it's transparent)

          Code:
          .toplinks ul.isuser li a:hover {
              padding-top: 3px;
              padding-bottom: 3px;
              padding-{vb:stylevar left}: 4px;
              padding-{vb:stylevar right}: 4px;
              background: none;
              color:{#ffffff};
          }
          .toplinks ul.nouser li a:hover {
              background: none;
          }
          
          
          .toplinks .logindetails {
              background: none;
          }
          
          .toplinks ul.nouser li a {
              background: none;
          }
          result:

          Comment

          Related Topics

          Collapse

          Working...
          X