File size: 5,908 Bytes
25b02dd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Shared surface utilities (pw-*): the dashboard look, built only on tokens.css. Loaded after the app sheets. */

/* .pw-card: a white panel with a hairline border. The basic container for any block. */
.pw-card { background: var(--bg-elev); border: 1px solid var(--sep); border-radius: var(--r-lg); }

/* .pw-frame: a light grey frame (4px) around a .pw-card, for stat cards and featured panels. */
.pw-frame { background: var(--bg-elev-2); border: 1px solid var(--sep); border-radius: var(--r-lg); padding: 4px; }
.pw-frame > .pw-card { border-radius: calc(var(--r-lg) - 4px); }

/* .pw-hatch / .pw-hatch-diag: a 12px decorative strip of fine lines that frames a panel (top or bottom). aria-hidden. */
.pw-hatch { height: 12px; background-image: var(--hatch); opacity: 0.9; }
.pw-hatch-diag { height: 12px; background-image: var(--hatch-diag); }

/* .pw-status: a status word with a dot. data-tone = green | orange | red | blue | neutral. Text stays AA on its tint. */
.pw-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); line-height: var(--lh-xs); font-weight: var(--fw-medium); white-space: nowrap; background: var(--fill); color: var(--label-2); }
.pw-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--status-idle); flex: none; }
.pw-status[data-tone='green'] { background: var(--green-soft); color: var(--green); }
.pw-status[data-tone='green']::before { background: var(--green-dot); }
.pw-status[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.pw-status[data-tone='orange']::before { background: var(--orange-dot); }
.pw-status[data-tone='red'] { background: var(--red-soft); color: var(--red); }
.pw-status[data-tone='red']::before { background: var(--red-dot); }
.pw-status[data-tone='blue'] { background: var(--fill-2); color: var(--label); }
.pw-status[data-tone='blue']::before { background: var(--label); }
/* .pw-status[data-variant='outline']: the tag style (white with a border), e.g. "Available" / "Working" */
.pw-status[data-variant='outline'] { background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--sep-strong); border-radius: var(--r-sm); }

/* .pw-icon-sq: a 20px coloured rounded square that marks a row (initials or a 12px icon). data-tone as .pw-status plus

   violet | teal | neutral. Decorative: give it aria-hidden. */
.pw-icon-sq { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: var(--r-sm);
  font-size: 10px; font-weight: var(--fw-semibold); background: var(--fill-2); color: var(--label); }
.pw-icon-sq[data-tone='green'] { background: var(--green-soft); color: var(--green); }
.pw-icon-sq[data-tone='orange'] { background: var(--orange-soft); color: var(--orange); }
.pw-icon-sq[data-tone='red'] { background: var(--red-soft); color: var(--red); }
.pw-icon-sq[data-tone='blue'] { background: var(--blue-soft); color: var(--blue); }
.pw-icon-sq[data-tone='violet'] { background: var(--violet-soft); color: var(--violet); }
.pw-icon-sq[data-tone='teal'] { background: var(--teal-soft); color: var(--teal); }

/* .pw-stat: a stat card. Markup: .pw-stat > .pw-stat-body (> .pw-stat-k label row with an icon, .pw-stat-v number)

   + .pw-stat-foot (a strip with the delta or a note; .pw-delta[data-dir=up|down]). */
.pw-stat { display: flex; flex-direction: column; background: var(--bg-elev-2); border: 1px solid var(--sep); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.pw-stat-body { background: var(--bg-elev); border-bottom: 1px solid var(--sep); border-radius: 0 0 var(--r-md) var(--r-md); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.pw-stat-k { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-2); }
.pw-stat-k svg { color: var(--label); }
.pw-stat-v { margin-top: var(--sp-2); font-size: var(--fs-2xl); line-height: var(--lh-2xl); font-weight: var(--fw-semibold); letter-spacing: var(--ls-title); color: var(--label); font-variant-numeric: tabular-nums; }
.pw-stat-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-2); }
.pw-delta[data-dir='up'] { color: var(--green); }
.pw-delta[data-dir='down'] { color: var(--red); }

/* .pw-table: a dense data table (use on <table>, or on the Mantine Table root). Header on a grey band, hairline rows. */
.pw-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--label); }
.pw-table th { background: var(--bg-elev-2); color: var(--label-2); font-weight: var(--fw-medium); font-size: var(--fs-xs); text-align: left;
  padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--sep); white-space: nowrap; }
.pw-table th:first-child { border-top-left-radius: var(--r-md); }
.pw-table th:last-child { border-top-right-radius: var(--r-md); }
.pw-table td { padding: var(--sp-3); border-bottom: 1px solid var(--sep); vertical-align: middle; }
.pw-table tbody tr:last-child td { border-bottom: 0; }
.pw-table tbody tr:hover td { background: var(--fill); }
.pw-table .pw-num { font-variant-numeric: tabular-nums; }
.pw-table a { color: var(--label); }

/* .pw-crumb: a breadcrumb in the top bar ("⌂ / Test runs"): small, quiet, the last part in the label colour. */
.pw-crumb { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--label-2); }
.pw-crumb a { color: var(--label-2); text-decoration: none; }
.pw-crumb a:hover { color: var(--label); }
.pw-crumb [aria-current='page'] { color: var(--label); font-weight: var(--fw-medium); }