|
| 1 | +@import '../../variables'; |
| 2 | + |
| 3 | +$cal-month-view-vars: () !default; |
| 4 | +$cal-month-view-vars: map-merge($cal-vars, $cal-month-view-vars); |
| 5 | + |
| 6 | +@mixin cal-month-view-theme($overrides) { |
| 7 | + $theme: map-merge($cal-month-view-vars, $overrides); |
| 8 | + |
| 9 | + .cal-month-view { |
| 10 | + background-color: map-get($theme, bg-primary); |
| 11 | + |
| 12 | + .cal-cell-row:hover { |
| 13 | + background-color: map-get($theme, bg-secondary); |
| 14 | + } |
| 15 | + |
| 16 | + .cal-cell-row .cal-cell:hover, |
| 17 | + .cal-cell.cal-has-events.cal-open { |
| 18 | + background-color: map-get($theme, bg-active); |
| 19 | + } |
| 20 | + |
| 21 | + .cal-days { |
| 22 | + border-color: map-get($theme, border-color); |
| 23 | + } |
| 24 | + |
| 25 | + .cal-day-cell:not(:last-child) { |
| 26 | + border-right-color: map-get($theme, border-color); |
| 27 | + } |
| 28 | + |
| 29 | + .cal-days .cal-cell-row { |
| 30 | + border-bottom-color: map-get($theme, border-color); |
| 31 | + } |
| 32 | + |
| 33 | + .cal-day-badge { |
| 34 | + background-color: map-get($theme, badge-color); |
| 35 | + color: map-get($theme, white); |
| 36 | + } |
| 37 | + |
| 38 | + .cal-event { |
| 39 | + background-color: map-get($theme, event-color-primary); |
| 40 | + border-color: map-get($theme, event-color-secondary); |
| 41 | + color: map-get($theme, white); |
| 42 | + } |
| 43 | + |
| 44 | + .cal-day-cell.cal-weekend .cal-day-number { |
| 45 | + color: map-get($theme, weekend-color); |
| 46 | + } |
| 47 | + |
| 48 | + .cal-day-cell.cal-today { |
| 49 | + background-color: map-get($theme, today-bg); |
| 50 | + } |
| 51 | + |
| 52 | + .cal-day-cell.cal-drag-over { |
| 53 | + background-color: darken(map-get($theme, bg-active), 5%) !important; |
| 54 | + } |
| 55 | + |
| 56 | + .cal-open-day-events { |
| 57 | + color: map-get($theme, white); |
| 58 | + background-color: map-get($theme, gray); |
| 59 | + box-shadow: inset 0 0 15px 0 rgba(map-get($theme, black), 0.5); |
| 60 | + } |
| 61 | + } |
| 62 | +} |
| 63 | + |
1 | 64 | .cal-month-view {
|
2 | 65 | .cal-header {
|
3 | 66 | text-align: center;
|
4 | 67 | font-weight: bolder;
|
5 | 68 | }
|
6 | 69 |
|
7 |
| - .cal-cell-row:hover { |
8 |
| - background-color: #fafafa; |
9 |
| - } |
10 |
| - |
11 | 70 | .cal-header .cal-cell {
|
12 | 71 | padding: 5px 0;
|
13 | 72 | overflow: hidden;
|
|
16 | 75 | white-space: nowrap;
|
17 | 76 | }
|
18 | 77 |
|
19 |
| - .cal-cell-row .cal-cell:hover, |
20 |
| - .cal-cell.cal-has-events.cal-open { |
21 |
| - background-color: #ededed; |
22 |
| - } |
23 |
| - |
24 | 78 | .cal-days {
|
25 |
| - border: 1px solid #e1e1e1; |
| 79 | + border: 1px solid; |
26 | 80 | border-bottom: 0;
|
27 | 81 | }
|
28 | 82 |
|
|
53 | 107 | }
|
54 | 108 |
|
55 | 109 | .cal-day-cell:not(:last-child) {
|
56 |
| - border-right: 1px solid #e1e1e1; |
| 110 | + border-right: 1px solid; |
57 | 111 | }
|
58 | 112 |
|
59 | 113 | .cal-days .cal-cell-row {
|
60 |
| - border-bottom: 1px solid #e1e1e1; |
| 114 | + border-bottom: 1px solid; |
61 | 115 | }
|
62 | 116 |
|
63 | 117 | .cal-day-badge {
|
64 | 118 | margin-top: 18px;
|
65 | 119 | margin-left: 10px;
|
66 |
| - background-color: #b94a48; |
67 | 120 | display: inline-block;
|
68 | 121 | min-width: 10px;
|
69 | 122 | padding: 3px 7px;
|
70 | 123 | font-size: 12px;
|
71 | 124 | font-weight: 700;
|
72 | 125 | line-height: 1;
|
73 |
| - color: white; |
74 | 126 | text-align: center;
|
75 | 127 | white-space: nowrap;
|
76 | 128 | vertical-align: middle;
|
|
102 | 154 | border-radius: 50%;
|
103 | 155 | display: inline-block;
|
104 | 156 | margin: 2px;
|
105 |
| - background-color: #1e90ff; |
106 |
| - border-color: #d1e8ff; |
107 |
| - color: #fff; |
108 | 157 | }
|
109 | 158 |
|
110 | 159 | .cal-day-cell.cal-in-month.cal-has-events {
|
|
116 | 165 | cursor: default;
|
117 | 166 | }
|
118 | 167 |
|
119 |
| - .cal-day-cell.cal-weekend .cal-day-number { |
120 |
| - color: darkred; |
121 |
| - } |
122 |
| - |
123 |
| - .cal-day-cell.cal-today { |
124 |
| - background-color: #e8fde7; |
125 |
| - } |
126 |
| - |
127 | 168 | .cal-day-cell.cal-today .cal-day-number {
|
128 | 169 | font-size: 1.9em;
|
129 | 170 | }
|
130 | 171 |
|
131 |
| - .cal-day-cell.cal-drag-over { |
132 |
| - background-color: darken(#ededed, 5%) !important; |
133 |
| - } |
134 |
| - |
135 | 172 | .cal-open-day-events {
|
136 | 173 | padding: 15px;
|
137 |
| - color: white; |
138 |
| - background-color: #555; |
139 |
| - box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.5); |
140 | 174 | }
|
141 | 175 |
|
142 | 176 | .cal-open-day-events .cal-event {
|
|
167 | 201 | }
|
168 | 202 | }
|
169 | 203 | }
|
| 204 | + |
| 205 | +@include cal-month-view-theme($cal-month-view-vars); |
0 commit comments