mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2025-02-17 12:20:06 +00:00
Simplify webring list, fix list-item cutoff
- CSS containment was cutting off nested list-item markers; increase their padding to compensate - Remove nested <details> use, it was causing problems and was probably unnecessary
This commit is contained in:
parent
86bc0b121b
commit
0ff306e589
2 changed files with 3 additions and 6 deletions
|
@ -399,7 +399,7 @@ ul ul {
|
||||||
-webkit-hyphens: auto;
|
-webkit-hyphens: auto;
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 1em;
|
padding-left: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save some space and paper by making the site nav and footer links
|
/* Save some space and paper by making the site nav and footer links
|
||||||
|
|
|
@ -8,15 +8,13 @@
|
||||||
<h2 id="webrings">Webrings</h2>
|
<h2 id="webrings">Webrings</h2>
|
||||||
{{ $webringData := after 1 (getCSV "," "/csv/webrings.csv") -}}
|
{{ $webringData := after 1 (getCSV "," "/csv/webrings.csv") -}}
|
||||||
<p>This site is part of {{ len $webringData }} <a href="https://en.wikipedia.org/wiki/Webring">webrings</a>. A webring is a collection of sites in a circular doubly-linked list; each website links to the next and previous site in the list.</p>
|
<p>This site is part of {{ len $webringData }} <a href="https://en.wikipedia.org/wiki/Webring">webrings</a>. A webring is a collection of sites in a circular doubly-linked list; each website links to the next and previous site in the list.</p>
|
||||||
<p>Some of the “next” and “previous” links contain JavaScript; you need to enable it to be re-directed to the correct page. I’ve marked these links with “JS”.</p>
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Toggle webrings list</summary>
|
<summary>Toggle webrings list</summary>
|
||||||
|
<p>Some of the “next” and “previous” links contain JavaScript; you need to enable it to be re-directed to the correct page. I’ve marked these links with “JS”.</p>
|
||||||
<ol>
|
<ol>
|
||||||
{{- range $i, $r := $webringData }}
|
{{- range $i, $r := $webringData }}
|
||||||
{{- $webringName := index $r 0 }}
|
{{- $webringName := index $r 0 }}
|
||||||
<li>
|
<li>{{- $webringName -}}
|
||||||
<details>
|
|
||||||
<summary>{{- $webringName -}}</summary>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a>
|
<a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a>
|
||||||
|
@ -33,7 +31,6 @@
|
||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ol>
|
</ol>
|
||||||
</details>
|
|
||||||
</li>
|
</li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</ol>
|
</ol>
|
||||||
|
|
Loading…
Add table
Reference in a new issue