3 // Calendar colour variables defined.
4 $calendarEventCategoryColor: #d8bfd8 !default; // Pale purple.
5 $calendarEventCourseColor: #ffd3bd !default; // Pale red.
6 $calendarEventGlobalColor: #d6f8cd !default; // Pale green.
7 $calendarEventGroupColor: #fee7ae !default; // Pale yellow.
8 $calendarEventUserColor: #dce7ec !default; // Pale blue.
9 $calendarEventOtherColor: #ced4da !default; // Pale gray.
11 // Calendar event background colours defined.
12 .calendar_event_category {
13 background-color: $calendarEventCategoryColor;
15 .calendar_event_course {
16 background-color: $calendarEventCourseColor;
19 .calendar_event_site {
20 background-color: $calendarEventGlobalColor;
23 .calendar_event_group {
24 background-color: $calendarEventGroupColor;
27 .calendar_event_user {
28 background-color: $calendarEventUserColor;
31 .calendar_event_other {
32 background-color: $calendarEventOtherColor;
35 // Calendar restyling.
61 border: 1px solid transparent;
71 border: 1px solid transparent;
75 box-sizing: border-box;
76 border: 1px dashed $brand-primary;
82 border-collapse: separate;
111 list-style-type: none;
114 @include text-truncate;
116 display: inline-block;
119 text-decoration: $link-decoration;
122 text-decoration: $link-hover-decoration;
129 margin-right: 0.25em;
130 vertical-align: initial;
138 vertical-align: middle;
140 &.calendar_event_category {
141 background-color: $calendarEventCategoryColor;
143 &.calendar_event_course {
144 background-color: $calendarEventCourseColor;
147 &.calendar_event_site {
148 background-color: $calendarEventGlobalColor;
151 &.calendar_event_group {
152 background-color: $calendarEventGroupColor;
155 &.calendar_event_user {
156 background-color: $calendarEventUserColor;
159 &.calendar_event_other {
160 background-color: $calendarEventOtherColor;
172 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
192 .calendar_event_category,
193 .calendar_event_course,
194 .calendar_event_site,
195 .calendar_event_group,
196 .calendar_event_user {
199 color: $link-hover-color;
200 text-decoration: $link-hover-decoration;
205 .calendar_event_category {
206 border-color: $calendarEventCategoryColor;
209 .calendar_event_course {
210 border-color: $calendarEventCourseColor;
213 .calendar_event_site {
214 border-color: $calendarEventGlobalColor;
217 .calendar_event_group {
218 border-color: $calendarEventGroupColor;
221 .calendar_event_user {
222 border-color: $calendarEventUserColor;
225 .calendar_event_other {
226 border-color: $calendarEventOtherColor;
232 padding: 0 4px 4px 4px;
250 vertical-align: baseline;
254 word-break: break-all;
255 overflow-wrap: break-word;
263 #page-calendar-export {
269 // Block minicalendar.
295 border-top: 1px solid $calendarEventGlobalColor;
296 border-bottom: 1px solid $calendarEventGlobalColor;
299 background-color: $calendarEventGlobalColor;
303 &.duration_category {
304 border-top: 1px solid $calendarEventCategoryColor;
305 border-bottom: 1px solid $calendarEventCategoryColor;
308 background-color: $calendarEventCategoryColor;
313 border-top: 1px solid $calendarEventCourseColor;
314 border-bottom: 1px solid $calendarEventCourseColor;
317 background-color: $calendarEventCourseColor;
322 border-top: 1px solid $calendarEventGroupColor;
323 border-bottom: 1px solid $calendarEventGroupColor;
326 background-color: $calendarEventGroupColor;
331 border-top: 1px solid $calendarEventUserColor;
332 border-bottom: 1px solid $calendarEventUserColor;
335 background-color: $calendarEventUserColor;
340 border-top: 1px solid $calendarEventOtherColor;
341 border-bottom: 1px solid $calendarEventOtherColor;
344 background-color: $calendarEventOtherColor;
351 font-weight: inherit;
352 line-height: inherit;
389 margin-bottom: 0.2em;
398 vertical-align: initial;
399 margin: 0 0.1rem 0 0.4rem;
404 text-decoration: $link-decoration;
407 text-decoration: $link-hover-decoration;
423 /* Display month name above the calendar */
424 table.calendartable caption {
428 @media (min-width: 768px) {
429 #page-calender-view {
440 .day-popover-content {
441 &:empty + .day-popover-alternate {
447 overflow-wrap: break-word;
450 .description-content {
451 overflow-wrap: break-word;