From 76ac8dbc3882508e88f233c450f21d0f957b76e1 Mon Sep 17 00:00:00 2001 From: Matt Dyson Date: Mon, 16 Jan 2023 14:37:13 +0000 Subject: [PATCH] Change CSS class names to avoid conflict with core calendar module --- MMM-Todoist.css | 6 +++--- MMM-Todoist.js | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/MMM-Todoist.css b/MMM-Todoist.css index 313155e..2bb0493 100644 --- a/MMM-Todoist.css +++ b/MMM-Todoist.css @@ -23,15 +23,15 @@ width: 3px; } -.overdue { +.todoDueOverdue { text-decoration: underline #ac0000; } -.today { +.todoDueToday { text-decoration: underline #03a05c; } -.tomorrow { +.todoDueTomorrow { text-decoration: underline #166cec; } diff --git a/MMM-Todoist.js b/MMM-Todoist.js index e193b75..d5c64b6 100644 --- a/MMM-Todoist.js +++ b/MMM-Todoist.js @@ -503,20 +503,20 @@ Module.register("MMM-Todoist", { innerHTML = dueDate.toLocaleDateString(config.language, { "month": "short" }) + " " + dueDate.getDate(); - className += "xsmall overdue"; + className += "xsmall todoDueOverdue"; } else if (diffDays === -1) { innerHTML = this.translate("YESTERDAY"); - className += "xsmall overdue"; + className += "xsmall todoDueOverdue"; } else if (diffDays === 0) { innerHTML = this.translate("TODAY"); if (item.all_day || dueDateTime >= now) { - className += "today"; + className += "todoDueToday"; } else { - className += "overdue"; + className += "todoDueOverdue"; } } else if (diffDays === 1) { innerHTML = this.translate("TOMORROW"); - className += "xsmall tomorrow"; + className += "xsmall todoDueTomorrow"; } else if (diffDays < 7) { innerHTML = dueDate.toLocaleDateString(config.language, { "weekday": "short"