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

Config for a simple clean montly calendar

Scheduled Pinned Locked Moved Development
25 Posts 8 Posters 19.3k 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.
  • M Offline
    mlcampbe @Clubjack
    last edited by Dec 11, 2019, 4:42 PM

    @Clubjack
    In my case it was mostly trial and error. I am not a css guru by any stretch of the imagination. You might want to take a look at https://forum.magicmirror.builders/topic/6808/css-101-getting-started-with-css-and-understanding-how-css-works which has some tips.

    1 Reply Last reply Reply Quote 2
    • C Offline
      cyberphox @mlcampbe
      last edited by May 6, 2020, 12:22 AM

      @mlcampbe What is the size of your logo you are using? Can I see that part of your config as well maybe? Thanks!

      Full time Dad, DJ and entertainer and lover of technology.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mlcampbe
        last edited by May 6, 2020, 1:33 PM

        By logo do you mean the legend that is below the calendar event details on the right-hand side of the screen? If so then that is using the MMM-SimpleLogo module with the below config and an image that is 294x135 pixels.

        {
          module: "MMM-SimpleLogo",
          disabled: false,
          position: "top_right",
          config: {
            position: "right",
            text: "",
            width: "250px"
          }
        

        Note that the width: 250px is used so that it will be centered within the right-hand “column”.

        C 1 Reply Last reply May 6, 2020, 1:35 PM Reply Quote 1
        • C Offline
          cyberphox @mlcampbe
          last edited by May 6, 2020, 1:35 PM

          @mlcampbe that’s exactly the info i was looking for! thanks!

          Full time Dad, DJ and entertainer and lover of technology.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Clubjack
            last edited by May 6, 2020, 1:43 PM

            @Clubjack style sheets cascade. newer can replace/override prior classes and styles…

            so MM does this

            main.css (1st)
            modules adding their own style sheets (thru the getStyles() method response if used)
            custom.css (last)

            so, anything that happened BEFORE custom.css is loaded can be changed with entries in custom.css

            custom.css is empty by default

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • P Offline
              Plainbroke 0 @mlcampbe
              last edited by Jun 19, 2020, 2:11 AM

              @mlcampbe
              I know this is an old post, but I need some help setting up a full screen calendar.

              Can you send me your config.Js and custom.css or however you made that calendar you show above. I have been waiting for someone to come up with that exact calendar…
              Did you use the default calendar or something else…? I could combine my 3 different calendars into one… Saving realestate.

              Jeff Burdick aka Plainbroke

              M 1 Reply Last reply Jun 19, 2020, 1:20 PM Reply Quote 0
              • M Offline
                mlcampbe @Plainbroke 0
                last edited by Jun 19, 2020, 1:20 PM

                @Plainbroke-0

                Take a look at https://forum.magicmirror.builders/topic/11001/config-for-a-simple-clean-montly-calendar/8 as it has the css and necessary config needed.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Piranha1605
                  last edited by Jun 19, 2020, 7:43 PM

                  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 Dec 16, 2023, 8:07 PM Reply Quote 0
                  • P Offline
                    Piranha1605
                    last edited by Jun 19, 2020, 7:45 PM

                    @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 Oct 11, 2020, 5:07 PM

                      @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 Oct 12, 2020, 1:24 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 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