-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgetCalendarStyles.ts
57 lines (56 loc) · 1.32 KB
/
getCalendarStyles.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { css } from '@emotion/react';
import { CustomTheme } from '../theme/theme';
export const getCalendarStyles = (theme: CustomTheme) => css`
.fc-event {
border: 0px;
background-color: transparent;
margin: 0 !important;
}
.fc-day-today {
background-color: inherit !important;
}
.fc-weekend {
background-color: rgba(0, 0, 0, 0.05) !important;
}
.fc .fc-daygrid-day {
padding: 8px 5px !important;
}
.fc .fc-daygrid-day-top {
padding: 0 !important;
height: 30px;
}
.fc .fc-daygrid-day-number {
width: 100%;
padding: 0 !important;
}
.fc-daygrid-day-events {
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
.fc-daygrid-day-events:not(:empty) {
margin-bottom: 30px !important;
}
.fc-daygrid-event-harness {
margin-top: 4px !important;
}
.fc-daygrid-event-harness:first-of-type {
margin-top: 0 !important;
}
.fc .fc-scrollgrid thead .fc-col-header-cell {
border-left: none !important;
border-right: none !important;
}
.fc .fc-col-header-cell {
height: 32px;
}
.fc .fc-col-header-cell .fc-scrollgrid-sync-inner {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-weight: ${theme.fontWeights[600]};
text-transform: uppercase;
font-size: 14px;
}
`;