Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: collapse space in module

collapse space in module 10 months 3 weeks ago #49669

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
Hi-
How to I collapse the space in the Translate module? I couldn't find any adjustments in the module area to account for this. Maybe a css file somewhere?

Thanks,
Mark

northbayedu.org/
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49673

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49691

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
OK, here's what I have.

#sidebar1 .module, #sidebar2 .module {
background-color: #F7F8F8;
border: 1px solid #CCCCCC;
border-radius: 10px 10px 10px 10px;
padding-top: 5px;
padding-bottom: 5px;

I have found the Translate module in the core css file.
I've added the padding descriptors in an attempt to reduce the spacing (collapse vertically). What it seems to do is add space, not take it away. I know this when I turn it off in Firebug.

How do I get to the css file that is controlling this? I found another instance in the css file somewhere for padding, but it adjusted the padding for all the sidebar2 modules, not just the Translate box.

Thanks Nick,
Mark
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49751

  • edandrea
  • edandrea's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 3106
  • Thank you received: 7
  • Karma: 0
Can you get around your problem with a module suffix?

www.ostraining.com/courses/session/jooml...dule-class-suffixes/

www.ostraining.com/blog/joomla/how-to-us...las-module-suffixes/

If you only want to make changes for a single module without affecting others, this is the best way. Or am I misunderstanding what you want to do?

Ed
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49758

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
Thanks Ed. I'll check it out 1st thing in the morning.
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49799

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
Hi Ed-
No luck creating a module suffix. It doesn't follow the instructions found here at all. I don't know if its they way it's set up or I just don't know exactly how to do it. Probably the latter :>)
I have a post over at Gtranslate so we'll see if they can figure it out.

Thanks,
Mark
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49801

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
Hi Mark,

Looks like the extra space between the module title and the drop down is due to a break tag that's like coming from the extension itself:
<br>

The space above the module title "Translate" is from your template (notice the rest of the modules), as is some of the space below, since the module title is an H3 tag, which in turn adds its own spacing.

For line 92 of northbayedu.org/templates/js_community/css/style-blue.css, you can give it a padding-bottom of 0px. For example:
#sidebar1 .grid .module .pad h3, #sidebar2 .grid .module .pad h3 {
    color: #627E9E;
    font-style: normal;
    font-weight: normal;
    padding-bottom: 0;
}

That will reduce the spacing significantly for you and not affected your other modules. See if that works well for you.

Hope it helps!

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49803

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
Thanks, Nick.

You know, I noticed this when I removed the title in the module which significantly reduced the height. I saw the h3 tag in the code and thought giving it an h4 or h5 would help, but couldn't find where to edit that tag.

Got a ways to go, but making progress none the less.
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49808

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
You're welcome, Mark! :)

Yes, little by little you make a lot of progress in the end.

Did you give my suggested fix a try? Let me know if that works out for you or not.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49848

  • newtie
  • newtie's Avatar
  • OFFLINE
  • OSTarter
  • Posts: 13
  • Karma: 0
Thanks for the fix. It still doesn't collapse that box as much as I would like. I wish there was a way to singularly style that box. Apparently, GTranslate allows download of source HTML (I can't find it on their site, yet) that you can then add to a custom module which I hope will allow the look and feel I want. Is it possible to strip everything and just have the dropdown there? That would certainly work.
Please become a member of OSTraining to reply to this post.

collapse space in module 10 months 3 weeks ago #49851

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 16726
  • Thank you received: 371
  • Karma: 54
Hi Mark,

You're welcome!
Mark wrote:
Is it possible to strip everything and just have the dropdown there? That would certainly work.
Yes, it certainly is :) Just turn off the module title within the modules settings in module manager.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.
  • Page:
  • 1

Sign Up for OSTraining

Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.

Copyright 2013 Open Source Training, LLC. All rights reserved.