diff options
| author | Mark Otto <[email protected]> | 2012-01-07 04:07:53 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-01-07 04:07:53 -0800 |
| commit | 5ba7c14afe0fbe1eb9ba18e6a06cc298362ec159 (patch) | |
| tree | 9f2497e700fab116e81542f33da26ebc6114e022 /lib | |
| parent | 8bdaf1f36451266064ec460b87a12f21a2caa65b (diff) | |
| download | bootstrap-5ba7c14afe0fbe1eb9ba18e6a06cc298362ec159.tar.xz bootstrap-5ba7c14afe0fbe1eb9ba18e6a06cc298362ec159.zip | |
another quick pass at ranking all zindexes and listing them in variables for quick overview and editing later
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dropdowns.less | 2 | ||||
| -rw-r--r-- | lib/modals.less | 2 | ||||
| -rw-r--r-- | lib/navbar.less | 2 | ||||
| -rw-r--r-- | lib/popovers.less | 2 | ||||
| -rw-r--r-- | lib/twipsy.less | 2 | ||||
| -rw-r--r-- | lib/variables.less | 11 |
6 files changed, 15 insertions, 6 deletions
diff --git a/lib/dropdowns.less b/lib/dropdowns.less index a87641d64..fc333a4cd 100644 --- a/lib/dropdowns.less +++ b/lib/dropdowns.less @@ -27,7 +27,7 @@ .dropdown-menu { position: absolute; top: 40px; - z-index: 1000; + z-index: @zindexDropdowns; float: left; display: none; // none by default, but block on "open" of the menu min-width: 160px; diff --git a/lib/modals.less b/lib/modals.less index 96f9a488e..8183194b7 100644 --- a/lib/modals.less +++ b/lib/modals.less @@ -7,7 +7,7 @@ right: 0; bottom: 0; left: 0; - z-index: 10000; + z-index: @zindexPopover; background-color: @black; // Fade for backdrop &.fade { opacity: 0; } diff --git a/lib/navbar.less b/lib/navbar.less index 9756ce2ca..90ff78676 100644 --- a/lib/navbar.less +++ b/lib/navbar.less @@ -125,7 +125,7 @@ top: 0; right: 0; left: 0; - z-index: 999; + z-index: @zindexFixedNavbar; } diff --git a/lib/popovers.less b/lib/popovers.less index ec91ab923..9ecdf5fd9 100644 --- a/lib/popovers.less +++ b/lib/popovers.less @@ -5,7 +5,7 @@ position: absolute; top: 0; left: 0; - z-index: 1005; + z-index: @zindexPopover; display: none; padding: 5px; &.top { margin-top: -5px; } diff --git a/lib/twipsy.less b/lib/twipsy.less index 9e3cf2f14..7eaa7d5bf 100644 --- a/lib/twipsy.less +++ b/lib/twipsy.less @@ -3,7 +3,7 @@ .twipsy { position: absolute; - z-index: 1005; + z-index: @zindexTwipsy; display: block; visibility: visible; padding: 5px; diff --git a/lib/variables.less b/lib/variables.less index dfd773304..3db5839b0 100644 --- a/lib/variables.less +++ b/lib/variables.less @@ -44,7 +44,16 @@ @siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1)); // Fluid width sidebar -@fluidSidebarWidth: 220px; +@fluidSidebarWidth: 220px; + + +// Z-INDEX +// ------- +@zindexDropdowns: 1000; +@zindexTwipsy: 1000; +@zindexFixedNavbar: 1010; +@zindexPopover: 1020; +@zindexModal: 1030; // THEME VARIABLES |
