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

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit committed Feb 1, 2019
1 parent cfb708b commit a43f281
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
34 changes: 34 additions & 0 deletions css/style.scrollbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

/* scrollbar table
========================================================================== */
.scrollbar.table {
position: relative;
height: 200px;
overflow: auto;
}

.ps__thumb-x {
height: 7px;
}

.ps__rail-x:hover > .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x.ps--clicking .ps__thumb-x {
height: 7px;
}

.ps__thumb-x {
background: #e0e0e0;
}

.ps__rail-x:hover > .ps__thumb-x,
.ps__rail-x:focus > .ps__thumb-x,
.ps__rail-x.ps--clicking .ps__thumb-x {
background: #e0e0e0;
}

.ps .ps__rail-x:hover,
.ps .ps__rail-x:focus,
.ps .ps__rail-x.ps--clicking {
background: none;
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "css-ui-dashboard",
"version": "1.1.1",
"version": "1.1.2",
"description": "Simple and fast dashboard template.",
"main": "css/style.dashboard.css",
"repository": {
Expand Down
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,23 @@ javascript libraries and plugins.
</script>
```

Activating the scrollbar on the tables.

```html
<link rel="stylesheet" href="path/to/style.scrollbar.css">
<div class="scrollbar table">
<table>
...
</table>
</div>
<script>
$(function() {
$('.scrollbar.table').each(function() {
new PerfectScrollbar($(this)[0]);
});
});
</script>
```

Enjoy dashboard.

0 comments on commit a43f281

Please sign in to comment.