Skip to content

Commit

Permalink
MDL-69945 core_calendar: let circles appear as circles
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Oct 16, 2020
1 parent 149fdcf commit 32be54d
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 48 deletions.
2 changes: 1 addition & 1 deletion calendar/templates/month_detailed.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{{/draggable}}>

<a data-action="view-event" data-event-id="{{id}}" href="{{url}}" title="{{name}}">
<span class="badge badge-circle calendar_event_{{normalisedeventtype}}">
<span class="calendar-circle calendar_event_{{normalisedeventtype}}">
&nbsp;
</span>
{{> core_calendar/event_icon}}
Expand Down
61 changes: 30 additions & 31 deletions theme/boost/scss/moodle/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,41 +159,40 @@ $calendarEventColor: #0d5ca1 !default;
vertical-align: initial;
}

.badge {
&.badge-circle {
width: 12px;
height: 12px;
border-radius: 6px;
vertical-align: middle;

&.calendar_event_category {
background-color: $calendarEventCategoryColor;
border: $calendarEventCategoryBorder;
}
&.calendar_event_course {
background-color: $calendarEventCourseColor;
border: $calendarEventCourseBorder;
}
.calendar-circle {
width: 12px;
height: 12px;
border-radius: 6px;
vertical-align: middle;
display: inline-block;

&.calendar_event_site {
background-color: $calendarEventGlobalColor;
border: $calendarEventGlobalBorder;
}
&.calendar_event_category {
background-color: $calendarEventCategoryColor;
border: $calendarEventCategoryBorder;
}
&.calendar_event_course {
background-color: $calendarEventCourseColor;
border: $calendarEventCourseBorder;
}

&.calendar_event_group {
background-color: $calendarEventGroupColor;
border: $calendarEventGroupBorder;
}
&.calendar_event_site {
background-color: $calendarEventGlobalColor;
border: $calendarEventGlobalBorder;
}

&.calendar_event_user {
background-color: $calendarEventUserColor;
border: $calendarEventUserBorder;
}
&.calendar_event_group {
background-color: $calendarEventGroupColor;
border: $calendarEventGroupBorder;
}

&.calendar_event_other {
background-color: $calendarEventOtherColor;
border: $calendarEventOtherBorder;
}
&.calendar_event_user {
background-color: $calendarEventUserColor;
border: $calendarEventUserBorder;
}

&.calendar_event_other {
background-color: $calendarEventOtherColor;
border: $calendarEventOtherBorder;
}
}
}
Expand Down
17 changes: 9 additions & 8 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -12840,27 +12840,28 @@ input[disabled] {
margin-left: 0.25em;
margin-right: 0.25em;
vertical-align: initial; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle {
width: 12px;
height: 12px;
border-radius: 6px;
vertical-align: middle; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_category {
vertical-align: middle;
display: inline-block; }
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_category {
background-color: #e0cbe0;
border: 2px solid #9e619f; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_course {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_course {
background-color: #ffd3bd;
border: 2px solid #d34600; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_site {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_site {
background-color: #d6f8cd;
border: 2px solid #2b8713; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_group {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_group {
background-color: #fee7ae;
border: 2px solid #9a6e02; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_user {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_user {
background-color: #dce7ec;
border: 2px solid #4e7c91; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_other {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_other {
background-color: #ced4da;
border: 2px solid #687889; }
.path-calendar .maincalendar .calendarmonth td {
Expand Down
17 changes: 9 additions & 8 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -13054,27 +13054,28 @@ input[disabled] {
margin-left: 0.25em;
margin-right: 0.25em;
vertical-align: initial; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle {
width: 12px;
height: 12px;
border-radius: 6px;
vertical-align: middle; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_category {
vertical-align: middle;
display: inline-block; }
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_category {
background-color: #e0cbe0;
border: 2px solid #9e619f; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_course {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_course {
background-color: #ffd3bd;
border: 2px solid #d34600; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_site {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_site {
background-color: #d6f8cd;
border: 2px solid #2b8713; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_group {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_group {
background-color: #fee7ae;
border: 2px solid #9a6e02; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_user {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_user {
background-color: #dce7ec;
border: 2px solid #4e7c91; }
.path-calendar .maincalendar .calendarmonth ul li .badge.badge-circle.calendar_event_other {
.path-calendar .maincalendar .calendarmonth ul li .calendar-circle.calendar_event_other {
background-color: #ced4da;
border: 2px solid #687889; }
.path-calendar .maincalendar .calendarmonth td {
Expand Down

0 comments on commit 32be54d

Please sign in to comment.