• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Move a module with custom.css

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 1.7k Views 2 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.
  • E Offline
    Egnos
    last edited by Egnos Mar 6, 2020, 8:48 AM Mar 6, 2020, 8:41 AM

    Hello to all,
    I’m a beginner and I can’t move to positions other than the standard settable ones in config.js.
    For example “top_bar”, “bottom_bar”, “upper_third”, etc…

    I tried to build a “custom.css” to move the “mmm-suncalc” module down (the module pictured below left), as shown in the following image:

    2020-03-05-163618-1600x795-scrot-MOD

    Here is the custom.css that I made:

    /*****************************************************
     * Magic Mirror                                      *
     * Custom CSS                                        *
     *                                                   *
     * By Michael Teeuw http://michaelteeuw.nl           *
     * MIT Licensed.                                     *
     *                                                   *
     * Add any custom CSS below.                         *
     * Changes to this files will be ignored by GIT. *
     *****************************************************/
    
    header {
      text-transform: uppercase;
      font-size: 15px;
      font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
      font-weight: 400;
      border-bottom: 1px solid #666;
      line-height: 15px;
      padding-bottom: 5px;
      margin-bottom: 10px;
      color: #999;
    }
    
    body {
      margin: 60px;
      position: absolute;
      height: calc(100% - 120px);
      width: calc(100% - 120px);
      background: #000;
      color: #aaa;
      font-family: "Roboto Condensed", sans-serif;
      font-weight: 400;
      font-size: 2em;
      line-height: 1.5em;
      -webkit-font-smoothing: antialiased;
     }
    
    .mmm-suncalc, div#module_7_mmm-suncalc {
    	position: absolute;
    	top: 100px;
    	left: 30px;
    	bottom: 10px;
    	padding-left: 10px;
    }
    

    But the form does not move!

    Where am I wrong?
    Can you help me?

    Thanks so much.

    My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

    1 Reply Last reply Reply Quote 0
    • B Offline
      BKeyport Module Developer
      last edited by Mar 6, 2020, 9:40 AM

      You’re likely going to have to move the standard region to your liking. For example, I have set my left and right regions to a specific size to make things even (I’ve also centered everything)

      /* Left Regions adjustment */
      .region.left {
      	text-align: center;
      	min-width: 500px;
      }
      
      /* Right Regions - set minimum width */
      .region.right {
      	text-align: center;
      	min-width: 500px;
      }
      

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

      1 Reply Last reply Reply Quote 0
      • B Offline
        broberg Project Sponsor
        last edited by Mar 6, 2020, 6:16 PM

        .mmm-suncalc {
        	position: absolute;
        	top: 100px;
        	left: 30px;
        }
        
        1 Reply Last reply Reply Quote 0
        • E Offline
          Egnos
          last edited by Mar 7, 2020, 8:40 AM

          Ok then I try!
          Thanks guys for the support. :winking_face:

          My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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