Module Class suffix doesn´t work

GK User
Wed Feb 08, 2012 12:52 pm
Hi

If I for example add a Kunena Latest module in the module position js_side_bottom which is a module position inside Jomsocial.

If I then want to add a module class suffix for example " border2" which is a class from the Musicity template. The class doesn´t work, nothing happends when I add it to the module and it doesn´t matter which module it is.

But if I add the same class to the same module but the module is in the right_right module position for example, then it works as it should.

Why doesn´t the classes work in the module positions inside Jomsocial?

Here on my site I have added a Kunena latest module in the module position js_side_bottom and as you can see the " border2" class doesn´t work: http://www.fotoforalla.se/community

I have Joomla 1.7.5, Jomsocial 2.4.2, Musicity template 2.6 and the latest version of the Musicity template for Jomsocial.
User avatar
Platinum Boarder

teitbite
Thu Feb 09, 2012 12:52 am
Hi

That's because our framework is using a layer name "box" and joomsocial "moduletable" for module.

If You want to use it with js modules than the easiest way is to copy all css classes for ".box.border2" and replace "box" with "moduletable".
User avatar
Moderator

GK User
Thu Feb 09, 2012 1:16 am
Hi

My college is correct.
"moduletable" was used on old JS source files and it's not very used since 2.4 (if i recall well).
Now JS uses "cModule" class to style most modules.

Anyway, it's not enough by copying "border2" classes used on gavern template css file.
It needs some changes. Try this:

Add this lines on one JS css template file.

Code: Select all
#community-wrap .moduletable.border2 {border: 1px dashed #ce6c5d;}
#community-wrap .moduletable.border2 > div { padding: 12px; margin-bottom: 20px }
#community-wrap .moduletable.border2 h3 { margin: 12px 10px 0; padding:0; height: 23px; line-height: 17px; background: none; color: #bc3726; border-bottom: 1px dashed #ce6c5d; text-transform: uppercase }


Cheers ;)
User avatar
Platinum Boarder

GK User
Thu Feb 09, 2012 1:16 pm
yes it worked! You can see it here: http://www.fotoforalla.se/community

But is there a way to add more space at the top of the module?
User avatar
Platinum Boarder

teitbite
Thu Feb 09, 2012 3:58 pm
Hi

Thanks for help Saichinha. Will this fix be in an official release ?
User avatar
Moderator

GK User
Thu Feb 09, 2012 5:12 pm
It would be great if you could add all the GK classes to the Jomsocial template.

And is there a way to add more space above eache module?
User avatar
Platinum Boarder

teitbite
Fri Feb 10, 2012 1:59 pm
erka wrote:And is there a way to add more space above eache module?


Hi

I believe this part of the code will solve space case :

Code: Select all
#community-wrap .moduletable { margin-bottom: 20px }
User avatar
Moderator


cron