aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/ScrollbarOverlayContainer.astro
blob: 84bedf59cf75777b8fb259b2c50da4e3ca42dd21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
import type { HTMLAttributes } from 'astro/types';

interface Props extends HTMLAttributes<'div'> {

}

const { ...attr } = Astro.props;
---

	<div {...attr}>
		<slot></slot>
	</div>

		<style>
@media (hover: hover) {
    div {

    }

    div::-webkit-scrollbar {
        display: block;
        width: 5px;
    }

    div::-webkit-scrollbar:hover {
        opacity: 1;
    }

    div::-webkit-scrollbar-button {
        display: none;
    }

    div::-webkit-scrollbar-track {
        background-color: #00000000;
    }

    div::-webkit-scrollbar-track-piece {
        background-color: #00000000;
    }

    div::-webkit-scrollbar-thumb {
        background-color: #00000000;
        border-radius: 24px;
    }

    div::-webkit-scrollbar-thumb:hover {
        background-color: #00000040;
    }
}
</style>