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.

    MMM-MonthlyCalendar, config and .css

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    11 Posts 3 Posters 4.4k Views 3 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.
    • S Offline
      sdetweil @Fuergrissa
      last edited by

      @Fuergrissa there needs to be spaces between the classes unless u mean they are in the same element

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Fuergrissa
        last edited by

        @Fuergrissa use the dev window link I posted to be able to see and fiddle w css live without file edit , try , no, edit, try, no loop

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • F Offline
          Fuergrissa
          last edited by

          Thanks I did all of the things you suggest. The developer pane is really handy, but when I drill all the way down to individual calendar events there is no difference in class for events coming from different calendars (which do have the titleClass assigned). Looking in MMM-MonthlyCalendar.js there is a section at the end that looks like it is intended to inherit the color information from the event, but this doesn’t actually happen?

          if (e.color) {
                      var c = e.color;
          
                      if (e.fullDayEvent) {
                        div.style.backgroundColor = c;
                        if (getLuminance(div.style.backgroundColor) >= self.config.luminanceThreshold) {
                          div.style.color = "black";
                        }
                      } else {
                        div.style.color = c;
                      }
                    }
          
          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @Fuergrissa
            last edited by

            @Fuergrissa don’t know this module’s workings

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Fuergrissa
              last edited by

              @Fuergrissa so it looks like this module gets it’s events from the base calendar
              and if the base is not shown

              anyhow, use multiple { url: …}
              blocks in the based calendar add a name: attribute to each

              that will carry forward on the event. I don’t know if this cal will use it

              but then u could set styles for events by cal name

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 1 / 2
              • First post
                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