Team:TU Eindhoven/Template:NavPanel

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
   <link href="https://2014.igem.org/Team:TU_Eindhoven/Style:NavPanel?action=raw&ctype=text/css" rel="stylesheet" type="text/css" media="all" />
   <link href="https://2014.igem.org/Team:TU_Eindhoven/Style:NavPanel?action=raw&ctype=text/css" rel="stylesheet" type="text/css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
-
 
-
 
-
<head>
 
-
  <meta charset='utf-8'>
 
-
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
-
  <meta name="viewport" content="width=device-width, initial-scale=1">
 
-
  <link rel="stylesheet" href="styles.css">
 
-
  <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
 
-
  <script src="script.js"></script>
 
-
  <title>CSS MenuMaker</title>
 
-
 
 
-
  <style>
 
-
  #h_menu {
 
-
  position: relative;
 
-
  height: 44px;
 
-
  background: #2b2f3a;
 
-
  width: auto;
 
-
}
 
-
#h_menu ul {
 
-
  list-style: none;
 
-
  padding: 0;
 
-
  margin: 0;
 
-
  line-height: 1;
 
-
}
 
-
#h_menu > ul {
 
-
  position: relative;
 
-
  display: block;
 
-
  background: #2b2f3a;
 
-
  width: 100%;
 
-
  z-index: 500;
 
-
}
 
-
#h_menu:after,
 
-
#h_menu > ul:after {
 
-
  content: ".";
 
-
  display: block;
 
-
  clear: both;
 
-
  visibility: hidden;
 
-
  line-height: 0;
 
-
  height: 0;
 
-
}
 
-
#h_menu.align-right > ul > li {
 
-
  float: right;
 
-
}
 
-
#h_menu.align-center ul {
 
-
  text-align: center;
 
-
}
 
-
#h_menu.align-center ul ul {
 
-
  text-align: left;
 
-
}
 
-
#h_menu > ul > li {
 
-
  display: inline-block;
 
-
  position: relative;
 
-
  margin: 0;
 
-
  padding: 0;
 
-
}
 
-
#h_menu > ul > #menu-button {
 
-
  display: none;
 
-
}
 
-
#h_menu ul li a {
 
-
  display: block;
 
-
  font-family: Helvetica, sans-serif;
 
-
  text-decoration: none;
 
-
}
 
-
#h_menu > ul > li > a {
 
-
  font-size: 14px;
 
-
  font-weight: bold;
 
-
  padding: 15px 20px;
 
-
  color: #7a8189;
 
-
  text-transform: uppercase;
 
-
  -webkit-transition: color 0.25s ease-out;
 
-
  -moz-transition: color 0.25s ease-out;
 
-
  -ms-transition: color 0.25s ease-out;
 
-
  -o-transition: color 0.25s ease-out;
 
-
  transition: color 0.25s ease-out;
 
-
}
 
-
#h_menu > ul > li.has-sub > a {
 
-
  padding-right: 32px;
 
-
}
 
-
#h_menu > ul > li:hover > a {
 
-
  color: #ffffff;
 
-
}
 
-
#h_menu li.has-sub::after {
 
-
  display: block;
 
-
  content: "";
 
-
  position: absolute;
 
-
  width: 0;
 
-
  height: 0;
 
-
}
 
-
#h_menu > ul > li.has-sub::after {
 
-
  right: 10px;
 
-
  top: 20px;
 
-
  border: 5px solid transparent;
 
-
  border-top-color: #7a8189;
 
-
}
 
-
#h_menu > ul > li:hover::after {
 
-
  border-top-color: #ffffff;
 
-
}
 
-
#indicatorContainer {
 
-
  position: absolute;
 
-
  height: 12px;
 
-
  width: 100%;
 
-
  bottom: 0px;
 
-
  overflow: hidden;
 
-
  z-index: -1;
 
-
}
 
-
#pIndicator {
 
-
  position: absolute;
 
-
  height: 0;
 
-
  width: 100%;
 
-
  border: 12px solid transparent;
 
-
  border-top-color: #2b2f3a;
 
-
  z-index: -2;
 
-
  -webkit-transition: left .25s ease;
 
-
  -moz-transition: left .25s ease;
 
-
  -ms-transition: left .25s ease;
 
-
  -o-transition: left .25s ease;
 
-
  transition: left .25s ease;
 
-
}
 
-
#cIndicator {
 
-
  position: absolute;
 
-
  height: 0;
 
-
  width: 100%;
 
-
  border: 12px solid transparent;
 
-
  border-top-color: #2b2f3a;
 
-
  top: -12px;
 
-
  right: 100%;
 
-
  z-index: -2;
 
-
}
 
-
#h_menu ul ul {
 
-
  position: absolute;
 
-
  left: -9999px;
 
-
  top: 70px;
 
-
  opacity: 0;
 
-
  -webkit-transition: opacity .3s ease, top .25s ease;
 
-
  -moz-transition: opacity .3s ease, top .25s ease;
 
-
  -ms-transition: opacity .3s ease, top .25s ease;
 
-
  -o-transition: opacity .3s ease, top .25s ease;
 
-
  transition: opacity .3s ease, top .25s ease;
 
-
  z-index: 1000;
 
-
}
 
-
#h_menu ul ul ul {
 
-
  top: 37px;
 
-
  padding-left: 5px;
 
-
}
 
-
#h_menu ul ul li {
 
-
  position: relative;
 
-
}
 
-
#h_menu > ul > li:hover > ul {
 
-
  left: auto;
 
-
  top: 44px;
 
-
  opacity: 1;
 
-
}
 
-
#h_menu.align-right > ul > li:hover > ul {
 
-
  left: auto;
 
-
  right: 0;
 
-
  opacity: 1;
 
-
}
 
-
#h_menu ul ul li:hover > ul {
 
-
  left: 170px;
 
-
  top: 0;
 
-
  opacity: 1;
 
-
}
 
-
#h_menu.align-right ul ul li:hover > ul {
 
-
  left: auto;
 
-
  right: 170px;
 
-
  top: 0;
 
-
  opacity: 1;
 
-
  padding-right: 5px;
 
-
}
 
-
#h_menu ul ul li a {
 
-
  width: 130px;
 
-
  border-bottom: 1px solid #eeeeee;
 
-
  padding: 10px 20px;
 
-
  font-size: 12px;
 
-
  color: #9ea2a5;
 
-
  background: #ffffff;
 
-
  -webkit-transition: all .35s ease;
 
-
  -moz-transition: all .35s ease;
 
-
  -ms-transition: all .35s ease;
 
-
  -o-transition: all .35s ease;
 
-
  transition: all .35s ease;
 
-
}
 
-
#h_menu.align-right ul ul li a {
 
-
  text-align: right;
 
-
}
 
-
#h_menu ul ul li:hover > a {
 
-
  background: #f2f2f2;
 
-
  color: #8c9195;
 
-
}
 
-
#h_menu ul ul li:last-child > a,
 
-
#h_menu ul ul li.last > a {
 
-
  border-bottom: 0;
 
-
}
 
-
#h_menu > ul > li > ul::after {
 
-
  content: '';
 
-
  border: 6px solid transparent;
 
-
  width: 0;
 
-
  height: 0;
 
-
  border-bottom-color: #ffffff;
 
-
  position: absolute;
 
-
  top: -12px;
 
-
  left: 30px;
 
-
}
 
-
#h_menu.align-right > ul > li > ul::after {
 
-
  left: auto;
 
-
  right: 30px;
 
-
}
 
-
#h_menu ul ul li.has-sub::after {
 
-
  border: 4px solid transparent;
 
-
  border-left-color: #9ea2a5;
 
-
  right: 10px;
 
-
  top: 12px;
 
-
  -moz-transition: all .2s ease;
 
-
  -ms-transition: all .2s ease;
 
-
  -o-transition: all .2s ease;
 
-
  transition: all .2s ease;
 
-
  -webkit-transition: -webkit-transform 0.2s ease, right 0.2s ease;
 
-
}
 
-
#h_menu.align-right ul ul li.has-sub::after {
 
-
  border-left-color: transparent;
 
-
  border-right-color: #9ea2a5;
 
-
  right: auto;
 
-
  left: 10px;
 
-
}
 
-
#h_menu ul ul li.has-sub:hover::after {
 
-
  border-left-color: #ffffff;
 
-
  right: -5px;
 
-
  -webkit-transform: rotateY(180deg);
 
-
  -ms-transform: rotateY(180deg);
 
-
  -moz-transform: rotateY(180deg);
 
-
  -o-transform: rotateY(180deg);
 
-
  transform: rotateY(180deg);
 
-
}
 
-
#h_menu.align-right ul ul li.has-sub:hover::after {
 
-
  border-right-color: #ffffff;
 
-
  border-left-color: transparent;
 
-
  left: -5px;
 
-
  -webkit-transform: rotateY(180deg);
 
-
  -ms-transform: rotateY(180deg);
 
-
  -moz-transform: rotateY(180deg);
 
-
  -o-transform: rotateY(180deg);
 
-
  transform: rotateY(180deg);
 
-
}
 
-
@media all and (max-width: 800px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
 
-
  #h_menu {
 
-
    width: auto;
 
-
  }
 
-
  #h_menu.align-center ul {
 
-
    text-align: left;
 
-
  }
 
-
  #h_menu.align-right > ul > li {
 
-
    float: none;
 
-
  }
 
-
  #h_menu ul {
 
-
    width: auto;
 
-
  }
 
-
  #h_menu .submenuArrow,
 
-
  #h_menu #indicatorContainer {
 
-
    display: none;
 
-
  }
 
-
  #h_menu > ul {
 
-
    height: auto;
 
-
    display: block;
 
-
  }
 
-
  #h_menu > ul > li {
 
-
    float: none;
 
-
  }
 
-
  #h_menu li,
 
-
  #h_menu > ul > li {
 
-
    display: none;
 
-
  }
 
-
  #h_menu ul ul,
 
-
  #h_menu ul ul ul,
 
-
  #h_menu ul > li:hover > ul,
 
-
  #h_menu ul ul > li:hover > ul,
 
-
  #h_menu.align-right ul ul,
 
-
  #h_menu.align-right ul ul ul,
 
-
  #h_menu.align-right ul > li:hover > ul,
 
-
  #h_menu.align-right ul ul > li:hover > ul {
 
-
    position: relative;
 
-
    left: auto;
 
-
    top: auto;
 
-
    opacity: 1;
 
-
    padding-left: 0;
 
-
    padding-right: 0;
 
-
    right: auto;
 
-
  }
 
-
  #h_menu ul .has-sub::after {
 
-
    display: none;
 
-
  }
 
-
  #h_menu ul li a {
 
-
    padding: 12px 20px;
 
-
  }
 
-
  #h_menu ul ul li a {
 
-
    border: 0;
 
-
    background: none;
 
-
    width: auto;
 
-
    padding: 8px 35px;
 
-
  }
 
-
  #h_menu.align-right ul ul li a {
 
-
    text-align: left;
 
-
  }
 
-
  #h_menu ul ul li:hover > a {
 
-
    background: none;
 
-
    color: #8c9195;
 
-
  }
 
-
  #h_menu ul ul ul a {
 
-
    padding: 8px 50px;
 
-
  }
 
-
  #h_menu ul ul ul ul a {
 
-
    padding: 8px 65px;
 
-
  }
 
-
  #h_menu ul ul ul ul ul a {
 
-
    padding: 8px 80px;
 
-
  }
 
-
  #h_menu ul ul ul ul ul ul a {
 
-
    padding: 8px 95px;
 
-
  }
 
-
  #h_menu > ul > #menu-button {
 
-
    display: block;
 
-
    cursor: pointer;
 
-
  }
 
-
  #h_menu #menu-button > a {
 
-
    padding: 14px 20px;
 
-
  }
 
-
  #h_menu ul.open li,
 
-
  #h_menu > ul.open > li {
 
-
    display: block;
 
-
  }
 
-
  #h_menu > ul.open > li#menu-button > a {
 
-
    color: #fff;
 
-
    border-bottom: 1px solid rgba(150, 150, 150, 0.1);
 
-
  }
 
-
  #h_menu ul ul::after {
 
-
    display: none;
 
-
  }
 
-
  #h_menu #menu-button::after {
 
-
    display: block;
 
-
    content: '';
 
-
    position: absolute;
 
-
    height: 3px;
 
-
    width: 22px;
 
-
    border-top: 2px solid #7a8189;
 
-
    border-bottom: 2px solid #7a8189;
 
-
    right: 20px;
 
-
    top: 15px;
 
-
  }
 
-
  #h_menu #menu-button::before {
 
-
    display: block;
 
-
    content: '';
 
-
    position: absolute;
 
-
    height: 3px;
 
-
    width: 22px;
 
-
    border-top: 2px solid #7a8189;
 
-
    right: 20px;
 
-
    top: 25px;
 
-
  }
 
-
  #h_menu ul.open #menu-button::after,
 
-
  #h_menu ul.open #menu-button::before {
 
-
    border-color: #fff;
 
-
</style>
 
</head>
</head>
Line 375: Line 14:
<div class="h_menu">
<div class="h_menu">
<ul>
<ul>
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven">Home</a></li>
+
<li><a href="https://2014.igem.org/Team:TU_Eindhoven">Home</a></li>
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Team">Team</a></li>
+
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Team">Team</a></li>
-
<li class='active has-sub'><a href="https://2014.igem.org/Team:TU_Eindhoven/Project">Project</a>
+
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Project">Project</a></li>
-
<ul>
+
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Notebook">Notebook</a></li>
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Project">Home</a></li>
+
<li><a href="#">Safety</a></li>
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Project">Home</a></li>
+
                                <li><a href="https://2014.igem.org/Team:TU_Eindhoven/Sponsors">Sponsors</a></li>
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Project">Home</a></li>
+
</ul>
-
+
-
        </ul>
+
-
<li><a href="https://2014.igem.org/Team:TU_Eindhoven/Notebook">Notebook</a></li>
+
-
<li><a href="#">Safety</a></li>
+
-
    <li><a href="https://2014.igem.org/Team:TU_Eindhoven/Sponsors">Sponsors</a></li>
+
-
</ul>
+
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">

Revision as of 10:26, 4 August 2014

TU Eindhoven iGEM