Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    Custom CSS
    2
    3
    936
    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.
    • Е
      Евгений last edited by

      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 Reply Quote 0
      • J
        j.e.f.f Project Sponsor Module Developer @Евгений last edited by j.e.f.f

        @евгений 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
        • Е
          Евгений last edited by

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

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy