The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Categories - Custom Background Colours (To Each ID)?
Does anybody know of a way to set custom background colors for your categories? As it stands, they're all defined as a blue;
http://i.imgur.com/mySBJJg.png As you can see with "Off-Topic Discussion" and "Additional Forums", but is there a way I'd be able to set a unique color for each of those categories? I've tried looking around, but can't seem to find a way to. Thanks in advance! |
#2
|
|||
|
|||
Forums are displayed with the 'forumbit' templates but already have IDs:
HTML Code:
<li id="forum15" class="forumbit_post L2"> stuff and stuff </li> HTML Code:
li#forum15 { background: white; } |
Благодарность от: | ||
Inked_Mono |
#3
|
|||
|
|||
Quote:
When you refer to "forumbit" templated, are you referring to the CSS? I'd tried looking through it, but was unable to find anything that looked similar to what you'd mentioned. Upon inspecting the element, the category itself was titled as; http://i.imgur.com/PWI1rfa.png So, I added the; HTML Code:
li#forum101 { background: white; } Edit: Upon trying it, I was given this result: http://i.imgur.com/X3UEmzu.png |
#4
|
||||
|
||||
Try something like this:
HTML Code:
#catXX .forumhead { background: red !important; } |
Благодарность от: | ||
Inked_Mono |
#5
|
|||
|
|||
Quote:
HTML Code:
#catXX .vbs_forumhead { background: red !important; } --------------- Added [DATE]1466543458[/DATE] at [TIME]1466543458[/TIME] --------------- Quote:
Adding in a background, it seems to rid of the padding/internal black border. Before: http://i.imgur.com/NYKosqU.png After: http://i.imgur.com/BhhD3A6.png I've got the CSS to try and include a border and appropriate padding, but it doesn't seem to be working. Before (CSS): http://i.imgur.com/UEsw4hc.png After (CSS): http://i.imgur.com/e2A7rch.png Any idea what might be causing the conflict? Edit2: Found a work around! By adding the following into the initial override CSS, I was able to add an inside border. HTML Code:
-webkit-box-shadow:inset 0px 0px 0px 10px #000; -moz-box-shadow:inset 0px 0px 0px 10px #000; box-shadow:inset 0px 0px 0px 10px #000; HTML Code:
/* Custom Category Colors */ #catXX .vbs_forumhead { background: #2b3227; -webkit-box-shadow:inset 0px 0px 0px 10px #000; -moz-box-shadow:inset 0px 0px 0px 10px #000; box-shadow:inset 0px 0px 0px 10px #000; } Aaand... I've hit a snag. HTML Code:
/* Custom Category Colors */ #cat86 .vbs_forumhead { background: #683030; -webkit-box-shadow:inset 0px 0px 0px 10px #000; -moz-box-shadow:inset 0px 0px 0px 10px #000; box-shadow:inset 0px 0px 0px 10px #000; } #cat49 .vbs_forumhead { background: #683030; -webkit-box-shadow:inset 0px 0px 0px 10px #000; -moz-box-shadow:inset 0px 0px 0px 10px #000; box-shadow:inset 0px 0px 0px 10px #000; } http://i.imgur.com/2JPaBZW.png Edit: This seems to just be an issue with the first category of each tab. I can't do any of the further categories, however the first one works without a problem. http://i.imgur.com/ydstYci.png |
#6
|
||||
|
||||
Try combining them like so:
HTML Code:
/* Custom Category Colors */ #cat49 .vbs_forumhead, #cat86 .vbs_forumhead { background: #683030; -webkit-box-shadow:inset 0px 0px 0px 10px #000; -moz-box-shadow:inset 0px 0px 0px 10px #000; box-shadow:inset 0px 0px 0px 10px #000; } |
Благодарность от: | ||
grey_goose |
#7
|
|||
|
|||
Quote:
Edit: I sent a PM! |
Благодарность от: | ||
Mattwhf |
#8
|
||||
|
||||
I tried combining selectors on my local dev site and it worked for both categories...I will check out your PM now.
|
#9
|
|||
|
|||
Quote:
Should anything come up from the discussion, I'll keep this thread updated for future search results. |
Благодарность от: | ||
MarkFL |
#10
|
|||
|
|||
Thanks everyone for sharing codes
But i think it can be solve with inline style (combine with forum id) without using more CSS codes. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|