|
35 | 35 | /// @param {Color} $weekend-text-color [null] - The text color for weekend days. |
36 | 36 | /// |
37 | 37 | /// @param {Color} $year-current-text-color [null] - The text color for the current/selected year. |
38 | | -/// @param {Color} $month-current-text-color [null]- The text color for the current/selected month. |
39 | 38 | /// |
40 | | -/// @param {Color} $year-hover-text-color [null] - The year hover text color. |
| 39 | +/// @param {Color} $month-current-text-color [null]- The text color for the current/selected month. |
| 40 | +/// @param {Color} $month-hover-current-text-color [null]- The text color for the current/selected month on hover. |
41 | 41 | /// @param {Color} $month-hover-text-color [null] - The month hover text color. |
42 | 42 | /// @param {Color} $month-hover-background [null] - The month hover background color. |
| 43 | +/// @param {border-radius} $month-border-radius [null] - The border radius used for the outline outline of the month. |
| 44 | +/// |
| 45 | +/// @param {Color} $year-hover-text-color [null] - The year hover text color. |
43 | 46 | /// |
44 | 47 | /// @param {Color} $date-selected-background [null] - The background color for the selected date. |
45 | 48 | /// @param {Color} $date-selected-text-color [null] - The text color for the selected date. |
|
56 | 59 | /// |
57 | 60 | /// @param {border-radius} $border-radius [null] - The border radius used for the outline of the calendar. |
58 | 61 | /// @param {border-radius} $date-border-radius [null] - The border radius used for the outline outline of the date. |
59 | | -/// @param {border-radius} $month-border-radius [null] - The border radius used for the outline outline of the month. |
60 | 62 | /// |
61 | 63 | /// @requires $default-palette |
62 | 64 | /// @requires $light-schema |
|
100 | 102 |
|
101 | 103 | $year-hover-text-color: null, |
102 | 104 | $month-hover-text-color: null, |
| 105 | + $month-hover-current-text-color: null, |
103 | 106 | $month-hover-background: null, |
104 | 107 |
|
105 | 108 | $date-selected-background: null, |
|
239 | 242 | $date-special-text-color: text-contrast($date-special-background); |
240 | 243 | } |
241 | 244 |
|
242 | | - @if $not-bootstrap-theme { |
243 | | - @if not($month-hover-text-color) and $content-background{ |
244 | | - @if type-of($content-background) == 'color' { |
245 | | - $month-hover-text-color: text-contrast($content-background); |
246 | | - } |
| 245 | + @if not($month-hover-text-color) and $month-hover-background { |
| 246 | + @if type-of($month-hover-background) == 'color' { |
| 247 | + $month-hover-text-color: text-contrast($month-hover-background); |
247 | 248 | } |
248 | 249 | } |
249 | 250 |
|
250 | | - @if not($month-hover-text-color) and $month-hover-background { |
251 | | - @if type-of($month-hover-text-color) == 'color' { |
252 | | - $month-hover-text-color: text-contrast($month-hover-background); |
| 251 | + @if not($month-hover-current-text-color) and $month-hover-background { |
| 252 | + @if type-of($month-hover-background) == 'color' { |
| 253 | + $month-hover-current-text-color: text-contrast($month-hover-background); |
253 | 254 | } |
254 | 255 | } |
255 | 256 |
|
|
289 | 290 |
|
290 | 291 | year-hover-text-color: $year-hover-text-color, |
291 | 292 | month-hover-text-color: $month-hover-text-color, |
| 293 | + month-hover-current-text-color: $month-hover-current-text-color, |
292 | 294 | month-hover-background: $month-hover-background, |
293 | 295 |
|
294 | 296 | date-selected-background: $date-selected-background, |
|
746 | 748 | color: --var($theme, 'month-current-text-color'); |
747 | 749 | } |
748 | 750 |
|
| 751 | + %cal-value--month-current-hover { |
| 752 | + color: --var($theme, 'month-hover-current-text-color'); |
| 753 | + } |
| 754 | + |
749 | 755 | %cal-value--inactive { |
750 | 756 | cursor: pointer; |
751 | 757 | color: --var($theme, 'inactive-text-color'); |
|
0 commit comments