forked from abner/for-legacy-web
feat: provide and consume scroll offsets
This commit is contained in:
@@ -13,13 +13,32 @@
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
min-height: 15px;
|
||||
min-width: 15px;
|
||||
min-height: 30px;
|
||||
min-width: 30px;
|
||||
|
||||
background-clip: content-box;
|
||||
background: var(--scrollbar-thumb);
|
||||
}
|
||||
|
||||
[data-scroll-offset] {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
[data-scroll-offset="with-padding"],
|
||||
[data-scroll-offset] .with-padding {
|
||||
padding-top: var(--header-height);
|
||||
}
|
||||
|
||||
[data-scroll-offset]::-webkit-scrollbar-thumb {
|
||||
background-clip: content-box;
|
||||
border-top: var(--header-height) solid transparent;
|
||||
}
|
||||
|
||||
[data-avoids-navigation]::-webkit-scrollbar-thumb {
|
||||
background-clip: content-box;
|
||||
border-bottom: var(--effective-bottom-offset) solid transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user