• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 9.7k 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 @sdetweil
    last edited by Rags Apr 25, 2023, 1:27 PM Apr 25, 2023, 1:27 PM

    @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 Apr 25, 2023, 2:07 PM Reply Quote 1
    • S Offline
      sdetweil @Rags
      last edited by Apr 25, 2023, 2:07 PM

      @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 Apr 26, 2023, 12:09 PM Reply Quote 0
      • M Offline
        MMRIZE @Rags
        last edited by MMRIZE Apr 25, 2023, 5:02 PM Apr 25, 2023, 5:01 PM

        @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 Apr 26, 2023, 12:09 PM

          @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 Apr 26, 2023, 12:12 PM Reply Quote 1
          • S Offline
            sdetweil @Rags
            last edited by sdetweil Apr 27, 2023, 2:30 PM Apr 26, 2023, 12:12 PM

            @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 Apr 26, 2023, 1:51 PM Reply Quote 0
            • R Offline
              Rags @sdetweil
              last edited by Apr 26, 2023, 1:51 PM

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

              S 1 Reply Last reply Apr 26, 2023, 2:10 PM Reply Quote 0
              • S Offline
                sdetweil @Rags
                last edited by sdetweil Apr 26, 2023, 2:47 PM Apr 26, 2023, 2:10 PM

                @Rags expand the module_content element

                u are not selecting the title to view

                set the module refresh time to 60 seconds (updateInterval:60000) in config.js while you fiddle with the css

                I added a custom.css entry

                .newsfeed .newsfeed-title {
                   font-size: 30px;
                }
                

                you can see it was used here
                and the style medium (strikethru) has been overridden by something with font-size higher up.
                Screenshot at 2023-04-26 09-15-05.png

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Apr 26, 2023, 3:27 PM Reply Quote 0
                • R Offline
                  Rags @sdetweil
                  last edited by Apr 26, 2023, 3:27 PM

                  @sdetweil i am sorry but i am unable to follow correctly what u are advising. However, the HTML code does not seem to contain the newsfeed title descrp. nf32023-04-26_20-53-20.png
                  i think i selected the module content to expand, and i also changed the custom.css entry as suggested. The style display window is not showing the newsfeed entry. I am again not sure if i am doing the right thing. Anyways i am learning as we go.
                  On second thoughts the process of changing the font size is so tedious (as it seems to me now), I wonder if there is an alternate way.

                  S 1 Reply Last reply Apr 26, 2023, 3:48 PM Reply Quote 0
                  • S Offline
                    sdetweil @Rags
                    last edited by sdetweil Apr 27, 2023, 10:59 AM Apr 26, 2023, 3:48 PM

                    @Rags but you didn’t select the actual content (note that it is replaced every updateInterval time cycle… )

                    forum image.png

                    if u aren’t looking at the actual element, then you won’t see its classes and styles…

                    sometimes this is tedious work.

                    here is an updated image with the areas selected in white,
                    highlighted content (left screen)
                    expanded document w selected content (middle)
                    class tree (right)

                    and I used the mouse pointer (pink) to allow highlight and click on the newsfeed title

                    and you can test type the styles in the top box, (green) , to make sure they are right, before you copy/paste that section to the custom.css

                    Screenshot at 2023-04-26 10-49-19.png

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Apr 27, 2023, 12:18 PM Reply Quote 0
                    • R Offline
                      Rags @sdetweil
                      last edited by Apr 27, 2023, 12:18 PM

                      @sdetweil nf4.png
                      After struggling, this is what i managed to take a screenshot of. It does not show the styles of the selected content in the dev screen.

                      M S 3 Replies Last reply Apr 27, 2023, 12:22 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        18/26
                        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