Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit a43f281

Browse files
committed
Update
1 parent cfb708b commit a43f281

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

css/style.scrollbar.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
/* scrollbar table
3+
========================================================================== */
4+
.scrollbar.table {
5+
position: relative;
6+
height: 200px;
7+
overflow: auto;
8+
}
9+
10+
.ps__thumb-x {
11+
height: 7px;
12+
}
13+
14+
.ps__rail-x:hover > .ps__thumb-x,
15+
.ps__rail-x:focus > .ps__thumb-x,
16+
.ps__rail-x.ps--clicking .ps__thumb-x {
17+
height: 7px;
18+
}
19+
20+
.ps__thumb-x {
21+
background: #e0e0e0;
22+
}
23+
24+
.ps__rail-x:hover > .ps__thumb-x,
25+
.ps__rail-x:focus > .ps__thumb-x,
26+
.ps__rail-x.ps--clicking .ps__thumb-x {
27+
background: #e0e0e0;
28+
}
29+
30+
.ps .ps__rail-x:hover,
31+
.ps .ps__rail-x:focus,
32+
.ps .ps__rail-x.ps--clicking {
33+
background: none;
34+
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-ui-dashboard",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Simple and fast dashboard template.",
55
"main": "css/style.dashboard.css",
66
"repository": {

readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,23 @@ javascript libraries and plugins.
157157
</script>
158158
```
159159

160+
Activating the scrollbar on the tables.
161+
162+
```html
163+
<link rel="stylesheet" href="path/to/style.scrollbar.css">
164+
<div class="scrollbar table">
165+
<table>
166+
...
167+
</table>
168+
</div>
169+
<script>
170+
$(function() {
171+
172+
$('.scrollbar.table').each(function() {
173+
new PerfectScrollbar($(this)[0]);
174+
});
175+
});
176+
</script>
177+
```
178+
160179
Enjoy dashboard.

0 commit comments

Comments
 (0)