Skip to content

Commit

Permalink
🐛 Fixed left and right borders detaching from top and bottom borders
Browse files Browse the repository at this point in the history
  • Loading branch information
BestUsernamEver committed Jan 14, 2024
1 parent 5326ead commit a8a5e46
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions themes/linear/linear.typ
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

#let border(x, y) = {
set line(stroke: 1.5pt)
let borderTL = 0% + 30%
let borderTR = 100% - 30%
let borderTL = 0% + 15%
let borderTR = 100% - 15%
place(
// Left border line
line(start: (0% + x, 5%), end: (0% + x, 90%))
line(start: (0% + x, 5%), end: (0% + x, 100% - y))
)
place(
// Right border line
line(start: (100% - x, 5%), end: (100% - x, 90%))
line(start: (100% - x, 5%), end: (100% - x, 100% - y))
)
place(
// Bottom border line
Expand Down Expand Up @@ -70,7 +70,7 @@
= Frontmatter header
],
footer: [ Frontmatter footer ],
background: border(5%, 10%)
background: border(8%, 8%)
)
body
}
Expand All @@ -82,7 +82,7 @@
= Body header
],
footer: [ Body footer ],
background: border(5%, 10%)
background: border(8%, 8%)
)
body
}
Expand All @@ -92,7 +92,7 @@
= Appendix header
],
footer: [ Appendix footer ],
background: border(5%, 10%)
background: border(8%, 8%)
)
body
}
Expand Down

0 comments on commit a8a5e46

Please sign in to comment.