Closed (fixed)
Project:
Archive
Version:
5.x-1.x-dev
Component:
Block
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Feb 2008 at 16:02 UTC
Updated:
17 Dec 2008 at 23:46 UTC
Hi,
I've used two different themes, Garland and Deco, and in both of them the calendar block is too wide for the column.
Is there a way to make the block smaller? Maybe editing the .css files?
Thanks in advance,
Andre Manoel
Comments
Comment #1
hankpalan.com commentedI have the same problem. I'm not a huge developer and I've done what I can to try to figure it out. I'm glad someone else is having the same problem.
Comment #2
lewisholden commentedI've got the same problem too - doesn't seem to be in the .css file, unless the width is actually undefined (which seems unlikely).
Comment #3
dwrunyon commentedIf the popularity of an issue matters, count me among those who are curious about this one!
Comment #4
Froggieone commentedI am having the same problem. I am surprised this thread is lying unanswered since March.
Is there anyone out there who is able to help us out?
Thanks
Comment #5
jrockford commentedHey guys, this has been a thorn in my size so bad that I spent hours hunting down style defs until I found the following in the "event.css" sheet in the module folder. This segment will define the size of the calendar ...not sure why they did this, this way or if there is a better way to change it but I just changed the font ems size and the whole calendar changes size. Hope this helps. Let me know if you have a better hack.
.event-calendar div.month-view table.event-block thead,
.event-calendar div.month-view table.event-block tbody {
font-size: .70em; (change this but keep it in em's or it usually is too big)
}
www.brhatley.com
www.bigfatteddy.com
My Drupal Sites.
Comment #6
hankpalan.com commentedI could be wrong, but I believe you are referencing the Event Module...not the Archive Module.
Comment #7
Froggieone commentedI think this thread relates to the Archive module and not the Events Calendar module.
Comment #8
Susurrus commentedSo the calendar can be affected by standard CSS, you just have to include that CSS in style.css or some other file that is included in every page. The calendar is wrapped in a
block-archiveclass, so you should be able to style it using that selector.Comment #9
Susurrus commentedComment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #11
brugalito commentedwhat needs to be done to change the size of the calendar. I am using a tabless theme and the calendar is huge. im not a programmer yet. so please plain english on what needs to be done.
Comment #12
Susurrus commentedYou can add something like
to archive.css or style.css to shrink the calendar down a little. You can play with the values and shrink them, but that's been added to 5.x and 6.x now.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
SergioGuru commentedThat is the solution, yes. In archive.css (modules/archive) change bottom lines to
For wider right and left margins change 0.2em, respectively.
UPDATE: This still doesn't work if you cache CSS files (so there are only two linked in your HTML source). The solution to that is very simple - copy above style block to the bottom of your main style.css file (of your theme used). Don't forget to clear cache data if you cache CSS files.
Case closed - but should go to core and archive module code.