Skip to content

Commit f0d744a

Browse files
ikuninclaude
andcommitted
Draw the header's outward links so they look like what they are
Two faults in the first cut, both only visible in a browser: the hairline before "More apps" was a border-left on a pill-shaped link, so it came out as a crescent; and `nav.site a` is more specific than `.button`, so the App Store button wore the navigation's grey text instead of its own. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BHqBkVbnKPqL7qKAQethGK
1 parent c62a93d commit f0d744a

1 file changed

Lines changed: 24 additions & 9 deletions

File tree

appsite/assets/style.css

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,35 @@ nav.site a[aria-current="page"] {
153153
background: rgba(255, 255, 255, 0.09);
154154
}
155155

156-
/* The two links that leave this site: the other apps, and the App Store. Set
157-
off from the pages of this site by a rule, so the nav does not read as one
158-
undifferentiated row of seven. */
159-
nav.site .away, nav.site .button {
160-
margin-left: 0.35rem;
161-
border-left: 1px solid var(--line);
162-
padding-left: 0.85rem;
156+
/* The two links that leave this site: the other apps, and the App Store. A
157+
hairline sets them off, so the header does not read as one undifferentiated
158+
row of seven. It is drawn as a pseudo-element rather than a border, because
159+
these pills are pill-shaped and a border-left comes out as a crescent. */
160+
nav.site .away {
161+
position: relative;
162+
margin-left: 0.75rem;
163+
}
164+
165+
nav.site .away::before {
166+
content: "";
167+
position: absolute;
168+
left: -0.45rem;
169+
top: 50%;
170+
transform: translateY(-50%);
171+
width: 1px;
172+
height: 1.15rem;
173+
background: var(--line);
163174
}
164175

176+
/* `nav.site a` is more specific than `.button`, so the header's button has to
177+
name its own colours or it comes out in the navigation's grey. */
165178
nav.site .button {
166-
border-left: 0;
167-
padding-left: 1rem;
179+
color: var(--accent-ink);
180+
margin-left: 0.5rem;
168181
}
169182

183+
nav.site .button:hover { color: var(--accent-ink); background: var(--accent); }
184+
170185
/* The header's own size of button: the page's call to action is in the hero,
171186
and this one must not shout over it. */
172187
.button.small {

0 commit comments

Comments
 (0)