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.

    Clock Module - Adjust light time to avoid line break

    Scheduled Pinned Locked Moved Custom CSS
    8 Posts 3 Posters 820 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.
    • R Offline
      rkorell @sdetweil
      last edited by

      @sdetweil Dear Sam,
      as always: You’re right! This works.

      Thanks a lot.

      Today in the morning (before reading your post/suggestion) I’ve found

      .clock .module-content span.bright {
      color: yellow;
      }
       
      

      Interesting enough a width attribute is not working at this identifier - color works…

      Warmest regards,
      Ralf

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @rkorell
        last edited by

        @rkorell you dont need the .module_content

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rkorell @sdetweil
          last edited by

          @sdetweil Dear Sam,
          you are sooo good.
          And so right!

          Thanks again!

          Ralf

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @rkorell
            last edited by sdetweil

            @rkorell span lives inside a div. It does not inherit the div’s size. Good thing else everything would be squished in the div

            Your css says

            For ALL elements with clock as a class (and descendants)
            ALL span elements with the class bright
            Should have the color style set to yellow for the spans text content

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              dathbe
              last edited by

              I use the following in my css to solve this:

              .clock .sun {
                white-space: nowrap;
              }
              
              .clock .fas {
                padding-left: 10px;
              }
              

              The second part isn’t strictly necessary, but I find it gives some needed space between the elements

              R 1 Reply Last reply Reply Quote 0
              • R Offline
                rkorell @dathbe
                last edited by

                @dathbe this is a cool idea!
                Thanks.
                Ralf

                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