Support Forum

Question on Reboot child framework

49 Answers

New Answer

KV kvr28
kvr28
Member

okay, I think this is the only question I have. I modified the colors in midnight to fit our color scheme. I’ve added a couple rules to the child css, such as these

#spMainContainer .spGroupForumSection.spEven, #spMainContainer .spForumTopicSection.spEven, #spMainContainer .spMemberListSection.spEven {
background: #EFF6E3!important;
}
#spMainContainer .spTopicPostSection .spUserSection {
background: #D3D3D3!important;

}

the only issue I am having is that I moved all the default overlays to the child theme and activated the theme switcher plug-in so if the members want to change it they can. Those two rules are overriding the defaults as well, so I guess my question is what would I modify in my custom midnight overlay so I can remove them from the stylesheet. I’m having a heck of a time finding where to do it.

Thank-you

IK Ike
Ike
Member

Hey kvr,

For the first one (the sections), they use the variable $indexRowEvenBackGround.

For the second one (the spUserSection) it uses the variable $topicUserSectionBackGround

You should just be able to find these in your custom overlay and add your custom colours as the value.

KV kvr28
kvr28
Member

I tried just substituting the hex code for the colors right after those and that didn’t work, so I just made some changes to the colors that they were calling for, mostly changing base color 7 to 1 and it seems to be working fine, thanks gents

KV kvr28
kvr28
Member

Holy crap, this is easier than I thought, took me 5 minutes to throw together a light version overlay that still ties into our site using the minimalist overlay, reboot is awesome.

IK Ike
Ike
Member

Glad you are enjoying it, that was the idea and not too different from Unified in that aspect – a few quick changes once you know your way around it!

KV kvr28
kvr28
Member

Actually one last question, after experimenting and tweaking some things I prefer the lighter theme I made this morning, only thing I am having difficulty with changing is the Unread and recently updated topics background and hover at the bottom, I would like them to go odd even like the forum, any suggestions?

http://thehomesteadingboards.com/forums/

IK Ike
Ike
Member

Well although they are designed to only show one background colour to differentiate them from the forum rows, they still have the class spEven and spOdd attached to them.

You can build the class in the stylesheet and either give them colours there, or give them an overlay variable so you can have a different background colour for different overlays – presuming you want them to have lighter background colours than the forum rows odd and even.

Which would you prefer?

KV kvr28
kvr28
Member

Would prefer to do it in the overlay so that the style sheet doesn’t over-ride it if someone picks a different one through the theme switcher

IK Ike
Ike
Member

OK, so you could try:

Stylesheet:

#spMainContainer .spTopicListSection .spEven {
    background: <?php echo($newPostsBackgroundEven); ?>;
}

#spMainContainer .spTopicListSection .spOdd {
    background: <?php echo($newPostsBackgroundOdd); ?>;
}

Overlay:

$newPostsBackgroundEven            =        $baseColor;    or    '#xxxxxx';
$newPostsBackgroundOdd            =        $baseColor;    or    '#xxxxxx';

And of course remember that if you are using the new post expansion button per forum in group view, it displays the new posts in the same format with the same classes, so it will change there also.

Should work, let me know if not and I’ll test it out.

IK Ike
Ike
Member

No, figured we should see if it’s the right class structure first.

For hover, you would need to do the same process, but adding :hover after the .spEven and .spOdd, and also the variables both inside the CSS and in the overlay. I.e:

#spMainContainer .spTopicListSection .spEven:hover {
    background: <?php echo($newPostsBackgroundEvenHover); ?>;
}

#spMainContainer .spTopicListSection .spOdd:hover {
    background: <?php echo($newPostsBackgroundOddHover); ?>;
}

$newPostsBackgroundEvenHover     =      $baseColor;    or    '#xxxxxx';
$newPostsBackgroundOddHover     =      $baseColor;    or    '#xxxxxx';
KV kvr28
kvr28
Member

quick question, is this something I need to modify or add?