aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/ScrollbarOverlayContainer.astro
blob: d8d315d802e9a57acc50cb28982c293f31fcbf0c (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>