summaryrefslogtreecommitdiffstats
path: root/client/styles/fancy-scrollbar.styl
blob: c7a30018df09005a42c790946eedbffca3156de4 (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
.fancy-scrollbar
  -webkit-overflow-scrolling: touch

  .fancy-scrollbar::-webkit-scrollbar
    height: 9px
    width: 9px

  &::-webkit-scrollbar-button:start:decrement,
  &::-webkit-scrollbar-button:end:increment
    background: transparent
    display: none

  &::-webkit-scrollbar-track-piece
    background: #dbdbdb

    &:vertical:start
      border-top-left-radius: 5px
      border-top-right-radius: 5px
      border-bottom-right-radius: 0
      border-bottom-left-radius: 0

    &:vertical:end
      border-top-left-radius: 0
      border-top-right-radius: 0
      border-bottom-right-radius: 5px
      border-bottom-left-radius: 5px

    &:horizontal:start
      border-top-left-radius: 5px
      border-top-right-radius: 0
      border-bottom-right-radius: 0
      border-bottom-left-radius: 5px

    &:horizontal:end
      border-top-left-radius: 0
      border-top-right-radius: 5px
      border-bottom-right-radius: 5px
      border-bottom-left-radius: 0

  &::-webkit-scrollbar-thumb:vertical,
  &::-webkit-scrollbar-thumb:horizontal
    background: #c2c2c2
    border-radius: 5px
    display: block
    height: 50px