Ich habe mal ein bisschen mit Sunbird 0.9 rumgespielt, aber für Lightning sollte das ja wie üblich ebenso passen:
- Code: Alles auswählen
/***********************
** Kategorie: Wichtig **
***********************/
.calendar-event-box-container[categories~="wichtig"] {
border: solid red 2px !important;
background: #FDD !important;
padding-left:15px !important;
background-image:url("pics/sign07.png") !important;
background-position:top left !important;
background-repeat:no-repeat !important;
}
calendar-category-box[categories~="wichtig"] {
display: none !important;
}
/********************
** Kategorie: Kino **
********************/
.calendar-event-box-container[categories~="kino"] {
padding-left:20px !important;
background-image:url("pics/kino.jpg") !important;
background-position:top left !important;
background-repeat:no-repeat !important;
}
Bei der Kategorie "Wichtig" blende ich noch die kleine Box aus, in der sonst eine über die normalen Einstellungen zugewiesene Kategoriefarbe angezeigt werden könnte, damit mein Rahmen richtig wirkt.
Ansonsten reichen diese Einträge nun für alle Ansichten, es ist also einfacher geworden.
Allerdings werde ich meine Icons etwas verkleinern müssen, denn die Höhe der Terminbox wurde etwas reduziert. Bei 16x16px Bildgröße wird nun etwas vom Bild abgeschnitten.
Anpassungen vornehmen kann man aber nicht nur über Kategorien, sondern über alles möglichen Kriterien: Kalender, Priorität, Status usw. Dafür poste ich mal Teile der in
Bug 202360 veröffentlichten Beispiel-userChrome.css, in der das alles dokumentiert ist:
- Code: Alles auswählen
/**
* PURPOSE: color task tree and unifinder tree based on certain properties
* You must use different tree pseudoclasses for different attributes.
* Try the following if your attribute is not working:
* -moz-tree-cell-text
* -moz-tree-cell
* -moz-tree-row
* Note that all properties are lowercase and any non-alphanumerical
* character is escaped by using the special string -ux27- where 27 is the
* character code. See calUtils.js, function formatStringForCSSRule().
*/
.calendar-task-tree > treechildren::-moz-tree-cell-text(calendar-home_calendar),
#unifinder-search-results-tree > treechildren::-moz-tree-cell-text(calendar-home_calendar) {
/* Color all items from the calendar called "Home Calendar" */
color: #0090FF !important;
}
.calendar-task-tree > treechildren::-moz-tree-cell-text(alarm),
#unifinder-search-results-tree > treechildren::-moz-tree-cell-text(alarm) {
/* Color all items that have an alarm */
color: red !important;
}
.calendar-task-tree > treechildren::-moz-tree-cell-text(status-in-process),
#unifinder-search-results-tree > treechildren::-moz-tree-cell-text(status-confirmed) {
/* Color all events that are confirmed and all tasks that are in process */
color: #AA0000 !important;
}
.calendar-task-tree > treechildren::-moz-tree-cell-text(category-birthday),
#unifinder-search-results-tree > treechildren::-moz-tree-cell-text(category-birthday) {
/* Color all items that are in the birthday category */
color: #00AA00 !important;
}
/**
* PURPOSE: color event boxes based on certain properties
* To control the looks of the event boxes, you can use the following
* selectors:
* .calendar-event-box-container
* .calendar-item
* calendar-event-box
* calendar-month-day-box-item
* If the box doesn't look like you want it to, try different selectors, maybe
* also incombination. Note again that certain fields are escaped (i.e
* category) with the same function as noted above.
*/
calendar-event-box[readonly],
calendar-month-day-box-item[readonly] {
/* Make events from readonly calendars half-transparent */
opacity: 0.5;
}
.calendar-event-box-container[alarm] {
/* Color all events that have an alarm */
background-color: #00DD00 !important;
}
.calendar-event-box-container[categories~="birthday"] {
/* Color all items that are in the Birthday category */
background-color: blue !important;
}
.calendar-event-box-container[priority="high"] {
/* Color all high priority items */
background-color: #DD0000 !important;
}
.calendar-event-box-container[progress="overdue"] {
/* Color all overdue tasks */
background-color: red !important;
}
.calendar-event-box-container[status="in-process"] {
/* Color all tasks that are in progress */
background-color: #0090FF !important;
}
.calendar-event-box-container[calendar="home calendar"] {
/* Color all items in the "Home Calendar" calendar */
background-color: yellow !important;
}
.calendar-event-box-container[allday] {
/* Color allday items specifically */
background-color: #0000DD !important;
}
Bei der Gelegenheit: Wem der neu gestaltete Navigationsbereich über dem Kalenderblatt zu klein von der Schriftgröße her ist, der probiere mit Folgendem rum:
- Code: Alles auswählen
.view-header {
font-size: 20px !important;
}
Offenbar passen sich die recht kleinen Schaltflächen solchen Änderungen dann auch an.
Abschließend: Ich würde sagen, jemand sollte endlich ne CSS-Bastelecke im Wiki anlegen.
Schöne Grüße
Robert