mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +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;
|
||||
hyphens: auto;
|
||||
margin: 0;
|
||||
padding-left: 1em;
|
||||
padding-left: 1.25em;
|
||||
}
|
||||
|
||||
/* Save some space and paper by making the site nav and footer links
|
||||
|
|
|
@ -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. I’ve 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. I’ve 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>
|
||||
|
|
Loading…
Reference in a new issue