Skip to content

Commit ff120aa

Browse files
TMHSDigitalclaude
andcommitted
site: 44px tap targets for nav and entry titles on touch (batch D)
On a coarse pointer, the top nav links and the entry title links get 12px of vertical padding. On an inline link this grows the hit area without changing the line box: in a 375px touch emulation the links go from 20px to 44px tall and the card height stays 240px. The title is lifted (z-index 1, below the sticky controls at 20 and the to-top button at 30) so the summary line does not paint over its lower half. Checked by elementFromPoint across the full 44px band. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wc67NX9MM964uaVGn4bpZJ
1 parent 766e6b7 commit ff120aa

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎site/public/styles.css‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,22 @@ input:focus-visible {
635635
text-decoration: underline;
636636
}
637637

638+
/* Touch screens: the nav and the entry titles are the main tap targets but are
639+
one line of text tall. Vertical padding on an inline link grows the hit area
640+
to 44px without changing the line box, so the layout does not move. The
641+
title is lifted so the summary below does not paint over its lower half. */
642+
@media (pointer: coarse) {
643+
.topnav a,
644+
.entry-top h3 a {
645+
padding-block: 12px;
646+
}
647+
648+
.entry-top h3 a {
649+
position: relative;
650+
z-index: 1;
651+
}
652+
}
653+
638654
.entry-links {
639655
display: flex;
640656
flex-wrap: wrap;

0 commit comments

Comments
 (0)