Enhancements to the Event View and class naming #1168
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Change
This change implements a new format for the event mode, previously this mode used a table with divs inside, this meant that customising the style was somewhat limited due to the table.
Moving to a full div based design with classes on all of the divs enables much more customisation utilising card mod.
There are multiple changes here that will likely break existing card mods and also remove some font/color config options from ACR as these can be customised with card mod now.
Class changes
headerNameSuperCompact
class replaced withheader-name compact
headerName
class renamed toheader-name
headerDateSuporCompact
class replaced withheader-date compact
headerDate
class renamed toheader-date
hoursHTML
class renamed tohours
relativeTime
class renamed torelative-time
timeRemaining
class renamed totime-remaining
event-leftCurrentDay
class renamed tocurrent-day
hide-date
class added whenshowEventDate: false
added classes
event-date-day
,event-date-month
,event-date-week-day
for left column dates.event-leftSuperCompact
class replaced withevent-left compact
event-titleRunning
class replaced withevent-title running
eventIcon
class renamed toevent-icon
Config Removed
dateColor
dateSize
dayWrapperLineColor
eventTitleSize
timeColor
timeSize
Related issues
fixes #1160
fixes #1154
fixes #1147
Type of change
Please delete options that are not relevant.
Checklist