Skip to main content
Sticky

Using Custom CSS to enhance the Calendar Widget

  • July 21, 2025
  • 9 replies
  • 320 views

pierre.andignac
Docebian
Forum|alt.badge.img

In July 2025, the Calendar Widget underwent significant changes (full article available here). Nevertheless, you can still enhance it with 🖍 Custom CSS.

Below, you'll find a code snippet that you can insert into your Custom Styles 💡:


/* *************** */
/* Calendar Widget */
/* *************** */

/* Hide Calendar Search Bar */
docebo-accessible-calendar-search-bar > .data-browser {
display: none !important;
}

/* Monthly Calendar Search Bar */
docebo-accessible-calendar-search-bar > .data-browser {
background-color: #22BA8E;
border: transparent ;
color: white ;
}

/* Monthly Calendar Top Banner */
docebo-accessible-calendar-navbar > .navContainer {
background-color: #22BA8E !important;
color: white;
}

/* Monthly Calendar Weekly Dates header - Boxes (M, T, W, etc) */
thead > .lmn-typography-label-3 {
background-color: white !important;
}

/* Monthly Calendar Weekly Dates header - Value (M, T, W, etc) */
thead > .lmn-typography-label-3 span[aria-hidden="true"] {
font-weight: 900 !important;
color: #565656 !important;
}

/* Monthly Calendar Dates boxes (1, 2, 3, etc) */
.focus-ring {
background-color: white !important;
color: #9b9b9b;
width: 1.5rem !important; /* you can reduce the size by changing 1.5rem by 1.2 or lower */
height: 1.5rem !important; /* you can reduce the size by changing 1.5rem by 1.2 or lower */
}

/* Weekly Calendar Weekly Dates Header (that includes all the weekly dates) */
.docebo-accessible-calendar-navbar-custom-content {
background-color: white !important;
}

/* Weekly Calendar Weekly Dates boxes (Mon X, Tue Y, Wed Z, etc) */
.week-button-xs {
color: #22BA8E !important;
}
 

Original Calendar Widget:

 

Enhanced one (note that you can change the color):

Please feel free to share if you found this helpful, and let me know if you're interested in any additional modifications that aren't included!

Pierre
 

Similar articles:

9 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 21, 2025

Super thank you!


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 21, 2025

Works great but the sizing of the widget is still not stable when moving from month to month; it grows or shrinks when the last days of the month bleed into another week...the compact look is better though.


pierre.andignac
Docebian
Forum|alt.badge.img

@lrnlab That's true! Although, if you set a fixed height for the widget, you'll end up with empty space below the calendar when a month only has 4 rows instead of 5. By separating the agenda into its own widget block, you can prevent the widgets below from being affected, since the entire row will adjust rather than just the widget directly beneath the calendar.

What would be the ideal setup for you?

Thanks!


lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • July 22, 2025

Thx ​@pierre.andignac I don't think I can say that one view is better than another since a user can change it as they wish and the page layout would be affected. The widget should be stable or at least accommodate for the months that have more days or where the weeks create a 5th row and not move around dynamically.


Jihane
Docebian
Forum|alt.badge.img+1
  • Docebian
  • July 25, 2025

awesome!


  • Novice II
  • September 5, 2025

Hello! We just noticed that the monthly view of the calendar widget now shows a scroll bar instead of displaying the full month. Does anyone know how to remove this, and be able to show the full month again? Thank you!

 


pierre.andignac
Docebian
Forum|alt.badge.img

Hello ​@CrysG , have you tried this code below to reduce the size of the boxes?

/* Monthly Calendar Dates boxes (1, 2, 3, etc) */
.focus-ring {
width: 1.5rem !important; /* you can reduce the size by changing 1.5rem by 1.2 or lower */
height: 1.5rem !important; /* you can reduce the size by changing 1.5rem by 1.2 or lower */
}

If you prefer to maintain the standard height of the date boxes and have the widget automatically resize itself, let me know and I’ll investigate!
 

Thank you.


  • Novice II
  • September 8, 2025

Hi ​@pierre.andignac! I did try that code, but the boxes are too small so we prefer to maintain the standard height of the date boxes, if possible. Thanks for your help!


  • Novice III
  • September 24, 2025

Great post! Thank you!