summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/src/components/SecondaryPanes/Threads.css
blob: 603aa3ad8a51e184d7a1ee0cf4bce28f9f592160 (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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

.threads-list {
  padding: 4px 0;
}

.threads-list * {
  user-select: none;
}

.threads-list > .thread {
  font-size: inherit;
  color: var(--theme-text-color-strong);
  padding: 2px 6px;
  padding-inline-start: 20px;
  line-height: 16px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;

  &:hover {
    background-color: var(--search-overlays-semitransparent);
  }

  &.selected {
    background: var(--theme-selection-background);
    color: var(--theme-selection-color);

    & .img {
      background-color: currentColor;
    }
  }

  &.paused:not(.selected) {
    background-color: var(--paused-background-color);
    color: var(--paused-color);
  }
}

.threads-list .icon {
  flex: none;
}

.threads-list .img {
  display: block;
}

.threads-list .label {
  display: inline-block;
  flex-grow: 1;
  flex-shrink: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.threads-list .pause-badge {
  flex: none;
  font-weight: bold;
}