Team:Uppsala/navbar.css

From 2014.igem.org

(Difference between revisions)
Line 11: Line 11:
   text-decoration: none;
   text-decoration: none;
}
}
 +
#menu ul li {
#menu ul li {
   list-style: none;
   list-style: none;
Line 16: Line 17:
   position: relative;
   position: relative;
   width: calc(100%/9);
   width: calc(100%/9);
 +
}
 +
 +
 +
#menu > ul > li {
 +
  list-style: none;
 +
  float: left;
 +
  position: relative;
 +
  width: calc(100%/9);
 +
  border-top: 5px solid #d1d2d4;
 +
  border-bottom: 5px solid #d1d2d4;
 +
}
 +
 +
#menu > ul > li:hover {
 +
 +
  list-style: none;
 +
  float: left;
 +
  position: relative;
 +
  width: calc(100%/9);
 +
  border-top: 5px solid #d31906;
 +
  border-bottom: 5px solid #d31906;
 +
 +
}
}
Line 26: Line 49:
#menu ul li a {
#menu ul li a {
   background: #d1d2d4;
   background: #d1d2d4;
-
   color: #fff;;
+
   color: #fff;
-
   border: 1px solid #d1d2d4;
+
    
-
  display: block;
+
-
  padding-top: 15px;
+
-
  padding-bottom: 15px;
+
-
  width:100%;
+
-
}
+
-
 
+
-
#menu > ul > li > a{
+
-
  background: #d1d2d4;
+
-
  color: #fff;;
+
-
  border-top: 5px solid #d1d2d4;
+
-
  border-bottom: 5px solid #d1d2d4;
+
   display: block;
   display: block;
   padding-top: 10px;
   padding-top: 10px;
Line 44: Line 56:
   width:100%;
   width:100%;
}
}
-
 
-
#menu > ul > li > a:hover {
 
-
 
-
  background: #d1d2d4;
 
-
  color: #d31906;;
 
-
  border-top: 5px solid #d31906;
 
-
  border-bottom: 5px solid #d31906;
 
-
  display: block;
 
-
  padding-top: 10px;
 
-
  padding-bottom: 10px;
 
-
  width:100%;
 
-
 
-
}
 
-
 
-
 
#menu ul ul {
#menu ul ul {
Line 64: Line 61:
   overflow: hidden;
   overflow: hidden;
}
}
 +
 +
#menu ul ul li:first-child {
 +
  margin-top: 5px;
 +
  float: none;
 +
  display: none;
 +
  border-bottom: 1px solid #ccc;
 +
  border-left: 1px solid #ccc;
 +
  border-right: 1px solid #ccc; 
 +
}
 +
 +
#menu ul ul li {
#menu ul ul li {
   float: none;
   float: none;
Line 80: Line 88:
   background: #ccc;
   background: #ccc;
}
}
 +
#menu ul li a:hover,  
#menu ul li a:hover,  
#menu ul li:hover ul li {
#menu ul li:hover ul li {

Revision as of 09:55, 29 June 2014

  1. menu {
 background: #d1d2d4;
 height: 50px;

}

  1. menu ul {
 margin:0;padding:0;
 position:absolute;
 width:100%;

}

  1. menu ul a {
 text-decoration: none;

}

  1. menu ul li {
 list-style: none;
 float: left;
 position: relative;
 width: calc(100%/9);

}


  1. menu > ul > li {
 list-style: none;
 float: left;
 position: relative;
 width: calc(100%/9);
 border-top: 5px solid #d1d2d4;
 border-bottom: 5px solid #d1d2d4;

}

  1. menu > ul > li:hover {
 list-style: none;
 float: left;
 position: relative;
 width: calc(100%/9);
 border-top: 5px solid #d31906;
 border-bottom: 5px solid #d31906;


}

  1. menu ul li a:hover {

color: #d31906; background-color: #fff; }

  1. menu ul li a {
 background: #d1d2d4;
 color: #fff;
 
 display: block;
 padding-top: 10px;
 padding-bottom: 10px;
 width:100%;

}

  1. menu ul ul {
 padding:0;
 overflow: hidden;

}

  1. menu ul ul li:first-child {
 margin-top: 5px;
 float: none;
 display: none;
 border-bottom: 1px solid #ccc;
 border-left: 1px solid #ccc;
 border-right: 1px solid #ccc;  

}


  1. menu ul ul li {
 float: none;
 display: none;
 border-bottom: 1px solid #ccc;
 border-left: 1px solid #ccc;
 border-right: 1px solid #ccc;  

}

  1. menu ul ul li a {
 background: #f0f0f0;
 color: #333;
 border:none;
 width: calc(100%/9);

}

  1. menu ul ul li a:hover {
 background: #ccc;

}

  1. menu ul li a:hover,
  2. menu ul li:hover ul li {
 display:block !important;

}

  1. menu ul li ul li{

width:900%; }