mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
make index page responsive
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
]}
|
||||
|
||||
#section[
|
||||
|
@@ -23,7 +23,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
]}
|
||||
|
||||
#section[
|
||||
|
@@ -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]
|
||||
|
@@ -18,7 +18,7 @@
|
||||
]
|
||||
|
||||
#if is-web {section[
|
||||
Note that the #min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
Note that the #gen-min-pdf-link[PDF Version] of this page might look a bit better styling wise.
|
||||
|
||||
You can click the PCB images to switch to the other side.
|
||||
]}
|
||||
|
Reference in New Issue
Block a user