From 284f5b2c4f360e297d150df0ec7dd23b95b289c0 Mon Sep 17 00:00:00 2001 From: Naeel Date: Sat, 18 Jul 2026 10:17:14 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86?= =?UTF-8?q?=D1=8B=20=E2=80=94=20:has()=20=D1=80=D0=B0=D0=B7=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D1=8F=D0=B5=D1=82=205/6=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD?= =?UTF-8?q?=D0=BE=D0=BA,=20=D1=81=D1=83=D0=BC=D0=BC=D1=8B=20100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/30_registry/assets/extra.css | 82 ++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 19 deletions(-) diff --git a/docs/30_registry/assets/extra.css b/docs/30_registry/assets/extra.css index 3c1ea11..2ab0a93 100644 --- a/docs/30_registry/assets/extra.css +++ b/docs/30_registry/assets/extra.css @@ -99,46 +99,90 @@ display: none; } -/* ---- MAIN TABLE ---- */ -.md-typeset .resource-table:not(.resource-table-nested) th:nth-child(2), -.md-typeset .resource-table:not(.resource-table-nested) td:nth-child(2) { - width: 25%; - min-width: 16ch; - white-space: normal; - overflow-wrap: anywhere; -} - -.md-typeset .resource-table:not(.resource-table-nested) td:nth-child(2) code { +/* Code column: bold for all resource tables */ +.md-typeset .resource-table td:nth-child(2) code { font-weight: 700; font-size: 0.82rem; } +.md-typeset .resource-table:not(.resource-table-nested) { + table-layout: fixed; +} -.md-typeset .resource-table:not(.resource-table-nested) th:nth-child(3), -.md-typeset .resource-table:not(.resource-table-nested) td:nth-child(3) { - width: 5%; +/* 5-col (no Default): Code(22%) Type(6%) Descr(45%) Constr(27%) = 100% */ +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) th:nth-child(2), +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) td:nth-child(2) { + width: 22%; + white-space: normal; + overflow-wrap: anywhere; +} +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) th:nth-child(3), +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) td:nth-child(3) { + width: 6%; white-space: nowrap; font-size: 0.63rem; } - -.md-typeset .resource-table:not(.resource-table-nested) th:nth-last-child(2), -.md-typeset .resource-table:not(.resource-table-nested) td:nth-last-child(2) { +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) th:nth-child(4), +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) td:nth-child(4) { + width: 45%; white-space: normal; overflow-wrap: anywhere; font-size: 0.63rem; color: #777; } -.md-typeset .resource-table:not(.resource-table-nested) td:nth-last-child(2) { +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) td:nth-child(4) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) th:nth-child(5), +.md-typeset .resource-table:not(.resource-table-nested):not(:has(th:nth-child(6))) td:nth-child(5) { + width: 27%; + white-space: normal; + overflow-wrap: anywhere; + font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace; + font-size: 0.62rem; +} -.md-typeset .resource-table:not(.resource-table-nested) th:nth-last-child(1), -.md-typeset .resource-table:not(.resource-table-nested) td:nth-last-child(1) { +/* 6-col (with Default): Code(20%) Type(5%) Default(12%) Descr(38%) Constr(25%) = 100% */ +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) th:nth-child(2), +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(2) { width: 20%; white-space: normal; overflow-wrap: anywhere; +} +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) th:nth-child(3), +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(3) { + width: 5%; + white-space: nowrap; + font-size: 0.63rem; +} +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) th:nth-child(4), +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(4) { + width: 12%; + white-space: normal; + color: #2c6f8c; + font-size: 0.72rem; +} +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) th:nth-child(5), +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(5) { + width: 38%; + white-space: normal; + overflow-wrap: anywhere; + font-size: 0.63rem; + color: #777; +} +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(5) { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; +} +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) th:nth-child(6), +.md-typeset .resource-table:not(.resource-table-nested):has(th:nth-child(6)) td:nth-child(6) { + width: 25%; + white-space: normal; + overflow-wrap: anywhere; font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace; font-size: 0.62rem; }