1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +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:
Rohan Kumar 2022-08-24 20:14:09 -07:00
parent 86bc0b121b
commit 0ff306e589
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 3 additions and 6 deletions

View file

@ -399,7 +399,7 @@ ul ul {
-webkit-hyphens: auto;
hyphens: auto;
margin: 0;
padding-left: 1em;
padding-left: 1.25em;
}
/* Save some space and paper by making the site nav and footer links

View file

@ -8,15 +8,13 @@
<h2 id="webrings">Webrings</h2>
{{ $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>Some of the “next” and “previous” links contain JavaScript; you need to enable it to be re-directed to the correct page. Ive marked these links with “JS”.</p>
<details>
<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. Ive marked these links with “JS”.</p>
<ol>
{{- range $i, $r := $webringData }}
{{- $webringName := index $r 0 }}
<li>
<details>
<summary>{{- $webringName -}}</summary>
<li>{{- $webringName -}}
<ol>
<li>
<a href="{{- index $r 2 -}}">{{- $webringName }} webring home</a>
@ -33,7 +31,6 @@
</li>
{{- end }}
</ol>
</details>
</li>
{{- end -}}
</ol>