From 31943bc6ace3ba5aba66460671656ef4e7ab3abe Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Wed, 15 Sep 2021 06:19:05 +0000 Subject: [PATCH] [FIX] web: fix the unavailabilities day in calendar view Currently, if there is unavailabilities day then white background and border appear in calendar month mode. It does not show the same background. Now the same background(grey) will appear. closes odoo/odoo#78240 task-2648148 closes odoo/odoo#78444 X-original-commit: 64f2acc79d39331f79f3ac68d451f638cbd93393 Related: odoo/enterprise#21720 Signed-off-by: LTU-Odoo --- addons/web/static/src/legacy/scss/web_calendar.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/legacy/scss/web_calendar.scss b/addons/web/static/src/legacy/scss/web_calendar.scss index 1f46eb48927..f50c3bae90f 100644 --- a/addons/web/static/src/legacy/scss/web_calendar.scss +++ b/addons/web/static/src/legacy/scss/web_calendar.scss @@ -126,7 +126,6 @@ $o-cw-filter-avatar-size: 20px; .o_calendar_disabled { background-color: $gray-200; - border-color: white !important; } // ====== Specific agenda types ====== @@ -195,10 +194,10 @@ $o-cw-filter-avatar-size: 20px; box-shadow: inset 0 1px 0 gray('400'); } - .fc-day.fc-widget-content.fc-today { + .fc-day.fc-widget-content.fc-today:not(.o_calendar_disabled) { border-left-color: rgba($o-brand-odoo, 0.3); border-right-color: rgba($o-brand-odoo, 0.3); - background: rgba($o-brand-odoo, .05); + background: $o-view-background-color; } .fc-event { @@ -305,9 +304,11 @@ $o-cw-filter-avatar-size: 20px; } .fc-bg .fc-today { - background: $o-view-background-color; border-color: gray('300'); } + .fc-bg .fc-today:not(.o_calendar_disabled) { + background: $o-view-background-color; + } .fc-content-skeleton .fc-today .fc-day-number { margin-top: 3px;