.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;
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]")
<p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
</td>
</tr>
- <tr>
- <td>z-index</td>
- <td>number</td>
- <td>1020</td>
- <td>The tooltips z-index value</td>
- </tr>
</tbody>
</table>
<div class="alert alert-info">
<p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
</td>
</tr>
- <tr>
- <td>z-index</td>
- <td>number</td>
- <td>1010</td>
- <td>The popovers z-index value</td>
- </tr>
</tbody>
</table>
<div class="alert alert-info">
<div class="span9 columns">
<h2>Example accordion</h2>
<p>Using the collapse plugin, we built a simple accordion style widget:</p>
-
+
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
</div>
</div>
-
+
<hr>
<h2>Using bootstrap-collapse.js</h2>
<p>Enable via javascript:</p>
<p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
</td>
</tr>
- <tr>
- <td>{{_i}}z-index{{/i}}</td>
- <td>{{_i}}number{{/i}}</td>
- <td>1020</td>
- <td>The tooltips z-index value</td>
- </tr>
</tbody>
</table>
<div class="alert alert-info">
<p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
</td>
</tr>
- <tr>
- <td>{{_i}}z-index{{/i}}</td>
- <td>{{_i}}number{{/i}}</td>
- <td>1010</td>
- <td>The popovers z-index value</td>
- </tr>
</tbody>
</table>
<div class="alert alert-info">
<div class="span9 columns">
<h2>{{_i}}Example accordion{{/i}}</h2>
<p>{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}</p>
-
+
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
</div>
</div>
-
+
<hr>
<h2>{{_i}}Using bootstrap-collapse.js{{/i}}</h2>
<p>Enable via javascript:</p>
if (this.isShown) return
+ $('body').addClass('modal-open')
+
this.isShown = true
this.$element.trigger('show')
var that = this
this.isShown = false
+ $('body').removeClass('modal-open')
+
escape.call(this)
this.$element
break
}
- if (this.options['z-index']) tp['z-index'] = this.options['z-index']
-
$tip
.css(tp)
.addClass(placement)
, trigger: 'hover'
, title: ''
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
- , 'z-index': false
}
}( window.jQuery )
// MODALS
// ------
+.modal-open {
+ .dropdown-menu { z-index: @zindexDropdown + @zindexModal }
+ .dropdown.open { *z-index: @zindexDropdown + @zindexModal }
+ .popover { z-index: @zindexPopover + @zindexModal }
+ .tooltip { z-index: @zindexTooltip + @zindexModal }
+}
+
.modal-backdrop {
position: fixed;
top: 0;