diff --git a/assets/page.html b/assets/page.html index 0af04b4..9f2403e 100644 --- a/assets/page.html +++ b/assets/page.html @@ -7,18 +7,9 @@ {{if .SpecialContent}}
{{.SpecialContent}}
{{end}} -{{if or .Content .SpecialContent}} - - - - -{{end}} -{{if .Content}} - -{{end}} {{if .Entries}} +

Files

-
Contents
{{range .Entries}}
{{.Icon}} @@ -32,6 +23,15 @@

Empty folder — [CREATE]

{{end}} {{end}} +{{if or .Content .SpecialContent}} + + + + +{{end}} +{{if .Content}} + +{{end}} {{end}} {{define "extras"}} diff --git a/assets/style.css b/assets/style.css index 20cc7bd..637c1a6 100644 --- a/assets/style.css +++ b/assets/style.css @@ -251,22 +251,22 @@ main { .listing { border: 1px solid var(--secondary); } -.listing-header { - padding: 0.5rem 1rem; - font-size: 0.8rem; - text-transform: uppercase; - letter-spacing: 0.05em; +main > h2 { color: var(--text); - border-bottom: 1px solid var(--secondary); + margin: 1.25rem 0 0.5rem; + line-height: 1.3; + font-size: 1.4rem; } .listing-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; - border-top: 1px solid var(--secondary); font-size: 0.95rem; } +.listing-item + .listing-item { + border-top: 1px solid var(--secondary); +} .listing-item:hover { background: var(--bg-panel-hover); } @@ -277,9 +277,7 @@ main { } .listing-item a { flex: 1; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + overflow-wrap: anywhere; color: inherit; } .listing-item .meta { @@ -862,4 +860,11 @@ hr { .modal-header { cursor: default; } + .listing-item { + flex-wrap: wrap; + } + .listing-item .meta { + flex-basis: 100%; + padding-left: calc(1.25rem + 0.75rem); + } }