I have seen many skins have this problem of not adjusting the width of the sidebar for the calendar. I didn't keep track of all themes, but perhaps the CSS tabless themes do not adjust. That would make sense, though I haven't looked at the code.

Also a cool thing, Sands has the gallery module showing Gallery2 within the node looking much better than Bluemarine did, again must be CSS not messing with the type as much.

Comments

Samat Jain’s picture

Do you have examples somewhere?

On my weblog I have a calendar block, and it fits and looks fine.

Was there or not a problem with Gallery 2? I don't use Gallery so it is difficult for me to test.

karl sf’s picture

Yes, please see http://erbfamily.name/home/

I will create a user "guest" pass "guest06" so you can change the theme to sands and see. Once you check it out let me know and I will kill the username.

The Calendar is larger than the sidebar. Can the sidebar adjust based on something placed int he sidebar, up to a reasonable maximum?

The gallery looks better in Sands than Bluemarine.

I am interested in Sands as I want to turn off sidebars for the gallery section. I understand that with the CSS templates, I can creat a style to hide sidebars? Or waht do you recommend, can we get that functionality in blocks or themes?

karl sf’s picture

PS. I am using Firefox on Mac OSX.

Your calendar is the archives calendar. I am talking about the Event module calendar. Your is very clean, looks good. What makes them different?

dickelbeck’s picture

The events calendar in a block is indeed not being rendered properly with Mozilla. The same site when viewed with Konqueror or IE6 looks fine. I have done all I can with event.css to fix it, and the offending line seems to be

.event-calendar td {
  border: 1px solid #bbb;
  color: #777;
  font-size: 80%;          <--------- is ignored on mozilla, if less than 100%
:
:

I think it has to do with the degree of nesting of <div> s.

See here: theyouthzone.net

Can we get the theme author to look into this please? Maybe some unwrapping of <div>' s will fix it. The same site with friendselectric works fine, as do most other themes. Yes, OK, it is is a work around for Mozilla, admittedly. But the other themes *do* work with Mozilla after the event.css has been doctored to this degree.

Samat Jain’s picture

D'oh, font size! That's why I was having such a difficult time seeing what was wrong here--this problem depends on your browser's default font size, and the particular font you have as default. With my configuration I was not seeing what was wrong.

I'm not sure alleviating the level of DIV wrapping will fix the problem... I do not think there are any DIVs I can remove, as they are required for the source-ordered 3-column layout and getting around the differences in box model padding interpretation between MSIE/standard CSS.

This apparently a problem encounted the event block calendar before: How do I change the width of the Events calendar?. The fix that thread mentions is to change the day headings to something shorter ("Sun" to "S", "Mon" to M, etc). This isn't a particularly great fix, though.

dickelbeck: Your font-size fix didn't look as if it helped on my setup...

I was having this problem with the archive module block calendar, so my fix was to reduce the padding. I've applied the same rules to the event module block calendar, and they look to work. In a CSS file (I placed into layout.css, and granted if this works is where this fix will go) I put:

.event-calendar td,
.event-calendar th
{
  padding: 0.2ex 0 !important;
}

.block-event .event-calendar a
{
  display: block;
}

The first rule makes the padding on everything in that table smaller; the second is optional and makes any links in that table expand to that container so they are easier to click, since they are now smaller.

I'd appreciate if everyone who was having this problem tests this out and see if it works well for them.

dickelbeck’s picture

Yes, thank you tons. That layout.css addition seems to fix the problem on Mozilla. You da man.

Samat Jain’s picture

Status: Active » Closed (fixed)

Great; marking closed. I've made a lot of changes to sands, including bug fixes, so I'm probably going to release a new 4.6 version sometime this week.