Build browsable norm table with inline composition
This commit is contained in:
+63
-6
@@ -13,7 +13,7 @@
|
||||
button { cursor:pointer; }
|
||||
:focus-visible { outline:3px solid #65aba4; outline-offset:2px; }
|
||||
a { color:var(--accent); }
|
||||
.wrap { max-width:1240px; margin:auto; padding:24px clamp(16px,3vw,40px) 64px; }
|
||||
.wrap { max-width:1600px; margin:auto; padding:24px clamp(16px,3vw,40px) 64px; }
|
||||
header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:32px; }
|
||||
.brand { font-weight:750; font-size:1.15rem; text-decoration:none; color:var(--text); }
|
||||
h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.1; margin:0 0 12px; }
|
||||
@@ -71,23 +71,72 @@
|
||||
.draft-row input { width:110px; }
|
||||
.quote-controls label { min-width:140px; }
|
||||
.quote-controls #qty { width:125px; }
|
||||
.workspace { display:grid; grid-template-columns:minmax(230px,280px) minmax(0,1fr); gap:16px; align-items:start; }
|
||||
.catalog-tree { max-height:72vh; overflow:auto; position:sticky; top:12px; }
|
||||
.catalog-tree h2 { font-size:1.05rem; }
|
||||
.tree-list { list-style:none; margin:0; padding:0 0 0 12px; border-left:1px solid var(--line); }
|
||||
.tree-list button { width:100%; text-align:left; border:0; border-radius:5px; background:transparent;
|
||||
padding:6px; color:var(--text); font-size:.84rem; line-height:1.3; }
|
||||
.tree-list button:hover,.tree-list button[aria-current="true"] { background:#e9f4f1; color:var(--accent); }
|
||||
.table-panel { min-width:0; }
|
||||
.table-panel h2 { margin:0; }
|
||||
.table-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
|
||||
.norm-scroll { max-width:100%; overflow-x:auto; }
|
||||
.norm-table { min-width:680px; }
|
||||
.norm-table th { background:#f6f7f4; position:sticky; top:0; z-index:1; }
|
||||
.norm-table .norm-row:hover { background:#f8faf8; }
|
||||
.norm-table .norm-row button { min-height:32px; }
|
||||
.norm-table .norm-name { min-width:240px; }
|
||||
.norm-table .inline-cell { padding:0; background:#f8faf8; }
|
||||
.inline-content { padding:16px; border-left:3px solid var(--accent); }
|
||||
.inline-content .detail-grid { grid-template-columns:minmax(0,1fr); }
|
||||
.inline-content .panel { border:0; padding:12px 0; background:transparent; }
|
||||
.inline-content #quote-panel { border-top:1px solid var(--line); }
|
||||
.inline-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
|
||||
.inline-actions .secondary { min-height:32px; }
|
||||
.breadcrumb { color:var(--muted); font-size:.84rem; overflow-wrap:anywhere; }
|
||||
.catalog-mobile { display:none; }
|
||||
[hidden] { display:none !important; }
|
||||
@media (max-width:760px) { .wrap { padding:18px 14px 40px; } header { margin-bottom:24px; }
|
||||
.detail-grid,.comparison { grid-template-columns:minmax(0,1fr); } .panel,.card { padding:15px; }
|
||||
.search-row > *, .controls > label { flex:1 1 100%; } .search-row button { width:100%; }
|
||||
.quote-controls label { min-width:0; } }
|
||||
.quote-controls label { min-width:0; } .workspace { display:block; }
|
||||
.catalog-mobile { display:block; margin-bottom:10px; }
|
||||
.catalog-tree { position:static; max-height:45vh; margin-bottom:12px; }
|
||||
.catalog-tree[hidden] { display:none !important; }
|
||||
.norm-scroll { overflow:visible; }
|
||||
.norm-table,.norm-table > tbody,.norm-table > tbody > .norm-detail-row,
|
||||
.norm-table > tbody > .norm-detail-row > td { display:block; min-width:0; width:100%; }
|
||||
.norm-table thead { display:none; }
|
||||
.norm-table .norm-row { display:grid; grid-template-columns:minmax(0,1fr) auto;
|
||||
gap:5px 12px; padding:13px 0; border-top:1px solid var(--line); }
|
||||
.norm-table .norm-row td { border:0; padding:0; min-width:0; }
|
||||
.norm-table .norm-row td:nth-child(1) { grid-column:1 / -1; }
|
||||
.norm-table .norm-row td:nth-child(2) { grid-column:1 / -1; overflow-wrap:anywhere; }
|
||||
.norm-table .norm-row td:nth-child(3) { grid-column:1; }
|
||||
.norm-table .norm-row td:nth-child(4) { grid-column:2; }
|
||||
.norm-table .norm-row td:nth-child(5) { grid-column:1 / -1; }
|
||||
.norm-table .norm-row .inline-actions { gap:6px; }
|
||||
.norm-table .norm-row .inline-actions button { flex:1 1 auto; }
|
||||
.inline-content { padding:12px 10px; }
|
||||
.inline-content #detail-title { font-size:1.05rem; overflow-wrap:anywhere; }
|
||||
.inline-content .scroll { overflow-x:auto; }
|
||||
.inline-content .scroll table { min-width:560px; }
|
||||
.inline-content .detail-grid { display:block; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="wrap">
|
||||
<header><a class="brand" href="/">ИНФОСМЕТА</a><a href="/">Вернуться в чат</a></header>
|
||||
<h1>Подбор норм</h1>
|
||||
<p class="intro">Найдите работу по названию или шифру, проверьте состав и измеритель, сравните варианты. Цены считаются только по доступной форме выбранной зоны и квартала.</p>
|
||||
<p class="intro">Выберите сборник и раздел или найдите норму по шифру и названию. Раскройте строку, чтобы увидеть состав работ, ресурсы и источник.</p>
|
||||
<div id="auth-notice" class="notice" hidden>Нормы можно искать без входа. Для расчёта по ценам и сохранения подборки <a href="/">войдите в Инфосмету</a>.</div>
|
||||
<form id="search-form" class="panel">
|
||||
<div class="search-row">
|
||||
<label for="query">Работа или шифр<input id="query" type="search" maxlength="160" placeholder="Например, монтаж пожарного извещателя" required></label>
|
||||
<label for="base">Нормативная база<select id="base" aria-label="Нормативная база"></select></label>
|
||||
<label for="base-type">Сборник<select id="base-type" aria-label="Сборник"></select></label>
|
||||
<button class="primary" type="submit">Найти нормы</button>
|
||||
</div>
|
||||
<div class="examples">Примеры: <button type="button" data-query="монтаж извещателя">монтаж извещателя</button>
|
||||
@@ -95,8 +144,16 @@
|
||||
<button type="button" data-query="10-08-002-02">10-08-002-02</button></div>
|
||||
</form>
|
||||
<div id="status" class="status" role="status" aria-live="polite"></div>
|
||||
<section id="results-section" class="section" hidden><h2>Подходящие нормы</h2><div id="results" class="results"></div>
|
||||
<div class="actions" style="margin-top:16px"><button id="more-results" type="button" class="secondary" hidden>Показать ещё нормы</button></div></section>
|
||||
<button id="catalog-mobile" class="secondary catalog-mobile" type="button" aria-controls="catalog-tree" aria-expanded="false">Разделы сборника</button>
|
||||
<div class="workspace section">
|
||||
<aside id="catalog-tree" class="panel catalog-tree"><h2>Разделы сборника</h2><div id="tree-root"></div></aside>
|
||||
<section id="results-section" class="panel table-panel" aria-label="Нормы сборника">
|
||||
<div class="table-heading"><h2 id="results-title">Нормы сборника</h2><span id="result-count" class="hint"></span></div>
|
||||
<p id="breadcrumb" class="breadcrumb"></p>
|
||||
<div class="norm-scroll"><table class="norm-table"><thead><tr><th>Шифр</th><th>Наименование</th><th>Ед. изм.</th><th class="num">Базисная стоимость</th><th>Действия</th></tr></thead><tbody id="results"></tbody></table></div>
|
||||
<div class="actions" style="margin-top:16px"><button id="more-results" type="button" class="secondary" hidden>Показать ещё нормы</button></div>
|
||||
</section>
|
||||
</div>
|
||||
<section id="detail-section" class="section" hidden><div class="detail-grid">
|
||||
<div class="panel"><h2 id="detail-title">Состав нормы</h2><div id="detail"></div></div>
|
||||
<div class="panel" id="quote-panel"><h2>Предварительный расчёт</h2><p class="hint">Объём вводится в выбранной единице. Недостающие цены и затраты будут отмечены.</p>
|
||||
@@ -124,6 +181,6 @@
|
||||
<section id="compare-section" class="section" hidden><h2>Сравнение норм</h2><p id="compare-warning" class="notice" hidden></p>
|
||||
<div id="comparison" class="comparison"></div></section>
|
||||
</main>
|
||||
<script src="/static/norm-finder.js?v=2026-12-04e" defer></script>
|
||||
<script src="/static/norm-finder.js?v=2026-12-04f" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user