MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Weather vs Weather forecast font

    Troubleshooting
    2
    4
    217
    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.
    • L
      louise last edited by

      Because the weather module encompasses both current and forecast, is there a way to change the font on one but not the other?

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

        @louise you would use the module identifier to set the classes in custom.css

        identifiers are assigned top down in config.js

        opening the developers window ctrl-shift-i on the keyboard, and select the elements tab
        select the pointer in the top left of the dev window, and move it over the content of one of the weather things. click

        it will open the html tree on the right, where u can see the identifier.

        then copy all the weather.css info to custom.css and change the leading selector class from .weather to .identifier, whatever it was

        Sam

        Create a working config
        How to add modules

        L 1 Reply Last reply Reply Quote 0
        • L
          louise @sdetweil last edited by louise

          @sdetweil What do you mean by identifier?

          When I click on the element with the arrow, it takes me to

          code_text
          ```<span class=“bright”> 34.7” </span> == $0```
          code_text
          
          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @louise last edited by

            @louise look up the tree to the module content element

            Screenshot at 2021-12-04 23-13-18.png

            module_12_MMM… here is the identifier for this module

            and oh, because its id=
            you need # instead of . in the custom.css
            (selector cheat sheet)… the thing before the { in a css class is the ‘selector’

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy