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

Commit bdcdf41

Browse files
committed
Update
1 parent 0b86ac7 commit bdcdf41

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

css/style.scrollbar.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
========================================================================== */
44
.scrollbar.table {
55
position: relative;
6-
overflow: auto;
6+
}
7+
8+
.scrollbar.table table th {
9+
background: #fff;
710
}
811

912
.ps__rail-x {

package-lock.json

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-ui-dashboard",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "Simple and fast dashboard template.",
55
"main": "css/style.dashboard.css",
66
"repository": {
@@ -20,7 +20,8 @@
2020
"css-ui-dropdown-menu": "^1.2.0",
2121
"css-ui-responsive-menu": "^3.1.3",
2222
"css-ui-simple": "^2.5.2",
23-
"nanobar": "^0.4.2"
23+
"nanobar": "^0.4.2",
24+
"floatthead": "^2.1.3"
2425
},
2526
"homepage": "https://github.com/css-ui/dashboard#readme"
2627
}

readme.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,31 @@ Activating the scrollbar on the tables.
169169
</div>
170170

171171
<!-- javascript scrollbar -->
172+
<script src="path/to/jquery.floatThead.js"></script>
172173
<script>
173174
$(function() {
174175
175-
$('.scrollbar.table').each(function() {
176+
var table = $('table');
177+
var scrollbar = '.scrollbar.table';
178+
$(scrollbar).each(function() {
176179
new PerfectScrollbar($(this)[0]);
177180
});
181+
table.floatThead({
182+
scrollContainer: function(table) {
183+
return table.closest(scrollbar);
184+
}
185+
});
178186
});
179187
</script>
180188
```
181189

190+
Fixed set heights for tables are set in this class.
191+
```css
192+
.scrollbar.table {
193+
height: 200px;
194+
}
195+
```
196+
182197
How to close the displayed message.
183198

184199
```html

0 commit comments

Comments
 (0)