another quick pass at ranking all zindexes and listing them in variables for quick overview and editing later

This commit is contained in:
Mark Otto
2012-01-07 04:07:53 -08:00
parent 8bdaf1f364
commit 5ba7c14afe
8 changed files with 24 additions and 15 deletions

View File

@@ -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;

View File

@@ -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; }

View File

@@ -125,7 +125,7 @@
top: 0;
right: 0;
left: 0;
z-index: 999;
z-index: @zindexFixedNavbar;
}

View File

@@ -5,7 +5,7 @@
position: absolute;
top: 0;
left: 0;
z-index: 1005;
z-index: @zindexPopover;
display: none;
padding: 5px;
&.top { margin-top: -5px; }

View File

@@ -3,7 +3,7 @@
.twipsy {
position: absolute;
z-index: 1005;
z-index: @zindexTwipsy;
display: block;
visibility: visible;
padding: 5px;

View File

@@ -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