Style dates using relative date colors
masterEvery date property is assigned a data-relative-date attribute with one of three values: past, present, or future. This allows you to style dates based on their relation to the current time.
Implementation:
- Use the
data-relative-dateattribute in your CSS to apply custom styles. - You can also select specific colors for past, present, and future dates directly in the plugin settings.
Note: Relative date attributes are not updated automatically. To see color changes as time passes (e.g., a 'present' date becoming 'past'), you must reopen the note.