Debian Codegraph @

addons/web/static/src/views/calendar/calendar_year/calendar_year_popover.scss

raw
1 .o_cw_popover_link {
2 margin-top: 2px;
3
4 &[class*="o_calendar_color_"] {
5 --o-bg-opacity: 1;
6
7 border-radius: $border-radius;
8 border-color: var(--o-cw-popover-color, #{$info});
9 padding: 0 map-get($spacers, 1);
10 background: RGBA(var(--o-cw-popover-color--subtle, #{to-rgb($info)}), var(--o-bg-opacity));
11 font-weight: $font-weight-normal;
12
13 &:hover {
14 --o-bg-opacity: .5 !important;
15 }
16
17 &.o_event_dot {
18 --o-bg-opacity: 0;
19
20 &:before {
21 margin-right: map-get($spacers, 1);
22 font-family: FontAwesome;
23 font-size: $o-font-size-base-smaller;
24 color: var(--o-cw-popover-color, #{$info});
25 content: '\f111';
26 }
27
28 }
29 }
30
31 @for $i from 1 through length($o-colors-complete) {
32 $color: nth($o-colors-complete, $i);
33 $color-subtle: mix($o-white, $color, 55%);
34
35 &.o_calendar_color_#{$i - 1} {
36 --o-cw-popover-color: #{$color};
37 --o-cw-popover-color--subtle: #{$color-subtle};
38
39 color: color-contrast($color-subtle);
40 }
41 }
42 }