MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    CSS Order of execution

    Development
    2
    4
    479
    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.
    • buzzkc
      buzzkc last edited by

      I was just finishing up a new module and noticed other modules I had loaded weren’t looking quite right. Turns out my new module had a .title class that was adjusting the font size. Upon inspection in dev console the .title for other modules that had loaded prior to my new module were using my new module’s .title class.

      Just thought it was worth mentioning that the custom css for modules can affect other modules in the event someone else is seeing css issues if your using common class names.

      Darren

      My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

      S 1 Reply Last reply Reply Quote 1
      • S
        sdetweil @buzzkc last edited by

        @buzzkc that is why u prefix any names with your module name to restrict your settings to your module

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 2
        • buzzkc
          buzzkc last edited by

          Yup, learning that. I had used someone else’s example and determined that wasn’t the correct way. I figured it’s worth admitting one’s mistakes as well as accomplishments. 😉

          Darren

          My Build: https://forum.magicmirror.builders/topic/11153/new-non-mirror

          S 1 Reply Last reply Reply Quote 2
          • S
            sdetweil @buzzkc last edited by

            @buzzkc great thanks… I always thought that custom.css was a bad idea… every module should supply their own file as the getStyles() function provides the mechanism.

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 2
            • 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