make index page responsive

This commit is contained in:
2025-07-05 16:45:56 +02:00
parent 445e39753d
commit bcd2af7ccd
6 changed files with 20 additions and 27 deletions

View File

@@ -1,24 +1,6 @@
#import "../common.typ": *
#import "../simple-page-layout.typ": *
#let gen-page(content) = {
core-page-style[
#if is-web {
table(
stroke: none,
columns: (25%, 50%, 25%),
[],
[
#html-style("position: absolute; left: 28%; width: 100%")[
#box(width: 50%, content)
]
],
)
} else {
content
}
]
}
#import "../core-page-style.typ": *
#let tree-list(..elements) = {
gen-tree-from-headings(elemfn: (content, x) => [
@@ -31,7 +13,11 @@
], elements.pos())
}
#gen-page[
#simple-page(
gen-table-of-contents: false,
gen-index-ref: false,
min-pdf-link: false,
)[
#br()
#title[alex_s168]