Skip to content

Commit 76b0794

Browse files
tenphiclaude
andcommitted
docs: stop the logo outline being clipped in the topbar
The header title track hides its overflow and sits flush with the logo on three sides, so a box-shadow ring drawn outside the element lost its left, top and bottom edges. Draw the ring as a border instead: it stays inside the element's own box, and border-box sizing keeps the logo at 32px. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 76a1d2a commit 76b0794

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎docs-site/SiteTitle.astro‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,20 @@ import logo from '../assets/glaze.svg?url';
3030
/*
3131
The logo is drawn with a black outer ring, which disappears against the
3232
dark surface. Trace the circle in white so the silhouette survives.
33+
34+
The ring is a border rather than a box-shadow so it stays inside the
35+
element's own box: the header title track clips its overflow, and an
36+
outer ring loses its left, top and bottom edges there.
3337
*/
3438
[data-theme='dark'] .glaze-site-title img {
39+
box-sizing: border-box;
40+
border: 1px solid #fff;
3541
border-radius: 50%;
36-
box-shadow: 0 0 0 1px #fff;
3742
}
3843

3944
[data-theme='dark'] .sl-markdown-content img[src='assets/glaze.svg'] {
45+
box-sizing: border-box;
46+
border: 2px solid #fff;
4047
border-radius: 50%;
41-
box-shadow: 0 0 0 2px #fff;
4248
}
4349
</style>

0 commit comments

Comments
 (0)