Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2010, 05:38 PM
tcarr9 tcarr9 is offline
 
Join Date: Jul 2010
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I customize the hover background color of the tabs in the member profile?

When looking at a member's profile page, if I hover over the active tab the link color changes but not the background. If I hover over a different tab, both the link color and the background change, to what is either the same color or very similar colors, making it impossible to read the name of the tab.

How can I change either the background color or the link color (either one will do) when hovering over these tabs? This doesn't appear to be a style var, at least not an obvious one. I've had problems with other places where I hover over a tab or button that had to be fixed by adding a few lines to additional.css, but I wouldn't know how to guess what to add there for this.
Attached Images
File Type: jpg profile.jpg (15.5 KB, 0 views)
Reply With Quote
  #2  
Old 07-08-2010, 05:57 PM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is actually under stylevars> common> tabslight_
there are 3 of them

but the hover is using stylevars> navbar> navbar_tab_selected_background

I reported this way back in January. Wanting a new stylevar for it. But they never listened.
You can vote on it.
http://tracker.vbulletin.com/browse/VBIV-4469
Reply With Quote
  #3  
Old 07-08-2010, 06:15 PM
tcarr9 tcarr9 is offline
 
Join Date: Jul 2010
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much! I used the hack I found in the tracker link and it works nicely now! What I did was edit vbulletin.css to find this:
Code:
dl.tabslight dd a:hover {
	color:{vb:stylevar linkhover_color};
	background:{vb:stylevar navbar_tab_selected_background.backgroundColor} {vb:stylevar navbar_tab_selected_background.backgroundImage} repeat-x 0 -{vb:stylevar navbar_tab_selected_top_width}px;
}
and replace it with this:
Code:
dl.tabslight dd a:hover {
	color:{vb:stylevar linkhover_color};
	background:{vb:stylevar tabslight_selected_background};
}
Reply With Quote
  #4  
Old 07-08-2010, 08:22 PM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes that is the css location of it. :-)
but the proper way is to change only at the stylevars.
Reply With Quote
  #5  
Old 07-09-2010, 03:56 PM
benstillman benstillman is offline
 
Join Date: Jun 2007
Location: Ohio
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Freaking awesome. I've been trying to figure this one out for two days.
Reply With Quote
  #6  
Old 07-10-2010, 03:18 PM
Qwk86gn's Avatar
Qwk86gn Qwk86gn is offline
 
Join Date: Jan 2009
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tcarr9 View Post
Thanks so much! I used the hack I found in the tracker link and it works nicely now! What I did was edit vbulletin.css to find this:
Code:
dl.tabslight dd a:hover {
    color:{vb:stylevar linkhover_color};
    background:{vb:stylevar navbar_tab_selected_background.backgroundColor} {vb:stylevar navbar_tab_selected_background.backgroundImage} repeat-x 0 -{vb:stylevar navbar_tab_selected_top_width}px;
}
and replace it with this:
Code:
dl.tabslight dd a:hover {
    color:{vb:stylevar linkhover_color};
    background:{vb:stylevar tabslight_selected_background};
}

Just a tip here, you can add any code like that to your additional.css to avoid issues when upgrading to futurre version. Keeps from having to revert or change templates when updating vBulletin.

The additional.css is called upon last so anything in there will "overwrite" the default value in the templates.

Reply With Quote
  #7  
Old 07-10-2010, 04:58 PM
tcarr9 tcarr9 is offline
 
Join Date: Jul 2010
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for a great tip! I've reverted all changes made to css files except additional.css and moved my changes to additional.css.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04955 seconds
  • Memory Usage 2,239KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete