File size: 2,802 Bytes
367a695
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* W59-T15, DESIGN.md §§2,3,4,5: one error line and a quiet retry using existing tokens. */
.conn-modal-error {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  color: var(--lp-red-deep);
  font-size: var(--lp-fs-2xs);
  line-height: var(--lp-lh);
}
.conn-modal-error p { margin: 0; }
.conn-modal-retry {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--lp-ink);
  border-radius: var(--lp-r-sm);
  padding: 4px 8px;
  text-decoration: underline;
  cursor: pointer;
}
.conn-modal-retry:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .conn-modal-retry:hover { background: var(--lp-wash); }
}

/* W59-T16, R12 and DESIGN.md sections 2 to 5: the pen follows the name on its baseline. */
.conn-db-name-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.conn-db-pen {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--lp-muted);
  height: 20px;
  padding: 0 4px;
  margin: 0;
  border-radius: var(--lp-r-sm);
  cursor: pointer;
}
.conn-db-pen:focus-visible { outline: 2px solid var(--lp-blue-deep); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .conn-db-pen:hover { background: var(--lp-wash); color: var(--lp-ink); }
}

/* W59-T17, DESIGN.md section 4: keep the quiet action on the Count rows baseline. */
.conn-db-head:has(> .conn-db-count-action + .conn-db-link) { align-items: baseline; }
.conn-db-count-action + .conn-db-link {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0;
  line-height: 1.5;
}

/* W59-T23, DESIGN.md sections 2 to 5: attention until expiry, negative once expired. */
.conn-kc-rotation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 4px;
  padding: 8px;
  border-radius: var(--lp-r-sm);
  background: var(--lp-yellow-tint);
  color: var(--lp-yellow-deep);
  font-size: var(--lp-fs-2xs);
  line-height: var(--lp-lh);
  font-variant-numeric: tabular-nums;
}
.conn-kc-rotation.is-urgent { font-weight: 600; }
.conn-kc-rotation.is-expired,
.conn-modal-pill.is-expired {
  background: var(--lp-red-tint);
  color: var(--lp-red-deep);
}
.conn-kc-rotation-action {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  border-radius: var(--lp-r-sm);
  padding: 0 4px;
  white-space: nowrap;
  text-decoration: underline;
  cursor: pointer;
}
.conn-kc-rotation-action:focus-visible {
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: 2px;
}
.conn-kc-rotation-action:disabled { opacity: 0.5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .conn-kc-rotation-action:hover:enabled { background: var(--lp-wash); }
}