From 5099b5b73ca23c34d8662f667f76e0bbff2794d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 19 May 2023 12:59:06 +0200 Subject: [PATCH] tags: taxonomy layout with headings all on the left #530 and columned lists like in the terms page for a more concicse look --- layouts/_default/taxonomy.html | 15 +++++---------- static/css/theme.css | 9 --------- static/js/theme.js | 2 +- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 8c2102b744..8cbb522f29 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -8,18 +8,15 @@ {{- $title = .Data.Plural | humanize }} {{- end }}

{{ $title }}

-
{{- $lastCapital := "" }} {{- range .Data.Terms.Alphabetical }} {{- $capital := substr .Page.Title 0 1 | upper }} {{- if ne $lastCapital $capital }} {{- if ne $lastCapital "" }} - -
+ {{- end }} -
-

{{ $capital }}

-
+ {{- end }} - diff --git a/static/css/theme.css b/static/css/theme.css index 62d391e186..9eca6f1c28 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1760,15 +1760,6 @@ html[dir="rtl"] #sidebar ul.collapsible-menu > li > label > i.fa-chevron-right { transform: scaleX(-1); } -.tax-container { - display: flex; - flex-wrap: wrap; -} - -.tax-box { - width: 18rem; -} - .columnize{ column-count: 2; } diff --git a/static/js/theme.js b/static/js/theme.js index a5e057fcaa..8c6a7ec880 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -428,7 +428,7 @@ function initOpenapi( update, attrs ){ } function initAnchorClipboard(){ - document.querySelectorAll( 'h1~h2,h1~h3,h1~h4,h1~h5,h1~h6,.tax-container h2,.tax-container h3,.tax-container h4,.tax-container h5,.tax-container h6').forEach( function( element ){ + document.querySelectorAll( 'h1~h2,h1~h3,h1~h4,h1~h5,h1~h6').forEach( function( element ){ var url = encodeURI( (document.location.origin == "null" ? (document.location.protocol + "//" + document.location.host) : document.location.origin )+ document.location.pathname); var link = url + "#" + element.id; var new_element = document.createElement( 'span' );