Просмотр исходного кода

Fix for 3rd level menu dropdowns.

Brian Gallagher 11 лет назад
Родитель
Сommit
b023ce21ca
3 измененных файлов с 53 добавлено и 43 удалено
  1. 7 3
      library/css/ie.css
  2. 40 36
      library/css/style.css
  3. 6 4
      library/scss/breakpoints/_768up.scss

+ 7 - 3
library/css/ie.css

@@ -201,6 +201,7 @@ NAVIGATION STYLES
   /* highlight current page */
   /* highlight current page */
   /* end current highlighters */ }
   /* end current highlighters */ }
   .nav ul {
   .nav ul {
+    background:#323944;
     margin-top: 0; }
     margin-top: 0; }
   .nav li {
   .nav li {
     float: left;
     float: left;
@@ -224,7 +225,6 @@ NAVIGATION STYLES
       border: 1px solid #ccc;
       border: 1px solid #ccc;
       border-top: 0;
       border-top: 0;
       position: absolute;
       position: absolute;
-      overflow: hidden;
       visibility: hidden;
       visibility: hidden;
       z-index: 8999;
       z-index: 8999;
       /* highlight sub-menu current page */ }
       /* highlight sub-menu current page */ }
@@ -245,9 +245,13 @@ NAVIGATION STYLES
         .nav li ul.sub-menu li:last-child a,
         .nav li ul.sub-menu li:last-child a,
         .nav li ul.children li:last-child a {
         .nav li ul.children li:last-child a {
           border-bottom: 0; }
           border-bottom: 0; }
-    .nav li:hover ul {
+        .nav li ul.sub-menu li ul,
+        .nav li ul.children li ul {
+          top: 0;
+          left: 100%;
+        }
+    .nav li:hover > ul {
       top: auto;
       top: auto;
-      overflow: visible;
       visibility: visible; }
       visibility: visible; }
 
 
 /* end .nav */
 /* end .nav */

+ 40 - 36
library/css/style.css

@@ -1752,18 +1752,18 @@ tweeners.
   /******************************************************************
   /******************************************************************
   Site Name:
   Site Name:
   Author:
   Author:
-  
+
   Stylesheet: 481px and Up Stylesheet
   Stylesheet: 481px and Up Stylesheet
-  
+
   This stylesheet is loaded for larger devices. It's set to
   This stylesheet is loaded for larger devices. It's set to
   481px because at 480px it would load on a landscaped iPhone.
   481px because at 480px it would load on a landscaped iPhone.
   This isn't ideal because then you would be loading all those
   This isn't ideal because then you would be loading all those
   extra styles on that same mobile connection.
   extra styles on that same mobile connection.
-  
+
   A word of warning. This size COULD be a larger mobile device,
   A word of warning. This size COULD be a larger mobile device,
   so you still want to keep it pretty light and simply expand
   so you still want to keep it pretty light and simply expand
   upon your base.scss styles.
   upon your base.scss styles.
-  
+
   ******************************************************************/
   ******************************************************************/
   /*
   /*
   IMPORTANT NOTE ABOUT SASS 3.3 & UP
   IMPORTANT NOTE ABOUT SASS 3.3 & UP
@@ -1831,15 +1831,15 @@ you can add resource intensive styles.
   /******************************************************************
   /******************************************************************
   Site Name:
   Site Name:
   Author:
   Author:
-  
+
   Stylesheet: Tablet & Small Desktop Stylesheet
   Stylesheet: Tablet & Small Desktop Stylesheet
-  
+
   Here's where you can start getting into the good stuff.
   Here's where you can start getting into the good stuff.
   This size will work on iPads, other tablets, and desktops.
   This size will work on iPads, other tablets, and desktops.
   So you can start working with more styles, background images,
   So you can start working with more styles, background images,
   and other resources. You'll also notice the grid starts to
   and other resources. You'll also notice the grid starts to
   come into play. Have fun!
   come into play. Have fun!
-  
+
   ******************************************************************/
   ******************************************************************/
   /*********************
   /*********************
   GENERAL STYLES
   GENERAL STYLES
@@ -1862,6 +1862,7 @@ you can add resource intensive styles.
     /* highlight current page */
     /* highlight current page */
     /* end current highlighters */ }
     /* end current highlighters */ }
     .nav ul {
     .nav ul {
+      background:#323944;
       margin-top: 0; }
       margin-top: 0; }
     .nav li {
     .nav li {
       float: left;
       float: left;
@@ -1885,7 +1886,6 @@ you can add resource intensive styles.
         border: 1px solid #ccc;
         border: 1px solid #ccc;
         border-top: 0;
         border-top: 0;
         position: absolute;
         position: absolute;
-        overflow: hidden;
         visibility: hidden;
         visibility: hidden;
         z-index: 8999;
         z-index: 8999;
         /* highlight sub-menu current page */ }
         /* highlight sub-menu current page */ }
@@ -1906,9 +1906,13 @@ you can add resource intensive styles.
           .nav li ul.sub-menu li:last-child a,
           .nav li ul.sub-menu li:last-child a,
           .nav li ul.children li:last-child a {
           .nav li ul.children li:last-child a {
             border-bottom: 0; }
             border-bottom: 0; }
-      .nav li:hover ul {
+          .nav li ul.sub-menu li ul,
+          .nav li ul.children li ul {
+            top: 0;
+            left: 100%;
+          }
+      .nav li:hover > ul {
         top: auto;
         top: auto;
-        overflow: visible;
         visibility: visible; }
         visibility: visible; }
 
 
   /* end .nav */
   /* end .nav */
@@ -1969,12 +1973,12 @@ you can add resource intensive styles.
   /******************************************************************
   /******************************************************************
   Site Name:
   Site Name:
   Author:
   Author:
-  
+
   Stylesheet: Desktop Stylsheet
   Stylesheet: Desktop Stylsheet
-  
+
   This is the desktop size. It's larger than an iPad so it will only
   This is the desktop size. It's larger than an iPad so it will only
   be seen on the Desktop.
   be seen on the Desktop.
-  
+
   ******************************************************************/
   ******************************************************************/
   .wrap {
   .wrap {
     width: 1040px; } }
     width: 1040px; } }
@@ -1984,14 +1988,14 @@ This is for the larger monitors and possibly full screen viewers.
 *********************/
 *********************/
 @media only screen and (min-width: 1240px) {
 @media only screen and (min-width: 1240px) {
   /******************************************************************
   /******************************************************************
-  Site Name: 
-  Author: 
-  
+  Site Name:
+  Author:
+
   Stylesheet: Super Large Monitor Stylesheet
   Stylesheet: Super Large Monitor Stylesheet
-  
+
   You can add some advanced styles here if you like. This kicks in
   You can add some advanced styles here if you like. This kicks in
   on larger screens.
   on larger screens.
-  
+
   ******************************************************************/ }
   ******************************************************************/ }
 /*********************
 /*********************
 RETINA (2x RESOLUTION DEVICES)
 RETINA (2x RESOLUTION DEVICES)
@@ -2001,44 +2005,44 @@ query for retina AND a certain size if you want. Go Nuts.
 *********************/
 *********************/
 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
   /******************************************************************
   /******************************************************************
-  Site Name: 
-  Author: 
-  
+  Site Name:
+  Author:
+
   Stylesheet: Retina Screens & Devices Stylesheet
   Stylesheet: Retina Screens & Devices Stylesheet
-  
+
   When handling retina screens you need to make adjustments, especially
   When handling retina screens you need to make adjustments, especially
   if you're not using font icons. Here you can add them in one neat
   if you're not using font icons. Here you can add them in one neat
   place.
   place.
-  
+
   ******************************************************************/
   ******************************************************************/
-  /* 
-  
-  EXAMPLE 
+  /*
+
+  EXAMPLE
   Let's say you have an image and you need to make sure it looks ok
   Let's say you have an image and you need to make sure it looks ok
   on retina screens. Let's say we have an icon which dimension are
   on retina screens. Let's say we have an icon which dimension are
   24px x 24px. In your regular stylesheets, it would look something
   24px x 24px. In your regular stylesheets, it would look something
   like this:
   like this:
-  
+
   .icon {
   .icon {
   	width: 24px;
   	width: 24px;
   	height: 24px;
   	height: 24px;
   	background: url(img/test.png) no-repeat;
   	background: url(img/test.png) no-repeat;
   }
   }
-  
+
   For retina screens, we have to make some adjustments, so that image
   For retina screens, we have to make some adjustments, so that image
   doesn't look blurry. So, taking into account the image above and the
   doesn't look blurry. So, taking into account the image above and the
   dimensions, this is what we would put in our retina stylesheet:
   dimensions, this is what we would put in our retina stylesheet:
-  
+
   .icon {
   .icon {
   	background: url(img/test@2x.png) no-repeat;
   	background: url(img/test@2x.png) no-repeat;
   	background-size: 24px 24px;
   	background-size: 24px 24px;
   }
   }
-  
-  So, you would create the same icon, but at double the resolution, meaning 
+
+  So, you would create the same icon, but at double the resolution, meaning
   it would be 48px x 48px. You'd name it the same, but with a @2x at the end
   it would be 48px x 48px. You'd name it the same, but with a @2x at the end
   (this is pretty standard practice). Set the background image so it matches
   (this is pretty standard practice). Set the background image so it matches
-  the original dimensions and you are good to go. 
-  
+  the original dimensions and you are good to go.
+
   */ }
   */ }
 /*********************
 /*********************
 PRINT STYLESHEET
 PRINT STYLESHEET
@@ -2050,13 +2054,13 @@ be set to display none.
   /******************************************************************
   /******************************************************************
   Site Name:
   Site Name:
   Author:
   Author:
-  
+
   Stylesheet: Print Stylesheet
   Stylesheet: Print Stylesheet
-  
+
   This is the print stylesheet. There's probably not a lot
   This is the print stylesheet. There's probably not a lot
   of reasons to edit this stylesheet. If you want to
   of reasons to edit this stylesheet. If you want to
   though, go for it.
   though, go for it.
-  
+
   ******************************************************************/
   ******************************************************************/
   * {
   * {
     background: transparent !important;
     background: transparent !important;

+ 6 - 4
library/scss/breakpoints/_768up.scss

@@ -42,6 +42,7 @@ NAVIGATION STYLES
 .nav {
 .nav {
 	border: 0;
 	border: 0;
 	ul {
 	ul {
+		background:$black;
 		margin-top:0;
 		margin-top:0;
 	}
 	}
 	li {
 	li {
@@ -73,7 +74,6 @@ NAVIGATION STYLES
 			border: 1px solid #ccc;
 			border: 1px solid #ccc;
 			border-top: 0;
 			border-top: 0;
 			position: absolute;
 			position: absolute;
-			overflow: hidden;
 			visibility: hidden;
 			visibility: hidden;
 			z-index: 8999;
 			z-index: 8999;
 
 
@@ -106,7 +106,10 @@ NAVIGATION STYLES
 				just remember deeper menus suck
 				just remember deeper menus suck
 				for usability. k, bai.
 				for usability. k, bai.
 				*/
 				*/
-				ul {}
+				ul {
+					top:0;
+					left:100%;
+				}
 			}
 			}
 
 
 			/* highlight sub-menu current page */
 			/* highlight sub-menu current page */
@@ -118,9 +121,8 @@ NAVIGATION STYLES
 		}
 		}
 
 
 		/* showing sub-menus */
 		/* showing sub-menus */
-		&:hover ul {
+		&:hover > ul {
 			top: auto;
 			top: auto;
-			overflow: visible;
 			visibility:visible;
 			visibility:visible;
 		}
 		}