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

Large Numbers

Scheduled Pinned Locked Moved Custom CSS
11 Posts 4 Posters 1.6k 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.
  • S Online
    sdetweil @NotMyCircus
    last edited by Aug 27, 2024, 11:26 PM

    @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 Aug 27, 2024, 11:55 PM

      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 Aug 28, 2024, 5:48 AM

        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 Aug 28, 2024, 12:34 PM Reply Quote 1
        • N Offline
          NotMyCircus @MMRIZE
          last edited by Aug 28, 2024, 12:34 PM

          @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 Aug 29, 2024, 6:45 AM Reply Quote 0
          • M Offline
            MMRIZE @NotMyCircus
            last edited by Aug 29, 2024, 6:45 AM

            @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 Online
              sdetweil @NotMyCircus
              last edited by sdetweil Sep 26, 2024, 5:02 PM Aug 30, 2024, 8:34 PM

              @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 Sep 2, 2024, 1:13 AM Reply Quote 1
              • S Online
                sdetweil @sdetweil
                last edited by sdetweil Sep 2, 2024, 1:15 AM Sep 2, 2024, 1:13 AM

                @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
                • W Offline
                  wswenson @NotMyCircus
                  last edited by Dec 5, 2024, 1:52 AM

                  @NotMyCircus
                  Made some changes to custom.css file working towards that style…

                  
                  .CX3 .cw { 
                      display: none !important;
                  }
                  
                  .CX3.bodice {
                      background-image: linear-gradient(to top right, #22c1c3, #176561, #131813);
                  }
                  
                  .CX3 .cell {
                      background: transparent;
                      border: transparent;
                      display: flex; /* Use flexbox for layout */
                      flex-direction: column; /* Stacks elements vertically */
                      align-items: center; /* Centers items horizontally */
                      justify-content: flex-start; /* Ensures content starts at the top */
                      padding: 0.5em; /* Adds space inside the cell */
                      text-align: center; /* Centers text content */
                      overflow: hidden; /* Ensures no content overlaps outside the cell */
                  }
                  
                  .CX3 .cell.today {
                      border: transparent;
                  }
                  
                  .CX3 .cell.today .cellDate {
                      font-size: 4em; /* Adjust the size of the date text */
                      line-height: 1; /* Avoids extra spacing */
                      text-align: center; /* Centers the text within the circle */
                      width: 1.5em; /* Set equal width and height */
                      height: 1.5em; /* Matches width to create a circle */
                      display: flex; /* Use flexbox to align text */
                      justify-content: center; /* Centers text horizontally */
                      align-items: center; /* Centers text vertically */
                      background-color: red; /* Background color for the circle */
                      color: #ffffff; /* Text color */
                      border: 2px solid #e76f51; /* Optional border for the circle */
                      border-radius: 50%; /* Makes the box a circle */
                      margin: auto; /* Ensures proper alignment within the cell */
                  }
                  
                  .CX3 .cellDate {
                      font-size: 4em; /* Adjust font size for the date */
                      line-height: 1; /* Avoids extra spacing */
                      text-align: center;
                      margin-bottom: 1em; /* Adds space below the date */
                      width: auto; /* Removes fixed width */
                      height: auto; /* Removes fixed height */
                  }
                  
                  .CX3 .cellHeader {
                      display: flex;
                      flex-direction: column;
                      align-items: center;
                      justify-content: flex-start;
                      text-align: center;
                  }
                  
                  .CX3 .cellHeader .cellDate span.dateParts.month.seq_0 {
                      display: none;
                  }
                  
                  /* Ensures the eventContainer is placed below the date numbers */
                  .CX3 .eventContainer {
                      margin-top: 1em; /* Adds space above the eventContainer */
                  	top: 74px;
                      width: 100%; /* Ensures it spans the cell width */
                      text-align: left; /* Aligns event text to the left, adjust if needed */
                      word-wrap: break-word; /* Prevents event text from overflowing */
                      //display: block; /* Ensures it behaves as a block element */
                      position: relative; /* Ensures it respects the flow of the document */
                  }
                  
                  

                  b345ed7c-bd38-42b4-b0a8-cf1070477bee-image.png

                  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