Stand the pin upright once a tab is pinned

The pinned state and the hover affordance drew the same slanted pin, so the
only difference was opacity. Rotating the pinned one to vertical separates
"this is pinned" from "click to pin", and the short transition reads as the
toggle landing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
max
2026-09-11 16:37:57 +02:00
co-authored by Claude Opus 5
parent c6bd7485f9
commit 8eae35af3e
+10
View File
@@ -160,6 +160,16 @@ button.marker:focus-visible {
outline-offset: -1px;
}
/* The pin leans over while it is only an offer; once the tab is really pinned it
stands upright, so the state reads apart from the hover affordance. */
button.pin svg {
transition: transform 80ms ease-out;
}
button.pin.on svg {
transform: rotate(-45deg);
}
/* An unsaved file shows a dot, which the close button replaces on hover. */
.dirty {
flex: 0 0 auto;