From 2ccb0a887c17e4c7c0d8fe46063560e17d9dfdcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Biron?= Date: Mon, 19 Jan 2026 11:34:59 +0100 Subject: [PATCH 1/2] Allow copy of ref item --- .../layouts/shortcodes/refItem.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/themes/opentermsarchive/layouts/shortcodes/refItem.html b/themes/opentermsarchive/layouts/shortcodes/refItem.html index e70c9d50..220b1ccd 100644 --- a/themes/opentermsarchive/layouts/shortcodes/refItem.html +++ b/themes/opentermsarchive/layouts/shortcodes/refItem.html @@ -10,14 +10,16 @@ {{ $anchorID := $name | lower | replaceRE "[^a-z0-9-]" "-" | replaceRE "-+" "-" | replaceRE "^-" "" | replaceRE "-$" "" }}
- - {{ $name }} - {{ $type }} - {{ with $required }} - {{ if eq . true }}required{{ else }}{{ . | markdownify }}{{ end }} - {{ end }} +
{{ $description | markdownify | safeHTML }}
{{ if $default }} From 7cad0659de9b3fa0e03e3e94cccd6cb2711fd0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Biron?= Date: Mon, 19 Jan 2026 11:35:08 +0100 Subject: [PATCH 2/2] Improve style --- themes/opentermsarchive/assets/css/components/refItem.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/opentermsarchive/assets/css/components/refItem.css b/themes/opentermsarchive/assets/css/components/refItem.css index 009f26f7..6b6763b5 100644 --- a/themes/opentermsarchive/assets/css/components/refItem.css +++ b/themes/opentermsarchive/assets/css/components/refItem.css @@ -35,6 +35,11 @@ font-weight: 400; } +.refItem-anchor{ + padding-left: 1rem; + padding-top: 0.2rem; +} + .refItem-anchor-icon { opacity: 0; color: var(--colorBlack600);