File size: 1,057 Bytes
a7060a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.container {
  --icon-primary-color: var(--grape_600);
  --icon-secondary-color: var(--color-primary-surface-content);

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;

  .commentItem {
    transition: opacity 300ms;
    transform: translateY(-100%);
    filter: drop-shadow(0 2px 8px #12110d52) drop-shadow(0 8px 16px #12110d1f);
    pointer-events: all;
    cursor: pointer;
  }

  .commentIcon {
    /* to fit into usual screen edges with paddings */
    scale: 0.8;
    translate: -2px 4px;
  }

  .commentIconBackground {
    transition: fill 300ms;
    fill: var(--icon-secondary-color);
  }

  .commentIconLines {
    transition: fill 300ms;
    fill: var(--icon-primary-color);
  }

  &._highlighting {
    & .commentItem {
      opacity: 0.2;

      &._highlighted {
        opacity: 1;

        & .commentIconBackground {
          fill: var(--icon-primary-color);
        }

        & .commentIconLines {
          fill: var(--icon-secondary-color);
        }
      }
    }
  }
}