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.

    Large Numbers

    Scheduled Pinned Locked Moved Custom CSS
    11 Posts 4 Posters 1.4k Views 5 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.
    • N Offline
      NotMyCircus
      last edited by

      I am a MM Newbie, and I’ve been working for a couple weeks on a family calendar based on MM. I would like the layout to look something like the image below with large numbers and the current date circled in red. Is that the type of customization I would do using a custom.css?

      DKBLargeNumbers.png

      S W 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @NotMyCircus
        last edited by

        @NotMyCircus what module are you using to do this display?

        the default calendar is a list

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        N 1 Reply Last reply Reply Quote 1
        • N Offline
          NotMyCircus @sdetweil
          last edited by

          @sdetweil I am trying out MMM-CalendarExt3 at the moment, but I am not married to anything, yet. I am open to any suggestions to get that layout.

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

            @NotMyCircus Ok, the module provides a LOT of customization thru css
            see the file he provides… in the module folder

            see the link below in my signature on using css…

            all your css overrides will go in css/custom.css

            I think its doable, but you are on the bleeding edge of this kind of customization.

            he already has a style that highlights the current day

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 1
            • N Offline
              NotMyCircus
              last edited by

              Thanks! Sounds like this will be a fun project, then. I’ll dig into the module files and see what I can tweak with css changes.

              1 Reply Last reply Reply Quote 0
              • M Offline
                MMRIZE
                last edited by

                You can get a hint from this thread.
                https://forum.magicmirror.builders/topic/18069/multiple-modules-in-a-region?page=1

                N 1 Reply Last reply Reply Quote 1
                • N Offline
                  NotMyCircus @MMRIZE
                  last edited by

                  @MMRIZE That is an excellent thread! I will read through that and see if I can figure out how to duplicate the results, and then adjust to what I want. The first question that comes to mind, and this may be a really dumb question, but would it make more sense to modify the EXT3 module rather than making so many changes in the css?

                  M S 2 Replies Last reply Reply Quote 0
                  • M Offline
                    MMRIZE @NotMyCircus
                    last edited by

                    @NotMyCircus said in Large Numbers:

                    would it make more sense to modify the EXT3 module rather than making so many changes in the css?

                    It is up to you. But when you modify the source code, you may have the problem on the next update of the module.

                    1 Reply Last reply Reply Quote 1
                    • S Offline
                      sdetweil @NotMyCircus
                      last edited by sdetweil

                      @NotMyCircus i think everything you want is all about style and placement, not about data

                      have you made any progress?

                      in the css header for this module, make the cell
                      lines disappear
                      hide the current week number
                      set the weekday format to narrow, to get the one letter
                      set the date format to just the day number
                      i think you can hide the footer.
                      override the cell background color, set its opacity to 0, transparent

                      override the day number color to .today
                      may need to customize that for the circle too.

                      then you can set the background of the calendar grid div to your blue gradient

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @NotMyCircus

                        as an example with css changes I did this in about 20 minutes
                        config

                              {
                                module: "MMM-CalendarExt3",
                                position: "middle_center",
                                disabled: false,
                                config: {
                                  mode: "week",
                                  weeksInView:2,
                                  firstDayOfWeek: "1",
                                  fontSize:'30px',
                                  headerWeekDayOptions: {
                                    weekday: 'narrow'  // this makes the weekday 1 characater wide
                                  },
                                }
                        }
                        

                        css

                        
                        .CX3 .cw {
                        	display: none !important;
                        }
                        
                        .CX3.bodice {
                            background:linear-gradient( blue,lightblue);
                        }
                        .CX3 .cell {
                        	background: transparent;
                        	border: transparent;
                        }
                        .CX3 .cell.today {
                        	border: transparent;
                        }
                        .CX3 .cellDate  {
                          margin-right: 20px;
                        }
                        
                        .CX3  .cellHeader .cellDate span.dateParts.month.seq_0  {
                            display: none;
                        }
                        

                        Screenshot at 2024-09-01 20-08-23.png

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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