Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Removed CSS z-index property and stopped modal plugin from changing z…
Browse files Browse the repository at this point in the history
…index property directly.

Modal plugin now uses a base zIndex of 16000 by default i.e. 1000 more than the default
zIndex for normal qTips, rather than decrementing the base zIndex of normal qTips.
  • Loading branch information
Craga89 committed Dec 10, 2011
1 parent bb01174 commit 689a3b2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Dec 8 18:43:08 2011 +0000
* Date: Thu Dec 8 19:20:55 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down
4 changes: 1 addition & 3 deletions dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Dec 8 18:43:08 2011 +0000
* Date: Thu Dec 8 19:20:55 2011 +0000
*/

/* Core qTip styles */
Expand All @@ -24,8 +24,6 @@

font-size: 10.5px;
line-height: 12px;

z-index: 15000;
}

/* Fluid class for determining actual width in IE */
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Dec 8 18:43:08 2011 +0000
* Date: Thu Dec 8 19:20:55 2011 +0000
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -2578,7 +2578,7 @@ PLUGINS.modal.sanitize = function(opts) {
};

// Base z-index for all modal tooltips (use qTip core z-index as a base)
PLUGINS.modal.zindex = QTIP.zindex -= 200;
PLUGINS.modal.zindex = QTIP.zindex + 1000;

// Extend original api defaults
$.extend(TRUE, QTIP.defaults, {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/core.css
Expand Up @@ -10,8 +10,6 @@

font-size: 10.5px;
line-height: 12px;

z-index: 15000;
}

/* Fluid class for determining actual width in IE */
Expand Down
2 changes: 1 addition & 1 deletion src/modal/modal.js
Expand Up @@ -265,7 +265,7 @@ PLUGINS.modal.sanitize = function(opts) {
};

// Base z-index for all modal tooltips (use qTip core z-index as a base)
PLUGINS.modal.zindex = QTIP.zindex -= 200;
PLUGINS.modal.zindex = QTIP.zindex + 1000;

// Extend original api defaults
$.extend(TRUE, QTIP.defaults, {
Expand Down

0 comments on commit 689a3b2

Please sign in to comment.