File size: 1,878 Bytes
1ad1eea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* S72-T61 / R114: the access limit is the first rows of a filter's condition list, in the normal
   rows' format, greyed and locked. Every control in a locked row is disabled; this file only
   greys them with tokens and puts the lock mark where a normal row has its remove control.
   Each box keeps the normal 1px border, radius, height and width: only the fill, the text and
   the cursor change. `opacity: 1` undoes `.cg-fsel:disabled`, which would fade the border away. */
.cg-scope-limit-line :is(.cg-select, .cg-input):disabled {
  background: var(--lp-surface-2);
  border: 1px solid var(--lp-line);
  color: var(--lp-muted);
  -webkit-text-fill-color: var(--lp-muted);
  opacity: 1;
  cursor: not-allowed;
}

/* A locked chip has no remover, so its right padding matches its left. */
.cg-cond-row.is-locked .cg-chip {
  padding-right: 8px;
  background: var(--lp-surface-2);
  border-color: var(--lp-line);
  color: var(--lp-muted);
  cursor: not-allowed;
}

/* The 24px column of `.cg-cond-x`, so a locked row ends where the user rows end. */
.cg-scope-limit-mark {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-muted);
}

/* A condition the reader may not see, or a limit without readable rows: one greyed cell over the
   field, operator and value area, the 30px height and radius of `.cg-input`. */
.cg-scope-limit {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-r-md);
  background: var(--lp-surface-2);
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
  cursor: not-allowed;
  user-select: none;
}

.cg-scope-limit-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}