Skip to content

Commit

Permalink
Notification fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radogado committed May 13, 2023
1 parent 2a4431f commit 266a394
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 19 deletions.
11 changes: 4 additions & 7 deletions components/notify/notify.css

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

2 changes: 1 addition & 1 deletion components/notify/notify.css.map

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

6 changes: 3 additions & 3 deletions components/notify/notify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
content: "";
}

&--fixed {
// &--fixed {
font-weight: 500;
position: fixed;
left: 0;
right: 0;
z-index: 2;
}
z-index: 3;
// }

&:focus:focus-visible {
outline-offset: -3px;
Expand Down
2 changes: 1 addition & 1 deletion dist/niui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/niui.min.css.size
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14339
14345
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3768,13 +3768,13 @@ <h2 class="section-title">Notification bar</h2>
</div>
<br>
<button class="n-btn" onclick="nui.notify('Notified.');">Notify me now</button>
<button class="n-btn" onclick="nui.notify('Fixed.', 'fixed');">Fixed notification bar</button>
<!-- <button class="n-btn" onclick="nui.notify('Fixed.', 'fixed');">Fixed notification bar</button> -->
<h3>Options</h3>
<ul class="n-list">
<li>Fixed on top:
<!-- <li>Fixed on top:
<pre>&lt;div class="n-notify n-notify--fixed"&gt;</pre> or
<pre>nui.notify("Message", "fixed");</pre>
</li>
</li> -->
<li>
<pre>nui.notify("Text", "timeout")</pre> to hide it automatically after 2 seconds
</li>
Expand Down
2 changes: 1 addition & 1 deletion niui-wp/niui-wp.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion niui-wp/niui-wp.min.css.map

Large diffs are not rendered by default.

0 comments on commit 266a394

Please sign in to comment.