portal.css
CSS · 246 рядків
1:root {
2 --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --border: #dde1e7; --text: #1b2230; --muted: #5f6b7c;
3 --accent: #2563eb; --accent-soft: #e8efff; --link: #1d4ed8; --code-bg: #f3f4f7;
4 --ok: #15803d; --ok-bg: #e7f6ec; --acc: #1d4ed8; --acc-bg: #e8efff; --draft: #a16207; --draft-bg: #fdf4dc;
5 --closed: #64748b; --closed-bg: #eef1f5; --planned: #7c3aed; --planned-bg: #f1eafe; --down: #b42318;
6 color-scheme: light;
7}
8@media (prefers-color-scheme: dark) {
9 :root:not([data-theme="light"]) {
10 --bg: #0e1117; --surface: #161b23; --surface-2: #1c222c; --border: #2b3340; --text: #e3e8ef; --muted: #9aa5b4;
11 --accent: #5b8def; --accent-soft: #1b2740; --link: #8db1ff; --code-bg: #1c222c;
12 --ok: #4ade80; --ok-bg: #12301f; --acc: #8db1ff; --acc-bg: #1b2740; --draft: #f2c14e; --draft-bg: #33290f;
13 --closed: #9aa5b4; --closed-bg: #222a35; --planned: #c4a5ff; --planned-bg: #2a2140; --down: #f97066;
14 color-scheme: dark;
15 }
16}
17:root[data-theme="dark"] {
18 --bg: #0e1117; --surface: #161b23; --surface-2: #1c222c; --border: #2b3340; --text: #e3e8ef; --muted: #9aa5b4;
19 --accent: #5b8def; --accent-soft: #1b2740; --link: #8db1ff; --code-bg: #1c222c;
20 --ok: #4ade80; --ok-bg: #12301f; --acc: #8db1ff; --acc-bg: #1b2740; --draft: #f2c14e; --draft-bg: #33290f;
21 --closed: #9aa5b4; --closed-bg: #222a35; --planned: #c4a5ff; --planned-bg: #2a2140; --down: #f97066;
22 color-scheme: dark;
23}
24
25* { box-sizing: border-box; }
26html { scroll-padding-top: 64px; }
27body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
28a { color: var(--link); text-decoration: none; }
29a:hover { text-decoration: underline; }
30code { font: 0.88em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
31.muted { color: var(--muted); }
32
33/* Шапка */
34.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
35.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); }
36.brand:hover { text-decoration: none; }
37.top-nav { display: flex; gap: 18px; margin-left: auto; }
38.top-nav a { color: var(--muted); font-weight: 500; }
39.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 18px; padding: 2px 10px; cursor: pointer; }
40
41/* Лендінг */
42.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
43.hero { padding: 48px 0 16px; }
44.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
45.lead { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }
46section { margin: 36px 0; }
47section h2 { font-size: 20px; margin: 0 0 14px; }
48section h2 a { color: inherit; }
49.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
50.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
51.card.feature { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
52.card h3 { margin: 10px 0 6px; font-size: 18px; }
53.card p { margin: 0 0 14px; color: var(--muted); }
54.card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
55/* Стенд схемою: ERP-емулятор (мала) і WGS зверху, під ними WMS · WTS · WES, під WES — ТСД (мала) */
56.cards.stand-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
57.stand-map .slot-erp { grid-column: 1; grid-row: 1; }
58.stand-map .slot-wgs { grid-column: 2 / span 2; grid-row: 1; }
59.stand-map .slot-wms { grid-column: 1; grid-row: 2; }
60.stand-map .slot-wts { grid-column: 2; grid-row: 2; }
61.stand-map .slot-wes { grid-column: 3; grid-row: 2; }
62.stand-map .slot-tsd { grid-column: 3; grid-row: 3; }
63.card.small { padding: 12px 14px; align-self: start; }
64.stand-map > .card { align-self: start; }
65.card.small h3 { margin: 6px 0 10px; font-size: 15px; }
66.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
67.tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
68.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
69.btn { display: inline-block; padding: 6px 14px; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 550; font-size: 14px; border: 1px solid var(--accent); }
70.btn:hover { text-decoration: none; filter: brightness(1.08); }
71.btn.ghost { background: transparent; color: var(--link); border-color: var(--border); }
72.btn.ghost:hover { background: var(--accent-soft); }
73.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
74.doc { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
75.doc:hover { border-color: var(--accent); text-decoration: none; }
76.doc span { color: var(--muted); font-size: 14px; }
77.cmd { background: var(--code-bg); border-radius: 8px; padding: 10px 14px; margin: 0 0 10px; overflow-x: auto; }
78.cmd code { background: none; padding: 0; }
79.foot { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
80
81.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
82.dot.up { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
83.dot.down { background: var(--down); opacity: 0.8; }
84
85.registry { width: 100%; }
86.registry td.rid { white-space: nowrap; }
87.registry tr.closed td { color: var(--muted); }
88.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
89.badge.ok { color: var(--ok); background: var(--ok-bg); }
90.badge.accepted { color: var(--acc); background: var(--acc-bg); }
91.badge.draft { color: var(--draft); background: var(--draft-bg); }
92.badge.closed { color: var(--closed); background: var(--closed-bg); }
93.badge.planned { color: var(--planned); background: var(--planned-bg); }
94
95/* Таблиці */
96.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
97table { border-collapse: collapse; font-size: 14px; }
98th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
99th { background: var(--surface-2); font-weight: 600; }
100tr:last-child td { border-bottom: 0; }
101
102/* Сторінки документів */
103.shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); max-width: 1500px; margin: 0 auto; }
104.shell.has-toc { grid-template-columns: 270px minmax(0, 1fr) 240px; }
105.side { position: sticky; top: 52px; align-self: start; height: calc(100vh - 52px); overflow-y: auto; padding: 16px 12px 40px 20px; border-right: 1px solid var(--border); font-size: 14px; }
106.side summary { cursor: pointer; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 8px 0 4px; }
107.side ul { list-style: none; margin: 0 0 8px; padding: 0; }
108.side li a { display: flex; align-items: baseline; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--text); line-height: 1.35; }
109.side li a .dot { align-self: center; }
110.side li a:hover { background: var(--surface-2); text-decoration: none; }
111.side li a[aria-current] { background: var(--accent-soft); color: var(--link); font-weight: 550; }
112.rid { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); white-space: nowrap; }
113.content { min-width: 0; padding: 20px 40px 60px; }
114.content > * { max-width: 860px; }
115.content.wide > * { max-width: none; }
116.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
117.toc { position: sticky; top: 52px; align-self: start; max-height: calc(100vh - 52px); overflow-y: auto; padding: 20px 16px; font-size: 13px; }
118.toc-h { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
119.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
120.toc li a { display: block; padding: 3px 10px; color: var(--muted); line-height: 1.35; }
121.toc li.d3 a { padding-left: 22px; font-size: 12.5px; }
122.toc li a:hover { color: var(--link); text-decoration: none; }
123
124.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 4px 0 20px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; }
125.banner > div { flex: 1; min-width: 0; }
126
127.md { overflow-wrap: break-word; }
128.md h1 { font-size: 28px; line-height: 1.25; margin: 8px 0 16px; }
129.md h2 { font-size: 21px; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
130.md h3 { font-size: 17px; margin: 26px 0 8px; }
131.md h4 { font-size: 15px; margin: 20px 0 6px; }
132.md h1, .md h2, .md h3, .md h4 { position: relative; }
133.anchor { position: absolute; left: -1.1em; color: var(--muted); opacity: 0; font-weight: 400; }
134.md :is(h1, h2, h3, h4):hover .anchor { opacity: 1; text-decoration: none; }
135.md p, .md ul, .md ol { margin: 0 0 14px; }
136.md li { margin: 3px 0; }
137.md blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--border); color: var(--muted); }
138.md pre { background: var(--code-bg); padding: 12px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
139.md pre code { background: none; padding: 0; font-size: inherit; }
140.md img { max-width: 100%; }
141.md hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
142a.xref { text-decoration: underline dotted; text-underline-offset: 3px; }
143:target { scroll-margin-top: 64px; }
144h2:target, h3:target, h4:target { background: var(--accent-soft); border-radius: 4px; }
145
146.code-title { font-size: 22px; margin: 4px 0; }
147pre.code { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 0; overflow-x: auto; font: 13px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; }
148pre.code code { background: none; padding: 0; white-space: pre; }
149.ln { display: inline-block; width: 3.5em; padding-right: 1em; margin-right: 0.75em; text-align: right; color: var(--muted); border-right: 1px solid var(--border); user-select: none; }
150.files { margin: 24px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; }
151.files summary { cursor: pointer; font-weight: 600; }
152.files ul { columns: 2 220px; list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
153.src { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
154
155/* Сторінка стенда */
156.stand input { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; }
157.stand input:disabled { background: var(--surface-2); color: var(--muted); }
158.stand input.num { width: 6.5em; }
159.stand input.db { width: 9em; }
160.stand .registry td { vertical-align: middle; }
161.chk { display: inline-flex; align-items: center; gap: 6px; margin: 4px 16px 4px 0; }
162.fld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 13px; color: var(--muted); max-width: 420px; }
163.fld input { font-size: 15px; }
164.pg { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
165.pg legend { padding: 0 6px; font-weight: 600; }
166.pg .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
167.pg p { margin: 8px 0 0; }
168.save { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 20px 0; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); }
169.save .fld { margin: 0; }
170.save p { flex-basis: 100%; margin: 0; }
171button.btn { font-family: inherit; cursor: pointer; }
172.note { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--border); }
173.note.ok { background: var(--ok-bg); border-left-color: var(--ok); }
174.note.err { background: var(--closed-bg); border-left-color: var(--down); color: var(--down); }
175pre.cmd { background: var(--code-bg); padding: 12px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
176pre.cmd code { background: none; padding: 0; }
177
178@media (max-width: 1200px) {
179 .shell.has-toc { grid-template-columns: 250px minmax(0, 1fr); }
180 .toc { display: none; }
181}
182@media (max-width: 820px) {
183 .top .brand { font-size: 0; gap: 0; }
184 .top .tabs { margin-left: 8px; }
185 .tabs a { padding: 0 8px; font-size: 14px; }
186 .top .settings { display: none; }
187 .menu { display: block; }
188 .shell, .shell.has-toc { grid-template-columns: minmax(0, 1fr); }
189 .side { display: none; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 16px; }
190 .nav-open .side { display: block; }
191 .content { padding: 16px 16px 48px; }
192 .wrap { padding: 0 16px; }
193 .hero { padding-top: 28px; }
194 .hero h1 { font-size: 27px; }
195 .top { padding: 0 16px; }
196 .top-nav { gap: 12px; font-size: 14px; }
197 .cards { grid-template-columns: minmax(0, 1fr); }
198 .cards.stand-map { grid-template-columns: minmax(0, 1fr); }
199 .stand-map > .card { grid-column: auto; grid-row: auto; }
200 .banner { flex-wrap: wrap; }
201}
202
203/* Вкладки головної — у шапці */
204.top .tabs { display: flex; align-self: stretch; gap: 2px; margin-left: 24px; overflow-x: auto; scrollbar-width: none; }
205.tabs a { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 550; white-space: nowrap; }
206.tabs a:hover { color: var(--text); text-decoration: none; }
207.tabs a[aria-current] { color: var(--link); border-bottom-color: var(--accent); }
208.top .settings { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
209.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
210.js .tab:not(.active) { display: none; }
211.tab { margin: 20px 0 32px; }
212.count.warn { background: var(--draft-bg); color: var(--draft); }
213.spec h3 { margin-top: 0; }
214.spec h3 a { color: var(--text); }
215.meta { margin: 8px 0 0; font-size: 14px; }
216.meta summary { cursor: pointer; color: var(--muted); font-weight: 550; }
217.meta .chips, .qids { margin: 8px 0 0; }
218.qids { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
219.registry-link { margin-left: auto; align-self: center; font-size: 14px; }
220.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
221.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; border: 1px solid var(--border); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--text); }
222.chip:hover { border-color: var(--accent); text-decoration: none; }
223.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
224.filters button { font: inherit; font-size: 14px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
225.filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--link); }
226.research-table td.date { white-space: nowrap; color: var(--muted); }
227.research-table tr.hidden { display: none; }
228.mats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
229.mat.code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
230.small { font-size: 12.5px; margin-top: 4px; }
231
232/* Плашки > [!…] і колонка «Стан» у таблицях; якір рядка таблиці */
233blockquote.alert { border-left: 4px solid var(--acc); background: var(--acc-bg); border-radius: 6px; padding: 8px 14px; margin: 12px 0; color: var(--text); }
234blockquote.alert p { margin: 4px 0; }
235blockquote.alert .alert-t { display: inline-block; margin-right: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
236blockquote.alert-ask { border-left-color: var(--draft); background: var(--draft-bg); }
237blockquote.alert-unconfirmed { border-left-color: var(--planned); background: var(--planned-bg); }
238blockquote.alert-warn { border-left-color: var(--down); background: var(--closed-bg); }
239td.st { font-weight: 600; white-space: nowrap; }
240td.st-open { color: var(--draft); }
241td.st-done { color: var(--ok); }
242td.st-unconfirmed { color: var(--planned); }
243td.st-off { color: var(--closed); }
244tr:target td { background: var(--accent-soft); }
245tr:target td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
246