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 Help with Two Small Items

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 3 Posters 441 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.
    • S Offline
      Splashed
      last edited by

      I finally have my wall calendar project essentially where I want it to be, but there are two small things that are driving me nuts and I cant figure out. If anyone can help with either, please let me know.

      #1 - In the yellow, the actual clock portion of my default clock module is so small. I have tried to enlarge it multiple times using the config and the css file, but each time it either changes nothing, or changes the clock as well as other things. I only want to enlarge the clock portion in yellow.

      #2 - Circled in red is the calendar module. I have changed the timing to display the time as relative. It works great, but my kids dont understand the 24 hour clock it uses. How can I change the timestamps in the red circle to use the 12 hour clock instead and to read “Today at 5:00pm” instead of “Today at 17:00”?

      Thanks everyone.

      MagicMirror.jpg

      S BKeyportB 2 Replies Last reply Reply Quote 0
      • S Away
        sdetweil @Splashed
        last edited by

        @Splashed use the developers window elements tab

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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • BKeyportB Online
          BKeyport Module Developer @Splashed
          last edited by

          @Splashed Clock is easy. I blew mine up 5 times from the base font…

          /* Clock  */
          .clock .time {
          	font-size: 5rem;
          }
          

          24 hour clock is likely in your dateFormat string, check the docs here: https://docs.magicmirror.builders/modules/calendar.html#configuration-options

          If you’re customizing, the “H” is 24 hour, “h” is 12 hour.

          see: https://momentjs.com/docs/#/parsing/string-format/ for more options to get it the exact way you want it - or teach your kids to subtract 12 (minus 10, minus 2 in new math) from the time to not be confused. 😉

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

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            Splashed @BKeyport
            last edited by

            @BKeyport You advice worked perfect, after a little trial and error. Turns out I had a .clock .bright setting in my clock that was overriding the .clock .time setting.

            I also eventually found the calendar formatting setting I was after.

            Thanks a lot.

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Online
              BKeyport Module Developer @Splashed
              last edited by

              @Splashed For future use -

              The most important part, read the documentation (No matter how bad it is, a lot of us aren’t native english speakers) before doing anything. There’s a lot of effort put in to make the project accessable to even the most basic of users, so it may not even need CSS!

              If you need to fix CSS:

              1. Look in directories of the module for CSS files - these will give you clues on what to look for. In the case of default modules, many of their settings are in main.css

              2. Make sure your mirror is able to be loaded on a remote computer thusly:

              var config = {
              	address: "0.0.0.0",
              	port: 8080,
              	ipWhitelist: [],
              ... 
              
              1. Load your mirror on a work computer by going to “http://:8080” - then use the developer tools (typically ctrl-shift-i) to look through the styles and play with live output. You may need to insert a breakpoint to stop the constant refreshes.

              2. Once you find what you want, you can put the changes in custom.css

              Happy “hacking”

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

              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