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.

    modifying css to only one instance of a module

    Scheduled Pinned Locked Moved Custom CSS
    7 Posts 3 Posters 1.7k 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @N3RD
      last edited by

      @N3RD every module has a wrapper with an id. This is is the module identifier e.g. module_1_clock. There is no need to modify files. You can then target specifically that instance in CSS.

      #module_1_clock {
          margin: 20px;
      }
      

      you can find out the identifier in the DOM.

      Please create a github issue if you need help, so I can keep track

      S 1 Reply Last reply Reply Quote 1
      • S Do not disturb
        sdetweil @strawberry 3.141
        last edited by

        @strawberry-3-141 thanks… didn’t know we could use the identifier…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • N Offline
          N3RD
          last edited by

          @strawberry-3-141 thanks for the tip! Now to sound even more newb, how do I read the DOM??

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @N3RD
            last edited by sdetweil

            @N3RD modules are numbered from top to bottom in config.js
            Also see the elements tab in the developers window

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              N3RD @sdetweil
              last edited by

              @sdetweil got it! thanks guys, I’m slowly building confidence to poke around more and tweak. And annoy my wife by constantly tinkering ;)

              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy