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 a43f281 commit 6900a4c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
8 changes: 8 additions & 0 deletions css/style.dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ table td.action-buttons a:hover {
color: #9e9e9e;
}

/* message
========================================================================== */
.close-message {
float: right;
cursor: pointer;
margin-top: -2px;
}

@media only screen and (min-width: 768px) {

.content .box {
Expand Down
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.2",
"version": "1.1.3",
"description": "Simple and fast dashboard template.",
"main": "css/style.dashboard.css",
"repository": {
Expand Down
31 changes: 28 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,15 @@ javascript libraries and plugins.
Activating the scrollbar on the tables.

```html
<!-- css scrollbar -->
<link rel="stylesheet" href="path/to/style.scrollbar.css">

<!-- html use class -->
<div class="scrollbar table">
<table>
...
</table>
<table>...</table>
</div>

<!-- javascript scrollbar -->
<script>
$(function() {
Expand All @@ -176,4 +179,26 @@ Activating the scrollbar on the tables.
</script>
```

How to close the displayed message.

```html
<!-- html message -->
<p class="message info">
Message...
<span class="close-message">
<i class="fa fa-times" aria-hidden="true"></i>
</span>
</p>

<!-- javascript close message -->
<script>
$(function() {
$('.close-message').on('click', function() {
$(this).parent().fadeOut('slow');
});
});
</script>
```

Enjoy dashboard.

0 comments on commit 6900a4c

Please sign in to comment.