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.

    Css error in Main.css?

    Scheduled Pinned Locked Moved Custom CSS
    9 Posts 3 Posters 529 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.
    • BKeyportB Offline
      BKeyport Module Developer
      last edited by

      I’m having a few problems with CSS that I think is all related.

      1. Middle Center zone is left aligned when it should be centered.
      2. I used to be able to stack modules sideways in the top bar using:
      /* adjust modules to display side by side */
      .MMM-ValuesByNotification, .MMM-OpenWeatherForecast {
      	display: inline-flex;
      	margin-right: 5px;
      	margin-left: 5px;
      }
      

      Now it seems the modules are forced to left-align (rather than center) and are contained in a 100% width container.

      Any clue what’s going on?

      The "E" in "Javascript" stands for "Easy"

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

        @BKeyport there was a change in the css to support a new config option

        see https://forum.magicmirror.builders/post/127225

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        BKeyportB 1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @sdetweil
          last edited by

          @sdetweil Ahh, gotcha. Changing the container display to inline-flex fixes centering issue on middle-center, but does not fix being able to set modules side by side.

          I currently have:

          .region .container {
            display: inline-flex;
          }
          
          
          /* adjust modules to display side by side */
          .clock, .MMM-Worldclock {
          	display: inline-flex;
          	margin-right: 5px;
          	margin-left: 5px;
          }
          

          in my custom.css for that screen.

          Thanks!

          The "E" in "Javascript" stands for "Easy"

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

            @BKeyport yes, its was dependent on display:block, the default if not specified

            i posted in that earlier thread about doing display: grid

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by BKeyport

              @sdetweil doh. I missed that comment.

              Works now. Course, Middle_center don’t. 🤣

              The "E" in "Javascript" stands for "Easy"

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

                @BKeyport need to move it over w css

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                BKeyportB 1 Reply Last reply Reply Quote 0
                • BKeyportB Offline
                  BKeyport Module Developer @sdetweil
                  last edited by

                  @sdetweil I couldn’t get it right. It would either be offscreen to the far right and not able to pull back, or otherwise messed up. MMM-EmbedURL for what it’s worth. Gave up. Chose the top bar working the way I wanted, and got rid of middle_center screen and simplified.

                  The "E" in "Javascript" stands for "Easy"

                  C S 2 Replies Last reply Reply Quote 0
                  • C Offline
                    chrisfr1976 @BKeyport
                    last edited by

                    @BKeyport

                    You could try this module: MMM-GlobalPositioner. This can push a module wherever you want it to :)

                    Regards, Chris.

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

                      @BKeyport i went back and looked at my top_center example, a 3x2 grid

                      .region.top.center .container {
                              display: grid;
                              grid-template-columns: repeat(3,1fr);
                              grid-template-rows: repeat(2,1fr);
                              gap:10px;
                      }
                      

                      and added modules and get them in rows… as expected

                      but top center is not full screen width
                      with middle_center, grid and pages, things get nutty… the grid positions are consumed even when the module in the grid is not shown

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      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