File size: 1,790 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
79
80
81
import { createGlobalStyle } from 'styled-components';
import colors from '../utils/colors';

export default createGlobalStyle`
  /*
   * Default
   */
  .scrollbar-default::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }

  .scrollbar-default::-webkit-scrollbar-corner {
    background: none;
    border: none;
  }

  .scrollbar-default::-webkit-scrollbar-thumb,
  .scrollbar-default::-webkit-scrollbar-track {
    background-clip: padding-box;
    border-radius: 7px;
    border-style: solid;
    border-width: 3px;
  }

  .scrollbar-default::-webkit-scrollbar-thumb {
    background-color: ${colors.scrollbarThumbBackground};
    border-color: ${colors.grayLight};
  }
  .scrollbar-default::-webkit-scrollbar-track {
    background-color: ${colors.scrollbarTrackBackground};
    border-color: transparent;
  }

  /*
   * Tiny
   */
  .scrollbar-tiny::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .scrollbar-tiny::-webkit-scrollbar-thumb,
  .scrollbar-tiny::-webkit-scrollbar-track {
    background-clip: padding-box;
    border-radius: 7px;
    border-style: solid;
  }

  .scrollbar-tiny::-webkit-scrollbar-thumb {
    background-color: ${colors.scrollbarTinyThumbBackground};
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: move;
  }

  .scrollbar-tiny::-webkit-scrollbar-track {
    background-color: transparent;
    border: 2px solid transparent;
  }

  /*
   * Auto Hide
   */
  .scrollbar-autoHide::-webkit-scrollbar-thumb,
  .scrollbar-autoHide::-webkit-scrollbar-track {
    visibility: hidden;
  }
  .scrollbar-autoHide:hover::-webkit-scrollbar-thumb,
  .scrollbar-autoHide:hover::-webkit-scrollbar-track {
    visibility: visible;
  }

  /*
   * Invisible
   */
  .scrollbar-invisible::-webkit-scrollbar {
    width: 0;
  }
`;