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

Scheduled Pinned Locked Moved Entertainment
magic mirrorquotesrandom
10 Posts 4 Posters 4.8k Views 4 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @Spankythemusical
    last edited by Jul 18, 2017, 10:30 AM

    @Spankythemusical said in MMM-QuotesFromReddit:

    Is there any way to add a css file to control the font size?

    The readme for the compliments module:
    https://github.com/MichMich/MagicMirror/tree/develop/modules/default/compliments

    Configuration options

    classes

    Override the CSS classes of the div showing the compliments

    Default value: thin xlarge bright

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 0
    • S Offline
      Spankythemusical
      last edited by Jul 18, 2017, 11:46 AM

      While it is entirely possible that I’m overlooking something simple, adding that config to the MMM-QuotesFromReddit section of config.js has no effect.

      M 1 Reply Last reply Jul 18, 2017, 11:59 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @Spankythemusical
        last edited by Jul 18, 2017, 11:59 AM

        @Spankythemusical

        My mistake entirely. I thought we were talking about the compliments module.

        in your custom.css file you could try adding this:

        .MMM-QuotesFromReddit thin.xlarge.bright {
          font-size: 21px;  /* Adjust accordingly */
        }
        

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S Offline
          Spankythemusical
          last edited by Spankythemusical Jul 18, 2017, 1:45 PM Jul 18, 2017, 12:41 PM

          No problem. I was sure it was something that I was doing wrong. So in my MMM-QuotesFromReddit.js file I added:

           },
          
                  getStyles: function () {
                          return ["MMM-QuotesFromReddit.css"];
                  },
          

          Then I created a MMM-QuotesFromReddit.css file and put in the line that you wrote. Still no change. I’m going to continue messing with it, but any additional help would be unbelievably appreciated.

          EDIT: I figured it out. I changed the line:

          wrapper.className = "thin xlarge bright";
          

          to:

          wrapper.className = "small";
          

          Works like a charm!

          B 1 Reply Last reply Jul 18, 2017, 1:57 PM Reply Quote 0
          • B Offline
            bthuilot @Spankythemusical
            last edited by Jul 18, 2017, 1:57 PM

            @Spankythemusical Hey sorry for the late response, I will make it so that you can change that in the config file soon and not need to edit the js file.

            1 Reply Last reply Reply Quote 0
            • S Offline
              Spankythemusical
              last edited by Jul 19, 2017, 7:56 AM

              @bthuilot It’s no big deal. I honestly don’t know if the issue I was having was the same for anyone else. Just glad I was able to find a workaround so that I could use your module. Thank you for the work!

              1 Reply Last reply Reply Quote 0
              • 5 Offline
                5M3D1N4 @bthuilot
                last edited by Mar 29, 2024, 9:09 PM

                @bthuilot I know this is years later but is this module not available anymore?

                1 Reply Last reply Reply Quote 0
                • B bugsounet referenced this topic on Mar 31, 2024, 10:24 AM
                • 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