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.

    How can I increase the font size for some modules?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    5 Posts 5 Posters 820 Views 6 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.
    • K Offline
      Kelemvor
      last edited by

      Hi,

      My MM is connected to a ~24" screen in portrait mode. Some of the modules are easily readable, but some could be a bit bigger. Is there an easy way to increase the font size for them?

      I’ve never been good with the Developer view to figure out which tags are on which elements.

      I’m using the default Weather module and the Forecast section could stand to be a bit larger all around. I’m also using the CalendarExt3Agenda and everything there could stand to be a bit bigger as well.

      Any help would be great.
      Thanks!

      c1b768f4-4962-4049-b130-0909932f2245-image.png

      M BKeyportB 2 Replies Last reply Reply Quote 0
      • M Offline
        MMRIZE @Kelemvor
        last edited by MMRIZE

        @Kelemvor

        /* append belows into your css/custom.css */
        .CX3A {
          font-size: 20px; /* default was 16px */
        }
        
        1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @Kelemvor
          last edited by

          @Kelemvor If you don’t want to do a global change, each module will likely have it’s own CSS to do it, best to load your mirror in a browser that has dev tools, and find it that way, changing in custom.css, for example…

          /* CalendarExt3Agenda */
          .CX3A {
          	font-size: 20px;
          }
          

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

          1 Reply Last reply Reply Quote 0
          • S Offline
            schrecki
            last edited by

            @Kelemvor said in How can I increase the font size for some modules?:

            CalendarExt3Agenda

            Hello, i have the same issue here with another module: MMM-ioBroker
            I’m not a CSS-Freak, but adding a few lines to the custom.css should not be that complicated. I also changes the newsfeed and 2 other Modules.
            To understand your solution here, the “.CX3A”. it comes from the CSS file from the module itself. It is not the Module name or the name how it is registered, right?

            So i added

            .module.MMM-ioBroker
            { font-size: 30px; }
            

            and i also tried

            .MMM-ioBroker
            { font-size: 30px; }
            

            Both with no changes to the screen.

            Then i tried to add the “font-size: 30px” to the modules .css file itself.
            No success at all :(

            What am I doing wrong?

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

              @schrecki css is a tricky beast, some settings are inherited by smaller components , some not.

              there is no single setting that works for all

              i don’t know the exact answer for any module
              but you can find it by using the developer window elements tab

              see the second link in my signature below

              one key thing to know is the css stuff you need to add to custom.css

              the stuff before the { is the selector clause
              it ‘selects’ the elements the stuff inside the {} will be applied to

              . (dot) means classname
              # means id value
              no prefix means an html tag name div, p, table...
              

              i use this cheatsheet site
              https://www.w3schools.com/cssref/css_selectors.php

              they have changed it to group the types, so you have to look thru the types

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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