Topic Review Stylevar?
Collapse
X
-
Try the 'light_border' StyleVar - note that this will affect many areas of your site hwoever. -
That's what it should be in a default style:
HTML Code:.formcontrols .blockrow { background:{vb:stylevar formrow_background.backgroundColor} {vb:stylevar formrow_background.backgroundImage} bottom repeat-x; border-top:solid 1px {vb:stylevar light_border.borderColor}; padding:10px 5px; }
I changed this on my default style and it did work on my test site.
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
-
Thanks both of you.....
As soon as you mentioned "default style" I went and checked something....and I should have done that when Trevor gave the answer and it didn't work! LOL
This may be intentional or not, but.....and not sure if you've ran into this....but...I used the Style Generator to generate my base custom style rather than go through and convert each and every variable of the VB 4 Default.....what I noticed after it generated, is that if I did not have the VB 4 Default style as a "Child" style to the one I generated, then there were some (I don't remember exactly which ones) frames and other stuff that just didn't work right.
Keeping the VB Default as a child style sort of makes sense but I ran into an unexpected behavior in that there are some Stylevars that when changed on the "parent" style, and even though the screen does return that it also updated the "child" style as it should, it really doesn't which can be frustrating when you forget. It's even more frustrating when you forget, and you say to yourself..."Jeez...this really SHOULD be the right varaible...Trevor said it should be the right one then why the heck isn't it changing?!"...change the child style and POOf...it works! LOL That was the case here and is good in the fact now that I figured it out I thought that I should feed this back to you guys. I should have when I first encountered this during the design phase but was in a crush to get us back online after the upgrade.
And here's proof:
Style Manager structure showing VB 4 as child:
Parent 'light_border' stylevar setting (Default setting in Parent WotR Green II) which had no effect no matter what (evident in 7:29 am post above):
Changed Child stylevar 'light_border' setting (VB 4 Default style) and poof....it works:
And the final result showing post separators as desired:
Just so you know...and maybe this is a bug...maybe not....but I also noticed that even though I did get a good return when I changed the parent stylevar showing that it also updated the child successfully, that particular stylevar link remained black indicating "StyleVar is Unchanged From the Default Style" when it should be the orange "StyleVar is Inherited From a Parent Style".
Okay...so there you go....hope this helps and again...thanks for your support as always!All who wander are not lost.
- JRR Tolkien -Comment
Related Topics
Collapse
-
by 2Luke2Need some help finding where to edit the color for the below. The first one is a topic off of the main page. I'm trying to change the whole white area within the picture.
This...-
Channel: Support Issues & Questions
Sat 16 Feb '13, 9:54pm -
Comment