• 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.

MMM-OpenWeatherMapForecast header

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 495 Views 1 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
    scumbelly
    last edited by May 30, 2021, 4:22 PM

    Hi,

    I’m trying to add a color to the header for the MMM-OpenWeatherMapForecast module and I’m not getting anywhere.

    The .css has this default section.

    /* Forecast Header */

    .MMM-OpenWeatherMapForecast .module-header.forecast-header {
    margin-top: 20px;
    margin-bottom: 0;
    }

    I tried to add other fields but eventually just tried color: #7FFF00; and something that simple didn’t work.

    The header I entered in config.js is displayed but I can’t get a color change, get the text capitalized, centered, etc.

    The .njk Forecast Title section looks O.K. to me but maybe I’ve overlooked something silly.

    Suggestions appreciated.

    Regards

    S 1 Reply Last reply May 30, 2021, 4:39 PM Reply Quote 0
    • S Offline
      scumbelly @scumbelly
      last edited by May 30, 2021, 4:39 PM

      If you test something 100 times always test it just once more.

      This worked…

      /* Forecast Header */

      .MMM-OpenWeatherMapForecast .module-header {

      .forecast-header wasn’t needed (even tried one time with a space between the two).

      Cheers

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