summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/rolling-results.css
blob: 200b2a97e939a84dc9b5802cdc76171af164deab (plain)
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
[data-component="rolling-results"] {
  --rolling-results-row-height: 22px;
  --rolling-results-fixed-height: var(--rolling-results-row-height);
  --rolling-results-fixed-gap: 0px;
  --rolling-results-row-gap: 0px;

  display: block;
  width: 100%;
  min-width: 0;

  [data-slot="rolling-results-viewport"] {
    position: relative;
    min-width: 0;
    height: 0;
    overflow: clip;
  }

  &[data-overflowing="true"]:not([data-scrollable="true"]) [data-slot="rolling-results-window"] {
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black var(--rolling-results-fade),
      black calc(100% - calc(var(--rolling-results-fade) * 0.5)),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black var(--rolling-results-fade),
      black calc(100% - calc(var(--rolling-results-fade) * 0.5)),
      transparent 100%
    );
  }

  [data-slot="rolling-results-fixed"] {
    min-width: 0;
    height: var(--rolling-results-fixed-height);
    min-height: var(--rolling-results-fixed-height);
    display: flex;
    align-items: center;
  }

  [data-slot="rolling-results-window"] {
    min-width: 0;
    margin-top: var(--rolling-results-fixed-gap);
    height: calc(100% - var(--rolling-results-fixed-height) - var(--rolling-results-fixed-gap));
    overflow: clip;
  }

  &[data-scrollable="true"] [data-slot="rolling-results-window"] {
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }

  &[data-scrollable="true"] [data-slot="rolling-results-track"] {
    transform: none !important;
    will-change: auto;
  }

  [data-slot="rolling-results-body"] {
    min-width: 0;
  }

  [data-slot="rolling-results-track"] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--rolling-results-row-gap);
    will-change: transform;
  }

  [data-slot="rolling-results-row"],
  [data-slot="rolling-results-empty"] {
    min-width: 0;
    height: var(--rolling-results-row-height);
    min-height: var(--rolling-results-row-height);
    display: flex;
    align-items: center;
  }

  [data-slot="rolling-results-row"] {
    color: var(--text-base);
  }

  [data-slot="rolling-results-empty"] {
    color: var(--text-weaker);
  }
}