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

Commit 6900a4c

Browse files
committed
Update
1 parent a43f281 commit 6900a4c

File tree

4 files changed

+38
-5
lines changed

4 files changed

+38
-5
lines changed

css/style.dashboard.css

+8
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,14 @@ table td.action-buttons a:hover {
162162
color: #9e9e9e;
163163
}
164164

165+
/* message
166+
========================================================================== */
167+
.close-message {
168+
float: right;
169+
cursor: pointer;
170+
margin-top: -2px;
171+
}
172+
165173
@media only screen and (min-width: 768px) {
166174

167175
.content .box {

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

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

readme.md

+28-3
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,15 @@ javascript libraries and plugins.
160160
Activating the scrollbar on the tables.
161161

162162
```html
163+
<!-- css scrollbar -->
163164
<link rel="stylesheet" href="path/to/style.scrollbar.css">
165+
166+
<!-- html use class -->
164167
<div class="scrollbar table">
165-
<table>
166-
...
167-
</table>
168+
<table>...</table>
168169
</div>
170+
171+
<!-- javascript scrollbar -->
169172
<script>
170173
$(function() {
171174
@@ -176,4 +179,26 @@ Activating the scrollbar on the tables.
176179
</script>
177180
```
178181

182+
How to close the displayed message.
183+
184+
```html
185+
<!-- html message -->
186+
<p class="message info">
187+
Message...
188+
<span class="close-message">
189+
<i class="fa fa-times" aria-hidden="true"></i>
190+
</span>
191+
</p>
192+
193+
<!-- javascript close message -->
194+
<script>
195+
$(function() {
196+
197+
$('.close-message').on('click', function() {
198+
$(this).parent().fadeOut('slow');
199+
});
200+
});
201+
</script>
202+
```
203+
179204
Enjoy dashboard.

0 commit comments

Comments
 (0)