Skip to content

Commit 524f46b

Browse files
committed
MDL-84617 core_calendar: Deprecated SCSS classes
The following SCSS classes have been deprecated (they will be removed in Moodle 6.0): - calendar_event_category - calendar_event_course - calendar_event_site - calendar_event_group - calendar_event_user - calendar_event_other
1 parent bf2d8f5 commit 524f46b

File tree

5 files changed

+881
-358
lines changed

5 files changed

+881
-358
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
issueNumber: MDL-84617
2+
notes:
3+
core_calendar:
4+
- message: >-
5+
Deprecated SCSS classes: calendar_event_category, calendar_event_course,
6+
calendar_event_site, calendar_event_group, calendar_event_user,
7+
calendar_event_other.
8+
type: deprecated

theme/boost/scss/moodle/calendar.scss

-138
Original file line numberDiff line numberDiff line change
@@ -30,48 +30,6 @@ $calendarEventColor: #0d5ca1 !default;
3030
$calendarCurrentDateColor: $white;
3131
$calendarCurrentDateBackground: $primary;
3232

33-
// Calendar event background colours defined.
34-
.calendar_event_category {
35-
background-color: $calendarEventCategoryColor;
36-
.commands a {
37-
color: $calendarEventColor;
38-
}
39-
}
40-
.calendar_event_course {
41-
background-color: $calendarEventCourseColor;
42-
.commands a {
43-
color: $calendarEventColor;
44-
}
45-
}
46-
47-
.calendar_event_site {
48-
background-color: $calendarEventGlobalColor;
49-
.commands a {
50-
color: $calendarEventColor;
51-
}
52-
}
53-
54-
.calendar_event_group {
55-
background-color: $calendarEventGroupColor;
56-
.commands a {
57-
color: $calendarEventColor;
58-
}
59-
}
60-
61-
.calendar_event_user {
62-
background-color: $calendarEventUserColor;
63-
.commands a {
64-
color: $calendarEventColor;
65-
}
66-
}
67-
68-
.calendar_event_other {
69-
background-color: $calendarEventOtherColor;
70-
.commands a {
71-
color: $calendarEventColor;
72-
}
73-
}
74-
7533
@mixin footer-links {
7634
span.footer-link:after {
7735
content: "\2022";
@@ -214,35 +172,6 @@ $calendarCurrentDateBackground: $primary;
214172
border-radius: 6px;
215173
vertical-align: middle;
216174
display: inline-block;
217-
218-
&.calendar_event_category {
219-
background-color: $calendarEventCategoryColor;
220-
border: $calendarEventCategoryBorder;
221-
}
222-
&.calendar_event_course {
223-
background-color: $calendarEventCourseColor;
224-
border: $calendarEventCourseBorder;
225-
}
226-
227-
&.calendar_event_site {
228-
background-color: $calendarEventGlobalColor;
229-
border: $calendarEventGlobalBorder;
230-
}
231-
232-
&.calendar_event_group {
233-
background-color: $calendarEventGroupColor;
234-
border: $calendarEventGroupBorder;
235-
}
236-
237-
&.calendar_event_user {
238-
background-color: $calendarEventUserColor;
239-
border: $calendarEventUserBorder;
240-
}
241-
242-
&.calendar_event_other {
243-
background-color: $calendarEventOtherColor;
244-
border: $calendarEventOtherBorder;
245-
}
246175
}
247176
}
248177
}
@@ -293,43 +222,6 @@ $calendarCurrentDateBackground: $primary;
293222
margin: 10px auto;
294223
}
295224

296-
.calendar_event_category,
297-
.calendar_event_course,
298-
.calendar_event_site,
299-
.calendar_event_group,
300-
.calendar_event_user {
301-
a:has(> .icon) {
302-
&:hover {
303-
color: darken($calendarEventColor, 15%);
304-
text-decoration: $link-decoration;
305-
}
306-
}
307-
}
308-
309-
.calendar_event_category {
310-
border-color: $calendarEventCategoryColor;
311-
}
312-
313-
.calendar_event_course {
314-
border-color: $calendarEventCourseColor;
315-
}
316-
317-
.calendar_event_site {
318-
border-color: $calendarEventGlobalColor;
319-
}
320-
321-
.calendar_event_group {
322-
border-color: $calendarEventGroupColor;
323-
}
324-
325-
.calendar_event_user {
326-
border-color: $calendarEventUserColor;
327-
}
328-
329-
.calendar_event_other {
330-
border-color: $calendarEventOtherColor;
331-
}
332-
333225
.calendartable {
334226
td,
335227
li {
@@ -484,36 +376,6 @@ $calendarCurrentDateBackground: $primary;
484376
margin-bottom: 0.2em;
485377

486378
span {
487-
&.calendar_event_category {
488-
i {
489-
color: $calendarEventColor;
490-
}
491-
}
492-
&.calendar_event_course {
493-
i {
494-
color: $calendarEventColor;
495-
}
496-
}
497-
&.calendar_event_site {
498-
i {
499-
color: $calendarEventColor;
500-
}
501-
}
502-
&.calendar_event_group {
503-
i {
504-
color: $calendarEventColor;
505-
}
506-
}
507-
&.calendar_event_user {
508-
i {
509-
color: $calendarEventColor;
510-
}
511-
}
512-
&.calendar_event_other {
513-
i {
514-
color: $calendarEventColor;
515-
}
516-
}
517379
img {
518380
padding: 0 0.2em;
519381
margin: 0;

0 commit comments

Comments
 (0)