style_var for new PM link color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • -martin-
    Member
    • Feb 2010
    • 47
    • 4.2.x

    [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. ..
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74123

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

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • -martin-
      Member
      • Feb 2010
      • 47
      • 4.2.x

      #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

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74123

        #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 demonstration site.
        vBulletin 5 API

        Comment

        • -martin-
          Member
          • Feb 2010
          • 47
          • 4.2.x

          #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...