The author recounts frustration with a blog sidebar nav arrow whose tappable area was too small, and how enlarging it with padding broke the surrounding layout and required hacky CSS workarounds. They wish CSS offered a way to define an interactive zone around an element, and highlight Tyler Sticka's proposal for a new `pointer-box-offset` property that would let developers expand the tap/hover target area without affecting surrounding elements or layout.
It all began with the nav. Notice how in the sidebar of this here blog where you can open and close folders to reveal more entries? Well, the tappable area of the arrow was way too small and I kept miss-clicking and selecting folders instead. So, I tried to fix it and realized the only way to do so was by tweaking the element like this:
Alas! This increased the tappable area of the arrow but broke the surrounding layout, so I was forced to write all sorts of screwy CSS and hacks to account for it.
I think it was Chris Coyier the other day who mentioned that there’s nothing left on his wish list for big CSS features but I realize that this is now at the top of mine: I wish in CSS there was something like an ~interactive-size~ property so instead of having to add padding to small elements to make them clickable we could just tell the browser “trigger events when I tap/hover/whatever 15px around this element”.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要The article discusses Katherine Rundell's essay on why adults should read children's books, highlighting her quotation of Frances Spufford about the inherent power and danger of storytelling. Rundell argues that real fairytales are driven by hunger, contrasting the original Cinderella with Disney's passive version that lacks agency. The author connects this to their own childhood experience of devouring Animorphs books, noting they are still chasing that same fierce, transformative hunger for stories nearly thirty years later.
AI 摘要After receiving a box of embarrassing journals from his early twenties, the author finds a gentler perspective through Roland Allen's 'The Notebook: A History of Thinking on Paper,' which shows that recording quotes, sketches, and musings is part of an ancient tradition, exemplified by Dutch students' album amicorum in 1575. He realizes that journaling—and even blogging—is a centuries-old practice of curiosity and self-improvement practiced by sailors, da Vinci, and Venetian merchants alike. Ultimately, he concludes that people across the ages are fundamentally the same, all eager to record and share the things they love, 'Fight Club' included.
AI 摘要The article is an enthusiastic, spoiler-free recommendation of Claire Keegan's novella 'Small things like these', praising its sweet, triumphant, and satisfying ending that will stay with the reader. The author describes Keegan's writing as clear and precise, and quotes her explaining that she aims to work on the level of suggestion by removing traces of her labours and trusting the reader's intelligence.
AI 摘要The article reflects on Italo Calvino's 1967 lecture 'Cybernetics and Ghosts,' in which Calvino envisioned machines capable of writing poetry and novels and found comfort in the idea of literature being reduced to finite, systematic operations. The author admits to bristling at this reduction of the mysterious craft of novel-making and feeling a need to defend the humanities. Ultimately, however, Calvino offers a hopeful twist: machines could expose literature's rules so that writers can see them clearly, break them, and create something entirely new.
AI 摘要At SFO, the author encounters an exhibit called Indoor Eden: Victorian Jardinières, featuring an 1870 quote from Shirley Hibberd's gardening book urging readers not to despise 'the day of small things.' Though impressed by the craftsmanship of the Victorian art nouveau pottery, the author humorously vents about how profoundly ugly the pieces are, arguing that effort doesn't make something good. They conclude by jokingly rejecting Hibberd's gentle advice about making small improvements, grumpily insisting that small, ugly things should be unacceptable and fixed with dramatic, life-changing overhauls instead.