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-jast

    Scheduled Pinned Locked Moved Custom CSS
    4 Posts 3 Posters 730 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.
    • plainbrokeP Offline
      plainbroke
      last edited by

      Can anyone tell me the line I need to add to my Custom.css
      to enlarge the font in MMM-jast?

      Slow learner. But trying anyways.

      BKeyportB 1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @plainbroke
        last edited by BKeyport

        @plainbroke In the future, you should go ahead and look at the css file for the module, but,

        
        .jast-wrapper {
          overflow: hidden;
          --size: 1.4rem; /* <- here seems to be the key, currently 28px per defaults */
          font-size: var(--size);
          line-height: calc(var(--size) * 1.44);
        }
        

        1.4rem is slightly smaller than the usual Medium text, for reference, here are the defaults, out of main.css:

         --font-size: 20px; /* Formula for below: font size x rem size */
          --font-size-xsmall: 0.75rem;  /* 15px  */
          --font-size-small: 1rem;  /* 20px */
          --font-size-medium: 1.5rem;  /* 30px */ 
          --font-size-large: 3.25rem;  /* 65px  */ 
          --font-size-xlarge: 3.75rem; /* 75px */ 
        

        If you want to set it to a standard, I would assume you could use --size: var(--font-size-medium);

        The "E" in "Javascript" stands for "Easy"

        ankonaskiff17A 1 Reply Last reply Reply Quote 0
        • ankonaskiff17A Offline
          ankonaskiff17 @BKeyport
          last edited by ankonaskiff17

          @BKeyport A little side note but with the proliferation of bigger screens people are using to display MM’s, that block of font sizes in main.css is worth lifting the whole block and adjusting all your fonts in one place rather than tweaking each modules font individually.

          I found that by accident but once screen size crosses a certain size threshold you don’t need to scale up the font anymore. Just put more modules on application.
          For example, Say your main living area you have a 60 inch screen and you set an appropriate font size for that, if you step up to a72 inch screen you don’t need to ratchet up the font size. My accidental discovery which was just playing around, a 4 inch tall font on your 60 inch TV doesn’t need to step up to a 6 inch font on a 72 inch.

          BKeyportB 1 Reply Last reply Reply Quote 0
          • BKeyportB Offline
            BKeyport Module Developer @ankonaskiff17
            last edited by

            @ankonaskiff17 I actually do just that, however, many modules, like this one don’t use the standard variables. So, I have to set each one manually, thusly:

            from my custom.css

            
            :root {
            	--gap-body-top: 5px;
            	--gap-body-right: 5px;
            	--gap-body-bottom: 5px;
            	--gap-body-left: 5px;
            	--gap-modules: 15px;
            	--color-text: #ddd;
            	--color-text-dimmed: #666;
            	--color-text-bright: #fff;
            	--color-background: #000;
            	--font-size: 21px;
            	--font-size-xsmall: 0.75rem;
            	--font-size-small: 1rem;
            	--font-size-medium: 1.5rem;
            	--font-size-large: 3.25rem;
            	--font-size-xlarge: 3.75rem;
            }
            

            … Example module change:

            
            /* Flipclock - Set size */
            .tick-flip, .tick-text-inline {
            	font-size: var(--font-size-xlarge);
            }
            

            The "E" in "Javascript" stands for "Easy"

            1 Reply Last reply Reply Quote 0
            • 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