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.

    Config for a simple clean montly calendar

    Scheduled Pinned Locked Moved Development
    25 Posts 8 Posters 22.7k Views 9 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.
    • Piranha1605P Offline
      Piranha1605
      last edited by

      Here is a sample for you.

      Calendar.png

      
      /**
       * module.width_height
       */
      
       .module.MMM-CalendarExt2 {
        height: 600px;
      }
      
      
      /**
       * module.color_border_shadow
       */
      
       .module.MMM-CalendarExt2 {
        background-color:#2a313b;
        border-radius:8px;
        padding:8px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
      }
      
      /**
       * MMM-CalendarExt2.
       */
      
      .CX2 .slot .event{
      	background: #1f242c;
      }
      .CX2 .agenda .eventSub {
      	display:none;
      }
      .CX2 .slot .slotHeader{
        background: #1f242c;
        border: 1px solid black;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
      }
      .CX2 .today .slotHeader * {
      	color: white;
      }
       .CX2 .event.fullday {
        background: #1f242c;
        border-radius:0px;
      }
      
      .CX2 .event[data-calendar-name="Google"] {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
        min-height:80px;
      }
      .CX2 .event[data-calendar-name="Karate"] {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
        min-height:80px;
      }
      .CX2 .event[data-calendar-name="Abfall"] {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
        min-height:80px;
      }
      .CX2 .event[data-calendar-name="Arbeit"] {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
        min-height:80px;
      }
      .CX2 .event[data-calendar-name="Feiertage"] {
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1), 0 8px 20px 0 rgba(0, 0, 0, 0.19);
        color: white;
        min-height:80px;
      }
      
      /**
       * Iconsize.
       */
      
      .CX2 .event .eventIcon {
        min-width: calc(var(--font-size) * 2,5);
        min-height: calc(var(--font-size) * 2,5);
        margin-right:5px;
        float:left;
      }
      .CX2 .period .eventIcon {
        min-width: calc(var(--font-size) * 2,5);
        min-height: calc(var(--font-size) * 2,5);
        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;
      }
      
      T 1 Reply Last reply Reply Quote 0
      • Piranha1605P Offline
        Piranha1605
        last edited by

        @Piranha1605 said in Config for a simple clean montly calendar:

        .CX2 .event[data-calendar-name=โ€œGoogleโ€]

        Enter the name of your calendar here

        1 Reply Last reply Reply Quote 0
        • C Offline
          Clubjack @mlcampbe
          last edited by

          @mlcampbe
          Hey. Last days i created my calendar with your helpfull custom.css.

          Do You know the Code for changing the height of the Event-Bar?
          I need it a little bit smaller.

          Thank You.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            mlcampbe @Clubjack
            last edited by

            @Clubjack
            I am not quite sure what you mean by the Event-Bar. Is that the height of a row or title size or what exactly are you talking about? I no longer use the calendar as my needs were only for about 1 years time but might be able to help if you can tell me exactly what part you need to modify.

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              Clubjack @mlcampbe
              last edited by

              @mlcampbe
              Thank You. But i found it myself. ๐Ÿ‘๐Ÿผ

              But i have another queetion.

              I use the calendar in week-View.
              The Today-Header has an other Color. Thats good.
              But is it possible to change the background-Color of the Today Slot too?
              So it is easier to see the actual day.

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

                I believe one of these should probably work:

                .CX2 .today .slotHeader {
                background: rgba(64,64,64,0.8);
                color: #000;
                }

                .CX2 .today .slotHeader .slotTitle {
                color: #FFF;
                }

                .CX2 .today .slotContent {
                background: #eeeeee69;
                #border: 1px solid white;
                }

                C 1 Reply Last reply Reply Quote 1
                • C Offline
                  Clubjack @mlcampbe
                  last edited by

                  @mlcampbe
                  Thanks a lot.
                  The last Code was the right. ๐Ÿ‘๐Ÿผ๐Ÿ‘๐Ÿผ๐Ÿ‘๐Ÿผ๐Ÿ‘๐Ÿผ

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TJSartain @Piranha1605
                    last edited by

                    @Piranha1605 Very nice. What does the config look like?

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      HansDampf
                      last edited by

                      is there any suggestion fpr CalendarExt3?
                      https://github.com/MMRIZE/MMM-CalendarExt3

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