File size: 2,191 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
.annotations-carousel {
  --carousel-left: 0;

  position: relative;
  height: 100%;
  align-items: center;
  min-width: 0;
  flex: 1;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
      to right,
      rgba(var(--color-neutral-shadow-raw) / 16%),
      rgba(var(--color-neutral-shadow-raw) / 0%)
    );
    z-index: 1;
    transition: opacity 300ms ease-out;
  }

  &_scrolled {
    &::before {
      opacity: 1;
    }
  }

  &_virtualized {
    .annotations-carousel__container {
      overflow: visible;
    }
  }

  &__container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
    height: 100%;
  }

  &__carosel {
    flex: 1;
    display: flex;
    gap: var(--spacing-tighter);
    white-space: nowrap;
    padding-left: var(--spacing-tighter);
    padding-right: 77px;
    position: relative;
    transform: translateX(calc(-1 * var(--carousel-left)));
    transition: all 200ms ease-out 0s;
  }

  &__carousel-controls {
    position: absolute;
    right: 0;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: var(--spacing-tighter);
    padding-right: var(--spacing-tighter);

    & button:not(:disabled) {
      box-shadow: 0 2px 6px rgba(var(--color-neutral-shadow-raw) / 20%);
    }
  }

  &__nav {
    padding: 0;
    height: 28px;
    width: 28px;
    box-shadow: 0 2px 5px 0 rgb(var(--color-neutral-shadow-raw) / 20%);

    &:hover {
      background: var(--color-primary-emphasis-subtle);
      box-shadow: 0 2px 5px 0 rgb(var(--color-neutral-shadow-raw) / 20%);
    }

    &_disabled {
      background: var(--color-background-surface);

      & svg {
        opacity: 0.4;
      }

      &:hover {
        background: var(--color-neutral-surface);
        filter: none;
      }
    }

    .button {
      &:hover {
        filter: none;
      }

      &__arrow {
        &_left {
          transform: rotate(-90deg);
        }

        &_right {
          transform: rotate(90deg);
        }
      }
    }
  }
}