layerpool 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
layerpool/ui/style.css ADDED
@@ -0,0 +1,148 @@
1
+ :root {
2
+ --bg: #f4f2ed;
3
+ --panel: #fbfaf7;
4
+ --ink: #23211d;
5
+ --muted: #7a756b;
6
+ --line: #e2ddd2;
7
+ --grid: #ebe7de;
8
+ --accent: #3e5f52;
9
+ --accent-soft: #dfe8e2;
10
+ --wait: #b9a57c;
11
+ --send: #8a8fb5;
12
+ --warn: #a8642a;
13
+ --bad: #9b3b32;
14
+ --good: #4d7a5c;
15
+ font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
16
+ color-scheme: light;
17
+ }
18
+ @media (prefers-color-scheme: dark) {
19
+ :root {
20
+ --bg: #171614; --panel: #1f1e1b; --ink: #ebe7df; --muted: #9a948a; --line: #34312c; --grid: #2a2825;
21
+ --accent: #8fb5a3; --accent-soft: #263430; --wait: #b9a57c; --send: #8a8fb5; --warn: #d39a5f; --bad: #d9786d; --good: #8cbf9a;
22
+ color-scheme: dark;
23
+ }
24
+ }
25
+ * { box-sizing: border-box; }
26
+ body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
27
+ .muted { color: var(--muted); }
28
+ .small-text { font-size: 12px; }
29
+ code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
30
+
31
+ .top { display: flex; align-items: center; gap: 24px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 3; }
32
+ .brand { font-weight: 650; display: flex; align-items: center; gap: 10px; }
33
+ .mark { width: 18px; height: 18px; fill: var(--accent); flex: none; }
34
+ .summary { flex: 1; color: var(--muted); }
35
+
36
+ main { max-width: 1240px; margin: 0 auto; padding: 22px 28px 60px; display: grid; gap: 18px; }
37
+ .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
38
+ .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
39
+ .section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
40
+ .section-head h2 { font-size: 15px; margin: 0; }
41
+ .count { color: var(--muted); }
42
+
43
+ button { font: inherit; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 6px 12px; cursor: pointer; }
44
+ button:hover { border-color: var(--muted); }
45
+ button.primary { background: var(--accent); border-color: var(--accent); color: var(--panel); }
46
+ button.ghost { background: transparent; }
47
+ button.danger { color: var(--bad); }
48
+ button.small { padding: 3px 10px; font-size: 12px; }
49
+ button:disabled { opacity: .5; cursor: default; }
50
+
51
+ .run-head { display: flex; align-items: flex-start; gap: 16px; }
52
+ .run-title { flex: 1; }
53
+ .run-name { font-size: 18px; font-weight: 650; }
54
+ .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 18px; }
55
+ .tile { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
56
+ .tile .value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
57
+ .tile .sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
58
+ .tile .sub.down { color: var(--good); }
59
+ .tile .sub.up { color: var(--warn); }
60
+
61
+ .block-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
62
+ .hint { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); font-size: 10px; color: var(--muted); cursor: help; }
63
+ .pipe { display: flex; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
64
+ .pipe.empty { background: repeating-linear-gradient(45deg, transparent 0 8px, var(--grid) 8px 16px); }
65
+ .pipe .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; padding: 0 6px; border-right: 1px solid var(--panel); }
66
+ .pipe .seg:last-child { border-right: none; }
67
+
68
+ .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
69
+ @media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
70
+ .chart { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px 6px; position: relative; }
71
+ .chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
72
+ .chart-head .name { font-weight: 600; }
73
+ .chart-head .now { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
74
+ .chart svg { display: block; width: 100%; height: 220px; }
75
+ .chart .empty-note { height: 220px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
76
+ .chart .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
77
+ .chart .grid line { stroke: var(--grid); }
78
+ .chart .axis-line { stroke: var(--line); }
79
+ .chart .series { fill: none; stroke: var(--accent); stroke-width: 2; }
80
+ .chart .area { fill: var(--accent-soft); opacity: .7; }
81
+ .chart .dot { fill: var(--accent); }
82
+ .chart .cursor { stroke: var(--muted); stroke-dasharray: 3 3; }
83
+ .chart .focus { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
84
+
85
+ .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
86
+ #pending:empty { display: none; }
87
+ #pending { margin-bottom: 14px; }
88
+ .card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 12px; background: var(--bg); }
89
+ .card.waiting { border-color: var(--warn); }
90
+ .card-head { display: flex; align-items: center; gap: 8px; }
91
+ .card-head input { flex: 1; font: inherit; font-weight: 650; border: 1px solid transparent; background: transparent; color: var(--ink); padding: 2px 4px; border-radius: 5px; min-width: 0; }
92
+ .card-head input:hover, .card-head input:focus { border-color: var(--line); outline: none; }
93
+ .pill { font-size: 11px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; cursor: help; }
94
+ .pill.training { color: var(--good); border-color: var(--good); }
95
+ .pill.banned, .pill.offline { color: var(--bad); border-color: var(--bad); }
96
+ .pill.disabled { color: var(--warn); border-color: var(--warn); }
97
+ .hardware { font-size: 12px; color: var(--muted); margin-top: -6px; }
98
+ .why { font-size: 12px; color: var(--bad); line-height: 1.4; }
99
+ .kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; font-size: 13px; }
100
+ .kv > span:nth-child(odd) { color: var(--muted); }
101
+ .metric { display: grid; gap: 5px; cursor: help; }
102
+ .metric-head { display: flex; justify-content: space-between; font-size: 12px; }
103
+ .metric-head span:first-child { color: var(--muted); }
104
+ .metric-head span:last-child { font-variant-numeric: tabular-nums; }
105
+ .bar { position: relative; height: 10px; border-radius: 99px; background: var(--grid); overflow: hidden; display: flex; }
106
+ .bar .fill { background: var(--accent); border-radius: 99px; }
107
+ .bar .fill.high { background: var(--warn); }
108
+ .bar .fill.full { background: var(--bad); }
109
+ .bar .capmark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .65; }
110
+ .bar .c { background: var(--accent); }
111
+ .bar .w { background: var(--wait); }
112
+ .bar .s { background: var(--send); }
113
+ .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
114
+ .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
115
+ .settings { border-top: 1px solid var(--grid); padding-top: 10px; }
116
+ .settings summary { cursor: pointer; font-size: 13px; color: var(--ink); }
117
+ .settings[open] summary { margin-bottom: 10px; }
118
+ .settings-grid { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
119
+ .field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
120
+ .field input, .gpu-row input[type=number] { width: 72px; font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
121
+ .gpu-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 12px; padding: 4px 0; border-top: 1px dashed var(--grid); }
122
+ .gpu-row .check { margin: 0; }
123
+ .run-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
124
+ .run-actions .check { margin: 0; }
125
+ .preview { font-size: 12px; color: var(--warn); }
126
+ .row { display: flex; gap: 8px; align-items: center; }
127
+ .spacer { flex: 1; }
128
+
129
+ .events { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; font-size: 13px; }
130
+ .events li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--grid); }
131
+ .events time { color: var(--muted); font-variant-numeric: tabular-nums; }
132
+ .events li.bad span { color: var(--bad); }
133
+ .events li.warn span { color: var(--warn); }
134
+
135
+ .tip { position: fixed; z-index: 10; max-width: 320px; background: var(--ink); color: var(--panel); font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 7px; pointer-events: none; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); white-space: pre-line; }
136
+
137
+ dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); max-width: 640px; width: calc(100% - 32px); padding: 20px; }
138
+ dialog::backdrop { background: rgba(0, 0, 0, .35); }
139
+ dialog h3 { margin: 0 0 6px; }
140
+ dialog pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-all; font-size: 12px; }
141
+ .check { display: flex; gap: 6px; align-items: center; font-size: 13px; margin: 8px 0; }
142
+ .tabs { display: flex; gap: 6px; margin: 10px 0 6px; }
143
+ .tab.on { background: var(--accent-soft); border-color: var(--accent); }
144
+ @media (max-width: 600px) {
145
+ .top { padding: 10px 16px; gap: 12px; }
146
+ main { padding: 16px; }
147
+ .summary { display: none; }
148
+ }