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.

    Resizing font size of modules

    Scheduled Pinned Locked Moved Solved Troubleshooting
    26 Posts 3 Posters 12.9k 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
      Rags @MMRIZE
      last edited by Rags

      @MMRIZE It is still placed there ( /home/pi/MagicMirror/css/custom.css) , and configured with font-size:60px. I only copied that file into newsfeed module folder since the font size was not increasing, and thought to just try if it works by placing it into the newsfeed module folder.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @Rags
        last edited by

        @Rags

        Try this in your custom.css

        .newsfeed-title {
          font-size: 60px;
          color: green;
        }
        
        .newsfeed-source {
          font-size: 40px;
          color: magenta;
        }
        

        44e41bcc-6839-40a1-ae65-dd067cb26063-image.png

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

          @MMRIZE you should follow the correct model

          .modulename ....... {
          
          }
          

          while it didn’t make acdifference here, it will sometime

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @Rags in the case where there is no space between the class names

            .xxx.yyy

            that means they are ALL specified together on the same element

            when there IS. space
            .xxx. .yyy

            that means the element which is a child of the element with the more left

            .xxx
            .yyy

            iframe however is hard, cause you don’t have control of what is inside the iframe, it has its own document and css tree

            again the developers window will help

            if things are selected I. the custom.css u provide that means I spelled it wrong or the order is wrong…
            oh and css is case sensitive just like JavaScript

            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
              Rags @sdetweil
              last edited by Rags

              @MMRIZE I am stumped. The changes to the color happened, but the resizing still not responding.
              2023-04-25_18-49-58.png
              2023-04-25_18-48-54.png

              S M 2 Replies Last reply Reply Quote 1
              • S Offline
                sdetweil @Rags
                last edited by

                @Rags while in the developers window, with the element u want to change selected , the upper right window in the dev env allows you to apply styles to that element. (green box)

                so color, font-size, etc…
                in the middle pane pof the dev env, on the bottom row is the selector path to that element (pink box)
                Screenshot at 2023-04-25 09-04-39.png

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • M Offline
                  MMRIZE @Rags
                  last edited by MMRIZE

                  @Rags
                  C of ‘CSS’ is cascading.
                  Probably somewhere in your css files, the prior selector of the same target would be defined with font-size.

                  You can watch which selectors and properties are linked to your target element with the frontend dev-console.

                  Or you can just restart with “clean” custom.css again and just add one rule and check how it works. Then do one-by-one until you can understand what you are doing now.

                  Good luck.

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

                    @sdetweil dev window 2023-04-26_17-35-29.png
                    Obviously i am doing something wrong.
                    I am unable to get to the style even when newsfeed element is highlighted. Or, the style is picking up from main.css and changing anything here will impact all styles.

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

                      @Rags you are in the script section, not the body , click body, bottom left
                      use the arrow top right to select the part of the MM screen (it will highlight as u move over it)

                      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
                        Rags @sdetweil
                        last edited by

                        @sdetweil nf22023-04-26_19-20-40.png

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • 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