diff --git a/theme/boost/scss/moodle/calendar.scss b/theme/boost/scss/moodle/calendar.scss index 205211dae2f..612cfd3c297 100644 --- a/theme/boost/scss/moodle/calendar.scss +++ b/theme/boost/scss/moodle/calendar.scss @@ -298,10 +298,10 @@ $calendarCurrentDateBackground: $primary; .calendar_event_site, .calendar_event_group, .calendar_event_user { - &:hover { - a { - color: $link-hover-color; - text-decoration: $link-hover-decoration; + a:has(> .icon) { + &:hover { + color: darken($calendarEventColor, 15%); + text-decoration: $link-decoration; } } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index ae6f748b20b..06aaf954060 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -27564,13 +27564,13 @@ aside[id^=block-region-side-] .block_recentlyaccesseditems .card:nth-of-type(n+4 width: 98%; margin: 10px auto; } -.maincalendar .calendar_event_category:hover a, -.maincalendar .calendar_event_course:hover a, -.maincalendar .calendar_event_site:hover a, -.maincalendar .calendar_event_group:hover a, -.maincalendar .calendar_event_user:hover a { - color: #094478; - text-decoration: underline; +.maincalendar .calendar_event_category a:has(> .icon):hover, +.maincalendar .calendar_event_course a:has(> .icon):hover, +.maincalendar .calendar_event_site a:has(> .icon):hover, +.maincalendar .calendar_event_group a:has(> .icon):hover, +.maincalendar .calendar_event_user a:has(> .icon):hover { + color: #07345a; + text-decoration: none; } .maincalendar .calendar_event_category { border-color: #e0cbe0; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index f02544c7eee..7e719b7d9e9 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -27564,13 +27564,13 @@ aside[id^=block-region-side-] .block_recentlyaccesseditems .card:nth-of-type(n+4 width: 98%; margin: 10px auto; } -.maincalendar .calendar_event_category:hover a, -.maincalendar .calendar_event_course:hover a, -.maincalendar .calendar_event_site:hover a, -.maincalendar .calendar_event_group:hover a, -.maincalendar .calendar_event_user:hover a { - color: #094478; - text-decoration: underline; +.maincalendar .calendar_event_category a:has(> .icon):hover, +.maincalendar .calendar_event_course a:has(> .icon):hover, +.maincalendar .calendar_event_site a:has(> .icon):hover, +.maincalendar .calendar_event_group a:has(> .icon):hover, +.maincalendar .calendar_event_user a:has(> .icon):hover { + color: #07345a; + text-decoration: none; } .maincalendar .calendar_event_category { border-color: #e0cbe0;