PDA

View Full Version : member.php CSS



pank
Thu 18th Dec '08, 9:28pm
Correct me if I am wrong but from what I see the hover CSS for the tabs are hard coded into an actual CSS file ( clientscript/vbulletin_tabctrl.css ).

I know you have the option for people to customize their profile but I think it would be a better idea to have the CSS (the default CSS) for those tabs in the actual style options.

Basically if you have a skin with a solid white background those hover colors blend in and they appear to be hard coded in that clientscript/vbulletin_tabctrl.css file. So you have to actually edit that file to change the hover values for the background color and font color.

If those options were available via the actual style options in your Admin CP it would prevent having to edit an actual vB file. It would make things much easier when updating your forum software, etc.

Just my 2 cents...

Simetrical
Fri 19th Dec '08, 12:11pm
You shouldn't ever have to alter the actual file. CSS is, as the name says, cascading. Just enter a different value (possibly with a more specific selector or with !important) in "Additional CSS Definitions" at the bottom of Main CSS in the Style Manager for your style.

pank
Fri 19th Dec '08, 1:51pm
Yeah, I'm familiar with what CSS means. The problem is there is not an area to change the value other than that file. Not even in the additional CSS areas. That is my whole point.

Simetrical
Sat 20th Dec '08, 6:50pm
So then why did you say that you had to edit a file? Surely you can change it by adding rules in the Additional CSS Definitions section?

pank
Sat 20th Dec '08, 7:23pm
Did you get it to work by doing that? I have not...

Simetrical
Sun 21st Dec '08, 10:29am
This works fine, added in Additional CSS Definitions:

ul.tab_list li.thead:hover, ul.tab_list li.thead:hover *, ul.tab_popup li.vbmenu_option:hover, ul.tab_popup li.vbmenu_option:hover * {
background: black !important;
color: white !important;
}

You should never have to edit actual CSS files, in any software. The design of CSS makes it unnecessary unless the built-in style sheets are completely unreasonable (!important plus maximum-specificity selectors, if the latter's even possible).

Not that this changes the reasonableness of your request.

pank
Tue 23rd Dec '08, 7:23pm
Sorry, I misread your post... I thought you said you could do this by using the existing additional CSS ;)

Your solution does work but I still think it would be beneficial to have those CSS definitions included with the additional CSS area. It would just make life a bit simpler ;)

Thanks for taking the time to post!