• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Change the color of the relative dates in the default calendar.

Scheduled Pinned Locked Moved Custom CSS
3 Posts 2 Posters 1.3k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Е Offline
    Евгений
    last edited by Mar 4, 2019, 3:35 AM

    Good afternoon, I’m just starting to deal with CSS. Is it possible to make the default calendar so that the absolute dates are of the same color and the relative dates of another, in general, I need to highlight the relative dates in the calendar. Please help.

    J 1 Reply Last reply Mar 4, 2019, 8:29 AM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Евгений
      last edited by j.e.f.f Mar 4, 2019, 8:29 AM Mar 4, 2019, 8:29 AM

      @евгений This is not possible in CSS alone. There is nothing in the HTML to indicate that a date is a relative date vs an absolute date. You would need to modify the javascript to be able to insert appropriate classes into the markup that you could then target with CSS.

      1 Reply Last reply Reply Quote 0
      • Е Offline
        Евгений
        last edited by Mar 5, 2019, 6:29 AM

        Thank you very much. I understood, but this is still difficult for me.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy