Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Enlarging clock causes overlap

    Custom CSS
    2
    4
    214
    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.
    • S
      smartroad last edited by

      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!

      S 1 Reply Last reply Reply Quote 0
      • S
        smartroad @smartroad last edited by

        @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

        S 1 Reply Last reply Reply Quote 0
        • hango
          hango Module Developer last edited by

          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;
          }
          
          1 Reply Last reply Reply Quote 0
          • S
            smartroad @smartroad last edited by

            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

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy