summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_scrollbar.scss
blob: 5c8f06a2df6c9a961793ab22c1bf76d04bda2fa0 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@charset 'UTF-8';

::-webkit-scrollbar {
    height: 8px; // for horizontal scrollbars
    width: 8px;  // for vertical scrollbars
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .1);
}

::-webkit-scrollbar-thumb {
    @include border-radius($border-rad * 2);
    background: rgba(0, 0, 0, .2);
}

body {
    &.app__body {
        scrollbar-3dlight-color: #7D7E94;
        scrollbar-arrow-color: #C1C1D1;
        scrollbar-darkshadow-color: #2D2C4D;
        scrollbar-face-color: rgba(0, 0, 0, .1);
        scrollbar-highlight-color: #7D7E94;
        scrollbar-shadow-color: #2D2C4D;
        scrollbar-track-color: rgba(0, 0, 0, .1);
    }

    .ps {
        > .ps__scrollbar-y-rail {
            > .ps__scrollbar-y {
                width: 6px !important;
            }
        }

        &:hover {
            > .ps__scrollbar-y-rail {
                &:hover {
                    background: transparent;
                }
            }
        }
    }
}

.scrollbar--horizontal,
.scrollbar--vertical {
    @include border-radius(2px);
    @include alpha-property(background-color, $black, .5);
}

.scrollbar--view {
    -ms-overflow-style: none;

    .browser--ie & {
        margin: 0 !important;
    }
}


.ps-container {
    &:hover {
        .ps-scrollbar-x-rail,
        .ps-scrollbar-y-rail {
            @include opacity(.3);
        }
    }

    > .ps-scrollbar-y-rail {
        width: 10px;

        &:hover {
            .ps-scrollbar-y {
                @include opacity(.6);
                width: 6px;
            }
        }
    }
}