Skip to content

Commit

Permalink
Upload v1.0.2a
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelodolza committed Nov 23, 2016
1 parent 3caa9db commit 5a1bfb2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ___
- **v1.0.2**
- ![alt text][new] Original stylus source files - *Implemented.*
- ![alt text][new] Folder structure - *Modified.*
- ![alt text][new] Larger zIndex and Option to set it - *Implemented.*
- ![alt text][bug] Flip animation - *Fixed.*
- ![alt text][bug] Wrong positioning of internal elements - *Fixed.*

Expand Down Expand Up @@ -61,6 +62,7 @@ iziToast.show({
iconColor: '',
image: '',
imageWidth: 50,
zindex: 99999,
layout: 1,
balloon: false,
close: true,
Expand Down Expand Up @@ -95,6 +97,7 @@ Argument | Default Value | Description
**iconColor** | *''* | Icon color.
**image** | *''* | Cover image.
**imageWidth** | *50* | Width of cover image.
**zindex** | *99999* | The z-index CSS attribute of the toast.
**layout** | *1* | It can be 1 or 2, or use another layout, creating the class like this: ".iziToast-layout3"
**balloon** | *false* | Applies a balloon like toast.
**close** | *true* | Show "x" close button
Expand Down
1 change: 0 additions & 1 deletion dist/css/iziToast.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
}
.iziToast-wrapper {
position: fixed;
z-index: 999;
width: 100%;
pointer-events: none;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/iziToast.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/js/iziToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
iconColor: '',
image: '',
imageWidth: 50,
zindex: 99999,
layout: 1,
balloon: false,
close: true,
Expand Down Expand Up @@ -453,6 +454,12 @@
$toast.appendChild($cover);
}

if (!isNaN(settings.zindex)) {
$toast.style.zIndex = settings.zindex;
} else {
console.warn("["+PLUGIN_NAME+"] Invalid zIndex.");
}

var $buttonClose;
if(settings.close){
$buttonClose = document.createElement("button");
Expand Down
10 changes: 5 additions & 5 deletions dist/js/iziToast.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "izitoast",
"version": "1.0.2",
"version": "1.0.2a",
"description": "Elegant, responsive, flexible and lightweight notification plugin with no dependencies.",
"readmeFilename": "README.md",
"main": "js/iziToast.js",
Expand Down
1 change: 0 additions & 1 deletion src/css/toast.styl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@

.iziToast-wrapper
position fixed
z-index 999
width 100%
pointer-events none
display flex
Expand Down

0 comments on commit 5a1bfb2

Please sign in to comment.