Grid Hour Height CSS - Sunbird 0.2

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 13:23, 7 May 2005
Gc (Talk | contribs)
(visible *before scrolling*)
<-- Previous diff
Revision as of 22:55, 22 October 2005
Asqueella (Talk | contribs)
Next diff -->
Line 49: Line 49:
*/ */

Revision as of 22:55, 22 October 2005

/* CalendarGridHourHeight.css

   To increase the minimum height of hour boxes in day view and week view
   (so short events become more legible, and long events show more text,
   but fewer hours are visible on screen before scrolling):
   save this css in your profile [1] chrome directory,
   and import it in your userChrome.css [2].

   For Sunbird, the userChrome.css path may be something like the following
   w2k: c:\Documents and Settings\USER\Application Data\Mozilla\Sunbird\Profiles\NNNNN.default\chrome\userChrome.css
   gnu/linux: ~/.mozilla/sunbird/NNNNNN.default/chrome/userChrome.css

   1. Save this file in your profile as chrome/CalendarGridHourHeight.css
   2. Add the following to profile file chrome/userChrome.css (create if none):
    @import url("CalendarGridHourHeight.css");

   The height is specified in "em"s (approximately the height of an M
   in a font [3]) so that it will change if the font size is changed.
   Change the value to suit your needs.

   The CSS is tested against Sunbird 0.2.  
   Warning: using userChrome.css can lead to errors developers can't reproduce.
   Before reporting Calendar errors, be sure to test with no userChrome.css.
.day-view-hour-box-class {
  min-height: 8em ! important;
.week-row-class, .week-view-hour-box-class {
  min-height: 8em ! important;
/* References:

   [1] Where is my profile folder?

   [2] Customizing Mozilla: User CSS

   [3] CSS1: Length Units
   [4] CSS2: The Cascade: !Important Rules

   This file is