• 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-CalendarEXT2 - Change Icon Size

Scheduled Pinned Locked Moved Solved Troubleshooting
3 Posts 2 Posters 928 Views 2 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.
  • A Offline
    Apartment_Moose
    last edited by Jan 13, 2020, 2:10 AM

    Hi,

    Having some trouble getting the right code in my custom.css for changing icon sizes for this particular module only. any help would be great as i would like to increase the icon size by roughly +15% or so.

    Thanks

    ? 1 Reply Last reply Jan 13, 2020, 3:48 PM Reply Quote 0
    • ? Offline
      A Former User @Apartment_Moose
      last edited by Jan 13, 2020, 3:48 PM

      @Apartment_Moose
      It depends on font-size of event basically.
      See this;
      https://github.com/eouia/MMM-CalendarExt2/wiki/4.-Styling#some-default-sizes

      .CX2 { /* default values which are used frequently or dependently */
        --row-min-width: 100px;
        --row-max-width: 1000px;
        --column-min-width: 300px;
        --column-max-width: 400px;
        --font-size: 16px;
      }
      

      Adjust --font-size as your wish.

      Of course, you can forcibly set eventIcon on CSS also.
      By default it is defined like this. (MMM-CalendarExt2.css)

      .CX2 .period .eventIcon {
        min-width: calc(var(--font-size) * 2);
        min-height: calc(var(--font-size) * 2);
        margin-right:5px;
        float:left;
      }
      
      .CX2 .weekSlot .eventIcon {
        min-width: var(--font-size);
        min-height: var(--font-size);
        margin-right:3px;
        display:block;
        padding-bottom:3px;
      }
      

      So you can redefine/override them in your css/custom.css. But for harmony with text, I recommend you to use --font-size globally.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Apartment_Moose
        last edited by Jan 13, 2020, 6:46 PM

        @Sean
        thanks for the help, i didnt realize icon size was set by --font-size as well, i will take your advice and run with adjusting the font globally for the module.

        thanks alot!

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