feat(gallery): custom scrollbar
This commit is contained in:
@@ -248,6 +248,34 @@ onMounted(() => {
|
||||
</UScrollArea>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
*::-webkit-scrollbar-track {
|
||||
border: 1px solid #000000;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: oklch(26.9% 0 0); /* neutral-800 */
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: oklch(37.1% 0 0); /* neutral-700 */
|
||||
}
|
||||
|
||||
@-moz-document url-prefix() {
|
||||
* {
|
||||
scrollbar-width: auto;
|
||||
scrollbar-color: oklch(37.1% 0 0) #000000;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
.no-scroll :deep(*) {
|
||||
pointer-events: none !important;
|
||||
|
||||
Reference in New Issue
Block a user