Team:Uppsala/navbar.css

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
-
/* Navbar code begins */
+
#menu {
-
nav {
+
  background: #333;
-
+
  height: 30px;
-
display: block;
+
-
width: 100%;
+
-
margin-left: auto;
+
-
margin-right: auto;
+
-
        background: white;
+
-
+
}
}
-
 
+
#menu ul {
-
nav ul ul {
+
  margin:0;padding:0;
-
display: none;
+
}
}
-
 
+
#menu ul a {
-
nav ul li:hover > ul {
+
  text-decoration: none;
-
display: block;
+
-
}
+
-
 
+
-
nav ul {
+
-
 
+
-
background: red;
+
-
/*width:100%;*/
+
-
list-style: none;
+
-
position: relative;
+
-
display: inline-table;
+
}
}
-
nav ul:after {
+
#menu ul li {
-
content: ""; clear: both; display: block;
+
  list-style: none;
-
}
+
  float: left;
-
 
+
  position: relative;
-
nav ul li {
+
-
        width:12.5%;
+
-
float: left;
+
-
padding: 0;
+
-
margin: 0;
+
-
 
+
}
}
-
nav ul li:hover {
+
#menu ul li a {
-
background: #4b545f;
+
  background: #333;
-
 
+
  color: #fff;
-
 
+
  border: 1px solid #333;
-
}
+
  display: block;
-
nav ul li:hover a {
+
  padding: 4px;
-
color: #fff;
+
  width: 154px;
-
 
+
-
}
+
-
+
-
nav ul li a {
+
-
display: block; padding: 17px 24.45px;
+
-
color: #fff; text-decoration: none;
+
-
}
+
-
 
+
-
nav ul ul {
+
-
background: #5f6975; border-radius: 0px; padding: 0;
+
-
position: absolute; top: 100%;
+
}
}
-
nav ul ul li {
+
#menu ul ul {
-
float: none;  
+
  padding:0;
-
border-top: 1px solid #6b727c;
+
  overflow: hidden;
-
border-bottom: 1px solid #575f6a;
+
}
-
position: relative;
+
#menu ul ul li {
-
 
+
  float: none;
-
}
+
  display: none;
-
nav ul ul li a {
+
  border-bottom: 1px solid #ccc;
-
padding: 15px 28.45px;
+
  border-left: 1px solid #ccc;
-
color: #fff;
+
  border-right: 1px solid #ccc;
-
}
+
}
-
nav ul ul li a:hover {
+
#menu ul ul li a {
-
background: #4b545f;
+
  background: #f0f0f0;
-
}
+
  color: #333;
-
 
+
  border:none;
-
nav ul ul ul {
+
}
-
position: absolute; left: 100%; top:0;
+
#menu ul ul li a:hover {
 +
  background: #ccc;
 +
}
 +
#menu ul li a:hover,
 +
#menu ul li:hover ul li {
 +
  display:block !important;
}
}
-
 
-
/* Navbar code ends */
 

Revision as of 14:51, 23 June 2014

  1. menu {
 background: #333;
 height: 30px;

}

  1. menu ul {
 margin:0;padding:0;

}

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

}

  1. menu ul li {
 list-style: none;
 float: left;
 position: relative;

}

  1. menu ul li a {
 background: #333;
 color: #fff;
 border: 1px solid #333;
 display: block;
 padding: 4px;
 width: 154px;

}

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

}

  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;

}

  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;

}