fix: thin overlay scrollbar to equalize left/right margins
Uses scrollbar-width:thin + 6px webkit scrollbar to minimize layout shift from the default ~15px scrollbar. Keeps original design intact while reducing visual asymmetry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>claude/bold-hawking
parent
c6b39e3706
commit
9a141f3603
|
|
@ -62,6 +62,21 @@
|
|||
}
|
||||
|
||||
@layer base {
|
||||
/* Thin overlay scrollbar — doesn't consume layout space */
|
||||
html {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: rgba(0,0,0,0.15) transparent;
|
||||
}
|
||||
html::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
html::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
html::-webkit-scrollbar-thumb {
|
||||
background: rgba(0,0,0,0.15);
|
||||
border-radius: 3px;
|
||||
}
|
||||
body {
|
||||
@apply font-sans text-slate-800 bg-slate-50 antialiased;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue