@dxfan227 said in 2 Of the same module but different position via css?:
@ianperrin
Beautiful. Exactly what I was looking for. regarding your example below ( 2 calendars 1 module with different icons) what would it look like if I wanted sat just the title of of the event to be a different color ( but not the “in x amount of days” ) part
I believe the default calendar module allows colors to be configured, but these will affect the whole row, or only the symbol.
To color just the title, try this
- Change the config to set the
titleClass
for each calendar, e.g.
{
module: "calendar",
header: "Holidays",
position: "top_left",
config: {
calendars: [
{
symbol: "calendar",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics",
titleClass: "red"
},{
symbol: "calendar-check",
url: "webcal://www.calendarlabs.com/ical-calendar/ics/75/UK_Holidays.ics",
titleClass: "blue"
}
]
}
},
- Edit the custom.css file located in ~/MagicMirror/css to include the following
div.module.calendar td.red {
color: #ad0143;
}
div.module.calendar td.blue {
color: #0e66b3;
}
- Restart the mirror