• 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-CalendarExt3 possible to round the corners?

Scheduled Pinned Locked Moved Utilities
9 Posts 3 Posters 844 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.
  • B Offline
    bobbylx
    last edited by Jan 25, 2025, 5:03 PM

    Hello all, so I’m looking at making some small customization’s now on my Calendar. I would like to round the corners (the black line) so it matches the rounded corner of the translucent background. Also, how can I add spacing between the name of the weekday and the top edge of the calendar below, not sure if you can see in the screenshot but the Y in each day of the week is touching the bar. I assume this is all done in the custom.css, just would like some guidance on what field to add/change to accomplish this? Thanks in advance.

    MMscreen.jpg

    C 1 Reply Last reply Jan 25, 2025, 9:06 PM Reply Quote 1
    • C Offline
      chrisfr1976 @bobbylx
      last edited by chrisfr1976 Jan 25, 2025, 9:18 PM Jan 25, 2025, 9:06 PM

      @bobbylx
      Hello,

      for the radius update the css and add a border-radius in .CX3 .cell:

      .CX3 .cell {
        border: 1px solid var(--celllinecolor);
        background-color: var(--cellbgcolor);
        height: calc(
          var(--cellheaderheight) + var(--cellfooterheight) +
            calc(var(--eventheight) * var(--maxeventlines))
        );
        position: relative;
        border-radius: 25px; /*adjust as you like it*/
      }
      

      But it might look strange if it is too big. This radius is valid for every calendar cell of course. I use it, too with 3px only.

      Result with 25px:

      Bildschirmfoto 2025-01-25 um 22.02.21.png

      For the other issue I’m also searching for a solution. You can see it my picture :)

      I had this idea:

      CX3 .week {
        width: 100%;
        padding: 0 5px;
        margin-top: 5px; /*this helps but is stupid in the next week*/
        height: calc(
          var(--cellheaderheight) + var(--cellfooterheight) +
            calc(var(--eventheight) * var(--maxeventlines))
        );
        position: relative;
      }
      

      Regards, Chris.

      C 1 Reply Last reply Jan 25, 2025, 9:27 PM Reply Quote 1
      • C Offline
        chrisfr1976 @chrisfr1976
        last edited by Jan 25, 2025, 9:27 PM

        @chrisfr1976

        I’ve found it!

        .CX3 .weekGrid {
          display: grid;
          width: 100%;
          grid-template-columns: repeat(7, [cell-start] 1fr [cell-end]);
          grid-auto-columns: 0fr;
          margin-top: 5px; /* ADD THIS*/
        }
        

        Bildschirmfoto 2025-01-25 um 22.26.27.png

        Regards, Chris.

        B 1 Reply Last reply Jan 26, 2025, 1:43 PM Reply Quote 1
        • B Offline
          bobbylx @chrisfr1976
          last edited by Jan 26, 2025, 1:43 PM

          @chrisfr1976 Thanks for that. It definitely increased the space between the day name and top of the cells, but the rounded corner didn’t work for me. I’ll keep tweaking that. It probably wouldn’t look like I want, if that applies to each cell. I’m hoping round to just corners of the overall calendar, not each cell, so it matches the background.fullscreen_1.jpg

          1 Reply Last reply Reply Quote 0
          • B Offline
            bobbylx
            last edited by Jan 26, 2025, 1:46 PM

            And if this helps, here is my custom.css.

                                                                                   custom.css                                                                                 
            body {
                    background-Image: url("background01.jpg");
                    background-size: cover;
                    position: absolute;
                    margin: 0px;
                    height: 100%;
                    width: 100%;
            }
            header {
              border-bottom: none;
            }
            .wi.dimmed.wi-sunset {
            color: orange;
            }
            .wi.dimmed.wi-sunrise {
            color: yellow;
            }
            .wi-day-sunny {
            color: yellow;
            }
            .wi-day-cloudy {
            color: yellow;
            }
            .wi-rain {
            color: grey;
            }
            .wi-thunderstorm {
            color: grey;
            }
            .wi-snow {
            color: white;
            }
            .wi-fog {
            color: white;
            }
            .wi-night-clear {
            color: white;
            }
            .wi-night-cloudy {
            color: grey;
            }
            .wi-night-showers {
            color: blue;
            }
            .wi-night-rain {
            color: blue;
            }
            .wi-thunderstorm {
            color: yelow;
            }
            .wi-night-snow {
            color: white;
            }
            .wi-night-alt-cloudy-windy {
            color: grey;
            }
            .clock, .weather, .MMM-MoonPhase, .MMM-WeeklySchedule {
                    display: inline-flex;
                    margin-right: 25px;
                    margin-left: 25px;
            }
            .lessontime {
                 text-align: right;
                 white-space: nowrap;
                 padding-right: 2em;
                 width: 1ex;
                 font-size: 27px;
                 color: white;   
             }
             .lesson{
                 text-align: left;
                 font-size: 27px;
                 color: white;
             }
            .MMM-CalendarExt3 {
                  background-color:rgba(255, 255, 255,0.4);
                  border-radius:20px;
                 padding: 8px; } 
            CX3 .cell {
              border: 1px solid var(--celllinecolor);
              background-color: var(--cellbgcolor);
              height: calc(
                var(--cellheaderheight) + var(--cellfooterheight) +
                  calc(var(--eventheight) * var(--maxeventlines))
              );
              position: relative;
              border-radius: 25px; /*adjust as you like it*/
            }
            .CX3 .weekGrid {
              display: grid;
              width: 100%;
              grid-template-columns: repeat(7, [cell-start] 1fr [cell-end]);
              grid-auto-columns: 0fr;
              margin-top: 5px; /* ADD THIS*/
            }
            .CX3 .cw {
                    display:none;
            }
            .CX3 .cellContainer .cell:nth-child(1) .cw {
              display: none;
            }
            .CX3 .cw::before {
                    display: none;
            }
            .CX3 .event.singleday {
              border-left:4px solid var(--calendarColor);
            }
            
            .CX3 .event.singleday:not(.useSymbol)::before {
              content: '';
            }
            .CX3 .event.singleday .headline:not(.useSymbol)::before {
              display: none;
            
            .CX3 .cell.today {
              border: 2px solid #fff; /* default was 1px, so you can change to 2px or whatever */
            }
            .CX3 .thisMonth {
              background-color: rgb(255 255 255 / 10%);
            }
            
            C 1 Reply Last reply Jan 26, 2025, 6:59 PM Reply Quote 0
            • C Offline
              chrisfr1976 @bobbylx
              last edited by Jan 26, 2025, 6:59 PM

              @bobbylx
              Have you tried to add a border-radius to .CX3 .weekGrid? I don‘t know if that works, but maybe… :)

              Regards, Chris.

              B 1 Reply Last reply Jan 27, 2025, 7:41 PM Reply Quote 0
              • B Offline
                bobbylx @chrisfr1976
                last edited by Jan 27, 2025, 7:41 PM

                @chrisfr1976 said in MMM-CalendarExt3 possible to round the corners?:

                @bobbylx
                Have you tried to add a border-radius to .CX3 .weekGrid? I don‘t know if that works, but maybe… :)

                Worth a shot, but that didn’t do it. Now that I know what wording creates that rounded corner, I’ll just experiment and see what happens. Hah, I’ll get it eventually!

                S 1 Reply Last reply Jan 27, 2025, 7:50 PM Reply Quote 0
                • S Away
                  sdetweil @bobbylx
                  last edited by Jan 27, 2025, 7:50 PM

                  @bobbylx use the developers window to experiment with the style changes.

                  see the second link in my signature below for an explanation on how to use it

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Jan 27, 2025, 9:01 PM Reply Quote 1
                  • S Away
                    sdetweil @sdetweil
                    last edited by Jan 27, 2025, 9:01 PM

                    @bobbylx and a good google search ,
                    how do i round the corners of a box w css

                    will hive you the style names

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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