The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Vb Template is confusing, color change help
Hi, it is really confusing when editing vb 4.x template
If i have this code HTML Code:
background: {vb:stylevar postbit_userinfo_background.backgroundColor} url(vbseo/resources/images/forum/vbseo_like.png) 5px center no-repeat; But i want the background color to be white not gray ex see by the heart and the like, the background color is transparent so it is gray http://forum.nihonomaru.com/site-ann...ts-new.343485/ But i want the color to be white, how can i change this code to make it white? I did this but it removed the heard pic. HTML Code:
background: #fffff; url(vbseo/resources/images/forum/vbseo_like.png) 5px center no-repeat; Fixed (: no semicolon |
#2
|
||||
|
||||
I would not suggest editing any of the default vbulletin css templates *except* adding your own CSS to the additional.css template. That template is loaded last and therefore if you put the same CSS (only different color) in there, it will override the other CSS.
|
#3
|
||||
|
||||
Quote:
Hi Lynne, so what can i do to fix it? What should i add in the additional css? I tried to add this to the additional css but it caused the little black heart to dissapear or i guess it is under the white color HTML Code:
.vbseo_buttons .vbseo_liked { background: #f2f6f8 } This is the template i did edit before vbseo_buttons.css and i simply changed the background color, is that wrong? HTML Code:
.vbseo_buttons .vbseo_liked { border-color:#D5D5D5 #B3B3B3 #999999; border-style:solid; border-width:1px; background: {vb:stylevar postbit_userinfo_background.backgroundColor} url(vbseo/resources/images/forum/vbseo_like.png) 5px center no-repeat; -moz-border-radius: {vb:stylevar border_radius}; -webkit-border-radius: {vb:stylevar border_radius}; border-radius: {vb:stylevar border_radius}; clear: both; display: block; padding: {vb:math {vb:stylevar padding}-3} {vb:math {vb:stylevar padding}-3} {vb:math {vb:stylevar padding}-3} ; padding-{vb:stylevar left}: {vb:math {vb:stylevar padding}*2.5}; margin: {vb:stylevar padding}; <vb:if condition="$stylevar['textdirection'] == 'rtl'"> background-position: right; </vb:if> } |
#4
|
|||
|
|||
Quote:
HTML Code:
.vbseo_buttons .vbseo_liked { background-color: #f2f6f8; } Not wrong, just not preferred for such a simple CSS change. |
Благодарность от: | ||
Lynne |
#5
|
||||
|
||||
Works like a charm :0) thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|