|
| 1 | +/* custom stylesheet */ |
| 2 | +.wrapper.mac + .scrollBarContainer{ |
| 3 | + background-color: transparent; |
| 4 | +} |
| 5 | +.scrollBarContainer.animate .scrollBar{ |
| 6 | + transition: 2s opacity ease; |
| 7 | + opacity: 0; |
| 8 | +} |
| 9 | +.scrollBarContainer:hover .scrollBar{ |
| 10 | + opacity: 0.5; |
| 11 | + transition: none; |
| 12 | +} |
| 13 | +.unselectable { |
| 14 | + -webkit-user-select: none; |
| 15 | + -khtml-user-select: none; |
| 16 | + -moz-user-select: -moz-none; |
| 17 | + -o-user-select: none; |
| 18 | + user-select: none; |
| 19 | +} |
| 20 | +/* end of custom stylesheet */ |
| 21 | + |
| 22 | +/******************************************************/ |
| 23 | +/**************** important ***************************/ |
| 24 | +/******************************************************/ |
| 25 | + |
| 26 | +/* slim scroll attached stylesheet */ |
1 | 27 | .contentHolder { |
| 28 | + /* custom css here */ |
| 29 | + border: 1px solid #CCC; |
| 30 | + margin-top: 20px; |
| 31 | + /* end of custom css */ |
| 32 | + /* slim scroll necessary css properties */ |
2 | 33 | display: inline-block; |
3 | | - line-height: 15px; |
4 | 34 | overflow: hidden; |
5 | 35 | position: relative; |
6 | 36 | height: 200px; |
7 | 37 | width: 380px; |
8 | | - border: 1px solid #CCC; |
9 | | - margin-top: 20px; |
| 38 | + /* end of slim scroll necessary css properties */ |
| 39 | + /* [end] don't override the above properties here */ |
10 | 40 | } |
11 | 41 | .wrapper { |
| 42 | + /* custom css here */ |
| 43 | + padding: 5px; |
| 44 | + /* end of custom css */ |
| 45 | + /* slim scroll necessary css properties */ |
12 | 46 | overflow: auto; |
13 | 47 | position: absolute; |
14 | 48 | left: 0px; |
15 | 49 | top: 0px; |
16 | 50 | right: -18px; |
17 | 51 | bottom: 0px; |
18 | | - padding: 5px; |
19 | 52 | padding-right: 3px; |
| 53 | + /* end of slim scroll necessary css properties */ |
| 54 | + /* [end] don't override the above properties here */ |
20 | 55 | } |
21 | 56 | .scrollBarContainer{ |
| 57 | + /* custom css here */ |
22 | 58 | background-color: #E1E1E1; |
| 59 | + /* end of custom css */ |
| 60 | + /* slim scroll necessary css properties */ |
23 | 61 | position: absolute; |
24 | 62 | top: 0px; |
25 | 63 | bottom: 0px; |
26 | 64 | right: 0px; |
27 | 65 | width: 5px; |
28 | 66 | cursor: pointer; |
| 67 | + /* end of slim scroll necessary css properties */ |
| 68 | + /* [end] don't override the above properties here */ |
29 | 69 | } |
30 | 70 | .scrollBar { |
| 71 | + /* custom css here */ |
31 | 72 | background-color: #999999; |
| 73 | + /* end of custom css */ |
| 74 | + /* slim scroll necessary css properties */ |
32 | 75 | border-radius: 10px; |
33 | 76 | opacity: 0.5; |
34 | 77 | position: absolute; |
35 | 78 | right: 0px; |
36 | 79 | left: 0px; |
37 | 80 | top: 0px; |
| 81 | + /* end of slim scroll necessary css properties */ |
| 82 | + /* [end] don't override the above properties here */ |
38 | 83 | } |
39 | | -.wrapper.mac + .scrollBarContainer{ |
40 | | - background-color: transparent; |
41 | | -} |
42 | | -.scrollBarContainer.animate .scrollBar{ |
43 | | - transition: 2s opacity ease; |
44 | | - opacity: 0; |
45 | | -} |
46 | | -.scrollBarContainer:hover .scrollBar{ |
47 | | - opacity: 0.5; |
48 | | - transition: none; |
49 | | -} |
50 | | -.unselectable { |
51 | | - -webkit-user-select: none; |
52 | | - -khtml-user-select: none; |
53 | | - -moz-user-select: -moz-none; |
54 | | - -o-user-select: none; |
55 | | - user-select: none; |
56 | | -} |
| 84 | + |
| 85 | +/* end of slimscroll attached stylesheet */ |
| 86 | +/* [Note]: I suggest to add this important stylesheet below of all stylesheets in your html file */ |
0 commit comments