| Different style for each category 4 Years, 9 Months ago |
|
HI,
I like the green shade on this topic! How do we do that, and can we have certain topics any colour?
thanks
Danny
|
|
|
| Different style for each category 4 Years, 9 Months ago |
|
HI,
I like the green shade on this topic! How do we do that, and can we have certain topics any colour?
thanks
Danny
|
|
|
| Re:1.0.2. RC2 is green! How do we do that? 4 Years, 9 Months ago |
|
every category table gets it\'s own unique ID to style with css. the 1.0.2 category has ID 69. open the source for the main forum page and search for :
[code:1]tr class = \"fb_sectiontableentry2\" id=\"fb_cat69\"[/code:1]
that\'s the category block. just use CSS to style all the elements in that table row. if you don\'t know how, copy the link to the css used on this page from the source in your browser to see how it\'s done here. it\'s at the very bottom of the file.
|
|
|
| Different style for each category 4 Years, 9 Months ago |
|
This is css trick and easy
Cat id is 69 for fireboard 1.0.2
[code:1]
#fireboard tr#fb_cat69 td{ background:#EFFFF3; }
#fireboard tr#fb_cat69 a{ color: #669933}
#fireboard tr#fb_cat69 a:hover{ color: #000000}
#fireboard tr#fb_cat69 td{ border:1px #A7E4AA solid}
#fireboard tr#fb_cat69 td.fb_cc-sectiontableentry1 { border:0px ;}
[/code:1]
I hope it will help
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
Thanks for posting this. Very cool indeed :)
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
Awesome thanks sebasvos & GreatPixels :D
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
lol you never mentioned what file it is to add to different settings to ?
thanks
Danny
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
Danny,
I would guess that it would go in the Fireboard css file. Not 100% sure of that but give it a try.
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
could this be added to the back end ?
On forum administration, i.e. when creating or editing a category there could be a small colour box when you could edit the colour of the category?
Dan
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
Today i committed an extension into SVN.
Each forum (category) now has a suffix.
In context of the Forum (and elements of that forum such as view, post) this suffix is getting applied.
If you\'re looking for different designs based on named CSS, this could be the solution you\'re looking for. css suffixes in forum works exactly the same way as they do for menus.
This way, no juggling with IDs for CSS-design is needed but named selectors could be used.
The previously fb_blocktable (used in many views) is now presented as:
class=\"fb_blocktableclass_sfx; ?>\"
If you specify a suffix of \"-red\" you\'re using the class \"fb_blocktable-red\"
Don\'t forget to repeat the declarations of fb_blocktable for the derived classes.
At least this is a great starting point for configurable design variations.
Have fun.
|
|
|
| Re:Different style for each category 4 Years, 9 Months ago |
|
Awesome thanks Miro,
would there be anyway to implement this to the back end?
|
|
|
|