| 16825 |
efrain |
1 |
/*
|
|
|
2 |
* Container style
|
|
|
3 |
*/
|
|
|
4 |
.ps {
|
|
|
5 |
overflow: hidden !important;
|
|
|
6 |
overflow-anchor: none;
|
|
|
7 |
-ms-overflow-style: none;
|
|
|
8 |
touch-action: auto;
|
|
|
9 |
-ms-touch-action: auto;
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
/*
|
|
|
13 |
* Scrollbar rail styles
|
|
|
14 |
*/
|
|
|
15 |
.ps__rail-x {
|
|
|
16 |
display: none;
|
|
|
17 |
opacity: 0;
|
|
|
18 |
transition: background-color 0.2s linear, opacity 0.2s linear;
|
|
|
19 |
-webkit-transition: background-color 0.2s linear, opacity 0.2s linear;
|
|
|
20 |
height: 15px;
|
|
|
21 |
/* there must be 'bottom' or 'top' for ps__rail-x */
|
|
|
22 |
bottom: 0px;
|
|
|
23 |
/* please don't change 'position' */
|
|
|
24 |
position: absolute;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
.ps__rail-y {
|
|
|
28 |
display: none;
|
|
|
29 |
opacity: 0;
|
|
|
30 |
transition: background-color 0.2s linear, opacity 0.2s linear;
|
|
|
31 |
-webkit-transition: background-color 0.2s linear, opacity 0.2s linear;
|
|
|
32 |
width: 15px;
|
|
|
33 |
/* there must be 'right' or 'left' for ps__rail-y */
|
|
|
34 |
right: 0;
|
|
|
35 |
/* please don't change 'position' */
|
|
|
36 |
position: absolute;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
.ps--active-x > .ps__rail-x,
|
|
|
40 |
.ps--active-y > .ps__rail-y {
|
|
|
41 |
display: block;
|
|
|
42 |
background-color: transparent;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
.ps:hover > .ps__rail-x,
|
|
|
46 |
.ps:hover > .ps__rail-y,
|
|
|
47 |
.ps--focus > .ps__rail-x,
|
|
|
48 |
.ps--focus > .ps__rail-y,
|
|
|
49 |
.ps--scrolling-x > .ps__rail-x,
|
|
|
50 |
.ps--scrolling-y > .ps__rail-y {
|
|
|
51 |
opacity: 0.6;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
.ps .ps__rail-x:hover,
|
|
|
55 |
.ps .ps__rail-y:hover,
|
|
|
56 |
.ps .ps__rail-x:focus,
|
|
|
57 |
.ps .ps__rail-y:focus,
|
|
|
58 |
.ps .ps__rail-x.ps--clicking,
|
|
|
59 |
.ps .ps__rail-y.ps--clicking {
|
|
|
60 |
background-color: #eee;
|
|
|
61 |
opacity: 0.9;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
/*
|
|
|
65 |
* Scrollbar thumb styles
|
|
|
66 |
*/
|
|
|
67 |
.ps__thumb-x {
|
|
|
68 |
background-color: #aaa;
|
|
|
69 |
border-radius: 6px;
|
|
|
70 |
transition: background-color 0.2s linear, height 0.2s ease-in-out;
|
|
|
71 |
-webkit-transition: background-color 0.2s linear, height 0.2s ease-in-out;
|
|
|
72 |
height: 6px;
|
|
|
73 |
/* there must be 'bottom' for ps__thumb-x */
|
|
|
74 |
bottom: 2px;
|
|
|
75 |
/* please don't change 'position' */
|
|
|
76 |
position: absolute;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
.ps__thumb-y {
|
|
|
80 |
background-color: #aaa;
|
|
|
81 |
border-radius: 6px;
|
|
|
82 |
transition: background-color 0.2s linear, width 0.2s ease-in-out;
|
|
|
83 |
-webkit-transition: background-color 0.2s linear, width 0.2s ease-in-out;
|
|
|
84 |
width: 6px;
|
|
|
85 |
/* there must be 'right' for ps__thumb-y */
|
|
|
86 |
right: 2px;
|
|
|
87 |
/* please don't change 'position' */
|
|
|
88 |
position: absolute;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
.ps__rail-x:hover > .ps__thumb-x,
|
|
|
92 |
.ps__rail-x:focus > .ps__thumb-x,
|
|
|
93 |
.ps__rail-x.ps--clicking .ps__thumb-x {
|
|
|
94 |
background-color: #999;
|
|
|
95 |
height: 11px;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
.ps__rail-y:hover > .ps__thumb-y,
|
|
|
99 |
.ps__rail-y:focus > .ps__thumb-y,
|
|
|
100 |
.ps__rail-y.ps--clicking .ps__thumb-y {
|
|
|
101 |
background-color: #999;
|
|
|
102 |
width: 11px;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
/* MS supports */
|
|
|
106 |
@supports (-ms-overflow-style: none) {
|
|
|
107 |
.ps {
|
|
|
108 |
overflow: auto !important;
|
|
|
109 |
}
|
|
|
110 |
}
|
|
|
111 |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
|
112 |
.ps {
|
|
|
113 |
overflow: auto !important;
|
|
|
114 |
}
|
|
|
115 |
}
|
|
|
116 |
.ps {
|
|
|
117 |
position: relative;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
.ps__rail-x {
|
|
|
121 |
height: 0.25rem;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
.ps__rail-y {
|
|
|
125 |
width: 0.25rem;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
.ps__rail-x,
|
|
|
129 |
.ps__rail-y,
|
|
|
130 |
.ps__thumb-x,
|
|
|
131 |
.ps__thumb-y {
|
|
|
132 |
border-radius: 10rem;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
.ps__rail-x:hover,
|
|
|
136 |
.ps__rail-x:focus,
|
|
|
137 |
.ps__rail-x.ps--clicking,
|
|
|
138 |
.ps__rail-x:hover > .ps__thumb-x,
|
|
|
139 |
.ps__rail-x:focus > .ps__thumb-x,
|
|
|
140 |
.ps__rail-x.ps--clicking > .ps__thumb-x {
|
|
|
141 |
height: 0.375rem;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
.ps__rail-y:hover,
|
|
|
145 |
.ps__rail-y:focus,
|
|
|
146 |
.ps__rail-y.ps--clicking,
|
|
|
147 |
.ps__rail-y:hover > .ps__thumb-y,
|
|
|
148 |
.ps__rail-y:focus > .ps__thumb-y,
|
|
|
149 |
.ps__rail-y.ps--clicking > .ps__thumb-y {
|
|
|
150 |
width: 0.375rem;
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
.ps__thumb-x {
|
|
|
154 |
height: 0.25rem;
|
|
|
155 |
bottom: 0;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
.ps__thumb-y {
|
|
|
159 |
width: 0.25rem;
|
|
|
160 |
right: 0;
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
.light-style .ps__thumb-x,
|
|
|
164 |
.light-style .ps__thumb-y {
|
|
|
165 |
background-color: rgba(67, 89, 113, 0.4);
|
|
|
166 |
}
|
|
|
167 |
.light-style .ps__rail-x:hover,
|
|
|
168 |
.light-style .ps__rail-y:hover,
|
|
|
169 |
.light-style .ps__rail-x:focus,
|
|
|
170 |
.light-style .ps__rail-y:focus,
|
|
|
171 |
.light-style .ps__rail-x.ps--clicking,
|
|
|
172 |
.light-style .ps__rail-y.ps--clicking {
|
|
|
173 |
background-color: rgba(67, 89, 113, 0.2);
|
|
|
174 |
}
|
|
|
175 |
.light-style .ps__rail-x:hover > .ps__thumb-x,
|
|
|
176 |
.light-style .ps__rail-y:hover > .ps__thumb-y,
|
|
|
177 |
.light-style .ps__rail-x:focus > .ps__thumb-x,
|
|
|
178 |
.light-style .ps__rail-y:focus > .ps__thumb-y,
|
|
|
179 |
.light-style .ps__rail-x.ps--clicking > .ps__thumb-x,
|
|
|
180 |
.light-style .ps__rail-y.ps--clicking > .ps__thumb-y {
|
|
|
181 |
background-color: rgba(67, 89, 113, 0.7);
|
|
|
182 |
}
|
|
|
183 |
.light-style .ps-inverted .ps__rail-x:hover,
|
|
|
184 |
.light-style .ps-inverted .ps__rail-y:hover,
|
|
|
185 |
.light-style .ps-inverted .ps__rail-x:focus,
|
|
|
186 |
.light-style .ps-inverted .ps__rail-y:focus,
|
|
|
187 |
.light-style .ps-inverted .ps__rail-x.ps--clicking,
|
|
|
188 |
.light-style .ps-inverted .ps__rail-y.ps--clicking {
|
|
|
189 |
background-color: rgba(255, 255, 255, 0.5);
|
|
|
190 |
}
|
|
|
191 |
.light-style .ps-inverted .ps__thumb-x,
|
|
|
192 |
.light-style .ps-inverted .ps__thumb-y {
|
|
|
193 |
background-color: rgba(255, 255, 255, 0.7);
|
|
|
194 |
}
|
|
|
195 |
.light-style .ps-inverted .ps__rail-x:hover > .ps__thumb-x,
|
|
|
196 |
.light-style .ps-inverted .ps__rail-y:hover > .ps__thumb-y,
|
|
|
197 |
.light-style .ps-inverted .ps__rail-x:focus > .ps__thumb-x,
|
|
|
198 |
.light-style .ps-inverted .ps__rail-y:focus > .ps__thumb-y,
|
|
|
199 |
.light-style .ps-inverted .ps__rail-x.ps--clicking > .ps__thumb-x,
|
|
|
200 |
.light-style .ps-inverted .ps__rail-y.ps--clicking > .ps__thumb-y {
|
|
|
201 |
background-color: #fff;
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
@supports (-moz-appearance: none) {
|
|
|
205 |
#both-scrollbars-example {
|
|
|
206 |
max-width: 1080px;
|
|
|
207 |
margin: 0 auto;
|
|
|
208 |
padding-left: 0;
|
|
|
209 |
padding-right: 0;
|
|
|
210 |
}
|
|
|
211 |
}
|