vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Groups Page on Light Styles (https://vborg.vbsupport.ru/showthread.php?t=293432)

Amaury 12-31-2012 12:11 AM

Groups Page on Light Styles
 
I'm getting really annoyed because I can never get the text to show up well on both the buttons and links in the New Groups sidebar on light styles since sidebar_content_link_color and sidebar_content_link_hover_color both control them. I don't know why control_color and control_hover_color don't also control the color of the text on the buttons in the New Groups sidebar area.

Is it possible to change the text color and hover color of only the buttons in the New Groups sidebar area?

Screenshot:

http://i101.photobucket.com/albums/m...ps3521d4c5.png

WorldCraft 12-31-2012 09:07 AM

Add an !important after the color for 'control_color' and 'control_hover_color'. So if you used #000000, you would put #000000!important

If you want to make them completely different than the others, you would go to additional.css and add

HTML Code:

#sidebar_container li a
{
color: /*Add your normal color HEX or RGB value here*/
}

#sidebar_container li a:hover
{
color: /*Add your hover color value here*/
}


Amaury 12-31-2012 03:46 PM

Quote:

Originally Posted by WorldCraft (Post 2393748)
Add an !important after the color for 'control_color' and 'control_hover_color'. So if you used #000000, you would put #000000!important

If you want to make them completely different than the others, you would go to additional.css and add

HTML Code:

#sidebar_container li a
{
color: /*Add your normal color HEX or RGB value here*/
}

#sidebar_container li a:hover
{
color: /*Add your hover color value here*/
}


I tried the additional.css, but it changed the color in other areas instead of just the buttons in the New Groups sidebar area.

http://i101.photobucket.com/albums/m...ps13e716d7.png

http://i101.photobucket.com/albums/m...psa4f1dcec.png

WorldCraft 01-01-2013 02:25 AM

Oops! Try:

#sidebar_container .textcontrol
{
CSS Here
}

and

#sidebar_container .textcontrol:hover
{
CSS Here
}

Amaury 01-01-2013 02:33 AM

Quote:

Originally Posted by WorldCraft (Post 2393919)
Oops! Try:

#sidebar_container .textcontrol
{
CSS Here
}

and

#sidebar_container .textcontrol:hover
{
CSS Here
}

Thank you, that worked.

I think this might be a bug, though, so I will file it into JIRA. The control_color and control_hover_color style variables should control the text there as well instead of sidebar_content_link_color and sidebar_content_link_hover color.

WorldCraft 01-01-2013 02:53 AM

It's not really a bug, perhaps an oversight. The reason why those stylevars do not affect the sidebar is because the sidebar buttons do not include the .textcontrol class selector in the default CSS. (which is what we added to additional here)

Amaury 01-01-2013 03:04 AM

Quote:

Originally Posted by WorldCraft (Post 2393922)
It's not really a bug, perhaps an oversight. The reason why those stylevars do not affect the sidebar is because the sidebar buttons do not include the .textcontrol class selector in the default CSS. (which is what we added to additional here)

I can file it as in improvement request, then. :)


All times are GMT. The time now is 02:32 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.01509 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete