MagicMirror² v2.12.0 is available! For more information about this release, check out this topic.

Enlarging clock causes overlap



  • Hi all!

    I have been making a new installation and am having issues with the clock. I have the screen in a portrait position and I want the clock to be displayed at the top taking up the whole width so it can been seen clearly across the room. The issue I am having is that although I found out about the ability to use the custom.css file to tweak things like the font size, it is now overlapping other modules and the date dissapears off of the top of the screen:

    alt text

    Is there anyway to get the the date closer to the clock and move the other modules below the “top_bar” where the clock is now?

    Many thanks!



  • @smartroad okay figured out the spacing issue, added:

    .region.top .container {
      margin-bottom: 275px;
    }
    

    and now have the calendar and waether spaced below the clock. Still not sure how to move the date closer to the clock though



  • I think the better way is to set line height of the text according to text size in custom.css:

    .clock .time {
      text-align: center;
      font-size: 84px;
      line-height: 84px;
    }
    


  • Wooo sorted 😃

    .clock .time{
    /*transform: scale(5);*/
    font-size:300px;
    }
    
    .clock .date {
    font-size: 75px;
    margin-bottom:75px;
    }
    
    .region.top .container {
      margin-bottom: 200px;
    }
    

    results in:

    alt text


Log in to reply