From 12d3c2fe74bbe2570e47a2c8d7154a3011bd0770 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 12:08:41 -0800 Subject: fix z-index issue with modals for popovers,tooltips,and dropdowns --- docs/assets/css/bootstrap.css | 12 ++++++++++++ docs/assets/js/application.js | 9 ++------- docs/javascript.html | 16 ++-------------- docs/templates/pages/javascript.mustache | 16 ++-------------- 4 files changed, 18 insertions(+), 35 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index cd0d620bf..1cce5e9df 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -2238,6 +2238,18 @@ table .span12 { .pager .previous a { float: left; } +.modal-open .dropdown-menu { + z-index: 2050; +} +.modal-open .dropdown.open { + *z-index: 2050; +} +.modal-open .popover { + z-index: 2060; +} +.modal-open .tooltip { + z-index: 2070; +} .modal-backdrop { position: fixed; top: 0; diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 8fd672bb3..585700f8e 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -69,13 +69,8 @@ selector: "a[rel=tooltip]" }) - $('.tooltip-test').tooltip({ - 'z-index': 3000 - }) - - $('.popover-test').popover({ - 'z-index': 3000 - }) + $('.tooltip-test').tooltip() + $('.popover-test').popover() // popover demo $("a[rel=popover]") diff --git a/docs/javascript.html b/docs/javascript.html index 2d31f0aa4..f1ce98658 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -748,12 +748,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Object structure is: delay: { show: 500, hide: 100 }

- - z-index - number - 1020 - The tooltips z-index value -
@@ -860,12 +854,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Object structure is: delay: { show: 500, hide: 100 }

- - z-index - number - 1010 - The popovers z-index value -
@@ -1086,7 +1074,7 @@ $('#my-alert').bind('closed', function () {

Example accordion

Using the collapse plugin, we built a simple accordion style widget:

- +
@@ -1126,7 +1114,7 @@ $('#my-alert').bind('closed', function () {
- +

Using bootstrap-collapse.js

Enable via javascript:

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 01b14b676..46420660a 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -683,12 +683,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

- - {{_i}}z-index{{/i}} - {{_i}}number{{/i}} - 1020 - The tooltips z-index value -
@@ -795,12 +789,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

- - {{_i}}z-index{{/i}} - {{_i}}number{{/i}} - 1010 - The popovers z-index value -
@@ -1021,7 +1009,7 @@ $('#my-alert').bind('closed', function () {

{{_i}}Example accordion{{/i}}

{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

- +
@@ -1061,7 +1049,7 @@ $('#my-alert').bind('closed', function () {
- +

{{_i}}Using bootstrap-collapse.js{{/i}}

Enable via javascript:

-- cgit v1.2.3