💾 Archived View for gemlog.blue › users › acdw › 1601482805.gmi captured on 2023-07-22 at 18:47:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-10-31)

-=-=-=-=-=-=-

Userstyle for /Practical Common Lisp/

I've been reading through Peter Seibel's /Practical Common Lisp/ online[1], and while it's a great resource, I found the default style lacking in a few ways for learning. For one thing, the width doesn't automatically adapt to a narrow window, which I do for side-by-side reading and coding practice; for another, Seibel makes liberal use of footnotes, but they aren't linked in any way in the text, making it difficult to refer to them without losing place. I've written a small userscript to remedy those issues:

@-moz-document url-prefix("http://www.gigamonkeys.com/book/") {

    max-width: 100%;
    box-sizing: border-box;
}

body {
    padding: 1ch;
    margin-bottom: 140px;
}

.notes {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 140px;
    overflow-y: scroll;
    background: white;
    border-top: 2px solid;
    margin-top: 4px;
    padding: 0 4em;
}
}

Install by `importing` the code above into a new Stylus sheet. It should only apply to pages /under/ the /book folder on the domain.

Happy hacking!

Footnotes

[1] Practical Common Lisp