Difference between revisions of "Template:UCLA"

 
(89 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
<head>
+
  <head>
<meta name="viewport" content="width=device-width, initial-scale=1">
+
</head>
+
  
<!-- Global CSS -->
+
    <!--
 +
    > CSS is inlined into the webpage for sake of speed
 +
    -->
 +
 
 +
    <!-- Banner CSS -->
 +
 
 +
    <style>
  
<style>
 
  
 
#content {
 
#content {
Line 17: Line 20:
 
   max-width: none;
 
   max-width: none;
 
}
 
}
</style>
 
<link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/foundationcss?action=raw&amp;ctype=text/css" />
 
  
<div class="menu_wrapper" >
+
#top_title {
 +
  display: none;
 +
}
  
 +
#content {
 +
  margin-top: -18px;
 +
}
  
 +
#sideMenu {
 +
  display: none;
 +
}
  
 +
.ucla-scroll-down {
 +
  display: block;
 +
  margin: 10px auto;
 +
  width: 50px;
 +
}
 +
.top-bar {
 +
  width: 100%;
 +
}
 +
#header-menu h2 {
 +
  color: white;
 +
}
  
<div class="collapsable_menu_control"> MENU ▤ </div>
 
<div class="top-bar">
 
  <div class="top-bar-right">
 
  <ul class="dropdown menu align-right" data-dropdown-menu>
 
  <li>
 
  <a href="#">Project</a>
 
  <ul class="menu vertical">
 
<li> <a href="https://2016.igem.org/Team:UCLA/Description">Description </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Design">Design </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Experiments"> Experiments </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Proof">Proof of Concept </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Demonstrate">Demonstrate </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Results"> Results </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Notebook"> Notebook </a></li>
 
  </ul>
 
  </li>
 
  <li>
 
  <a href="#">Parts</a>
 
  <ul class="menu vertical">
 
<li> <a href="https://2016.igem.org/Team:UCLA/Parts">Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Basic_Part">Basic Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Composite_Part">Composite Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Part_Collection">Part Collection </a></li>
 
  </ul>
 
  </li>
 
  <li>
 
  <a href="#">Human Practices</a>
 
  <ul class="menu vertical">
 
<li> <a href="https://2016.igem.org/Team:UCLA/Human_Practices"> Human Practices </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/HP/Silver">Silver </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/HP/Gold">Gold </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Integrated_Practices">Integrated Practices </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Engagement">Engagement </a></li>
 
  </ul>
 
  </li>
 
  <li>
 
  <a href="#">Awards</a>
 
  <ul class="menu vertical">
 
<li><a href="https://2016.igem.org/Team:UCLA/Entrepreneurship">Entrepreneurship </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Hardware">Hardware </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Software">Software </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Measurement">Measurement </a></li>
 
<li> <a href="https://2016.igem.org/Team:UCLA/Model">Model </a></li>
 
  </ul>
 
  </li>
 
  <li>
 
  <a href="https://2016.igem.org/Team:UCLA/Team">Team</a>
 
  </li>
 
  
  </ul>
 
  </div>
 
</div>
 
  
  
<!--
+
            body {
Old menu, keeping for links
+
        margin: 0;
<ul id="accordion" class="accordion">
+
        margin-top: 16px;
 +
      }
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA">HOME </a> </li>
+
      #header-bar {
 +
        width: 100%;
 +
        height: 10em;
 +
        background-color: #00004d;
 +
      }
  
 +
      #footer-bar {
 +
        width: 100%;
 +
        height: 3em;
 +
        background-color: #00004d;
 +
      }
  
<li class="menu_item"> <div class="icon plus"></div> TEAM
+
      #sponsor-footer-bar {
<ul class="submenu">
+
        width: 100%;
<li> <a href=" https://2016.igem.org/Team:UCLA/Team"> Team  </a> </li>
+
        height: 3em;
<li> <a href="https://2016.igem.org/Team:UCLA/Collaborations">★  Collaborations </a> </li>
+
        background-color: darkgray;
                    </ul>
+
      }
                </li>
+
  
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
+
      #sponsor-footer-bar img {
<ul class="submenu">
+
        display: inline-block;
<li> <a href="https://2016.igem.org/Team:UCLA/Description"> ★  Description </a></li>
+
        height: 3em;
<li> <a href="https://2016.igem.org/Team:UCLA/Design"> ★ Design </a></li>
+
        width: auto;
<li> <a href="https://2016.igem.org/Team:UCLA/Experiments"> Experiments </a></li>
+
      }
<li> <a href="https://2016.igem.org/Team:UCLA/Proof"> ★ Proof of Concept </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Demonstrate"> ★ Demonstrate </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Results"> Results </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Notebook"> Notebook </a></li>
+
                    </ul>
+
                </li>
+
  
<li class="menu_item"> <div class="icon plus"></div> PARTS 
+
      #footer-bar a { float: right; }
<ul class="submenu">
+
<li> <a href="https://2016.igem.org/Team:UCLA/Parts">Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Basic_Part"> ★ Basic Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Composite_Part"> ★ Composite Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Part_Collection"> ★ Part Collection </a></li>
+
                    </ul>
+
                </li>
+
  
 +
      #social-bar { margin-right: 3em; }
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Safety"> SAFETY </a> </li>
+
      .social-button {
 +
        padding: .25em 1.5em 0em 1.5em;
 +
        width: 2.5em;
 +
        height: auto;
 +
      }
  
 +
      #header-logo-ucla-container { float: left; }
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Attributions">★  ATTRIBUTIONS </a></li>
+
      #header-menu {
 +
        float: right;
 +
        font-family: sans-serif;
 +
        margin-right: 9em;
 +
        margin-top: 2.5em;
 +
        list-style-type: none;
 +
        overflow: hidden;
 +
      }
  
 +
      #header-logo-ucla {
 +
        width: 10em;
 +
        height: auto;
 +
        margin-left: 1.5em;
 +
        margin-top: .75em;
 +
      }
  
<li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES
+
      .header-logo-general {
<ul class="submenu">
+
        width: 7em;
<li> <a href="https://2016.igem.org/Team:UCLA/Human_Practices"> Human Practices </a></li>
+
        height: auto;
<li> <a href="https://2016.igem.org/Team:UCLA/HP/Silver">★ Silver </a></li>
+
      }
<li> <a href="https://2016.igem.org/Team:UCLA/HP/Gold">★ Gold </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Integrated_Practices"> ★ Integrated Practices </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Engagement">★ Engagement </a></li>
+
                    </ul>
+
                </li>
+
  
 +
      .header-logo-general-container {
 +
        position: absolute;
 +
        right: 1em;
 +
        top: 2.9em;
 +
      }
  
<li class="menu_item"> <div class="icon plus"></div> AWARDS
+
      .dropdown {
<ul class="submenu">
+
        display: inline-block;
<li><a href="https://2016.igem.org/Team:UCLA/Entrepreneurship"> ★ Entrepreneurship </a></li>
+
        width: 11em;
<li> <a href="https://2016.igem.org/Team:UCLA/Hardware"> ★ Hardware </a></li>
+
      }
<li> <a href="https://2016.igem.org/Team:UCLA/Software">★ Software </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Measurement">★  Measurement </a></li>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Model">★ Model </a></li>
+
  
                    </ul>
+
      .dropdown:hover {
                </li>
+
        background-color: #001a66;
</ul>
+
        border-top-right-radius: 10px;
 +
        border-top-left-radius: 10px;
 +
      }
  
</div>
+
      .dropdown:hover .dropdown-content {
 +
        background-color: #001a66;
 +
        border-bottom-right-radius: 10px;
 +
        border-bottom-left-radius: 10px;
 +
      }
  
-->
+
      .dropdown a {
 +
        display: inline-block;
 +
        width: 100%;
 +
        color: white;
 +
        text-align: center;
 +
        text-decoration: none;
 +
        font-size: 1.2em;
 +
        cursor: pointer;
 +
      }
  
<div class="content_wrapper">
+
      .dropdown-content {
 +
        display: none;
 +
        position: absolute;
 +
        width: 11em;
 +
        background-color: #003366;
 +
      }
  
 +
      .dropdown:hover .dropdown-content { display: block; }
  
 +
      .dropdown-content a:last-child:hover {
 +
        border-bottom-left-radius: 10px;
 +
        border-bottom-right-radius: 10px;
 +
      }
  
<h1 id="team_name">  </h1>
+
      .dropdown-content a {
<h4 id="page_name">  </h4>
+
        color: white;
 +
        padding-top: .7em;
 +
        padding-bottom: .7em;
 +
        text-align: center;
 +
        text-decoration: none;
 +
        display: block;
 +
        border-top-style: solid;
 +
        border-top-color: white;
 +
        border-top-width: 2px;
 +
      }
  
 +
      .dropdown-content a:hover { background-color: #001a33; }
  
 +
      #project-header {
 +
        width: 100%;
 +
        height: 12em;
 +
        background-color: #1b1b32;
 +
        border-top: solid 1.5px white;
 +
        border-bottom: solid 1px white;
 +
        text-align: center;
 +
      }
  
 +
    </style>
  
 +
  </head>
  
 +
<link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/customcss?action=raw&amp;ctype=text/css" />
 +
    <div id="header-bar">
 +
      <div id="header-logo-ucla-container">
 +
        <a href="https://2016.igem.org/Team:UCLA"><img id="header-logo-ucla" src="https://static.igem.org/mediawiki/2016/8/8f/UCLA_iGEM_Logo.png"></a>
 +
      </div>
 +
      <div class="header-logo-general-container">
 +
        <a target="_blank" href="https://2016.igem.org"><img class="header-logo-general" src="https://static.igem.org/mediawiki/2016/b/b2/T--UCLA--logowhite.png"></a>
 +
      </div>
 +
      <div id="header-menu-container">
 +
        <ul id="header-menu">
  
 +
          <li class="dropdown">
 +
            <a><h2>Projects</h2></a>
 +
            <div class="dropdown-content">
 +
              <a href="https://2016.igem.org/Team:UCLA/Protein_Cages">Protein Cages</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Super_Soldier_Bacteria">Super Soldier Systems</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/InterLab">Interlab Study</a>
 +
            </div>
 +
          </li>
  
 +
          <li class="dropdown">
 +
            <a href="https://2016.igem.org/Team:UCLA/Parts"><h2>Parts</h2></a>
 +
            <div class="dropdown-content">
 +
              <a href="https://2016.igem.org/Team:UCLA/Basic_Part">Basic Parts</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Composite_Part">Composite Parts</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Part_Collection">Part Collection</a>
 +
            </div>
 +
          </li>
  
 +
          <li class="dropdown">
 +
            <a><h2>Outreach</h2></a>
 +
            <div class="dropdown-content">
 +
              <a href="https://2016.igem.org/Team:UCLA/HP/Silver">Human Practices</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Collaborations">Collaborations</a>
 +
            </div>
 +
          </li>
  
<script>
+
          <li class="dropdown">
 +
            <a><h2>Judging</h2></a>
 +
            <div class="dropdown-content">
 +
              <a href="https://2016.igem.org/Team:UCLA/Medal_Requirements">Medal Requirements</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Safety">Safety</a>
 +
            </div>
 +
          </li>
  
 +
          <li class="dropdown">
 +
            <a><h2>Team</h2></a>
 +
            <div class="dropdown-content">
 +
              <a href="https://2016.igem.org/Team:UCLA/Team">Meet the Team</a>
 +
              <a href="https://2016.igem.org/Team:UCLA/Attributions">Attributions</a>
 +
            </div>
 +
          </li>
 +
 +
        </ul>
 +
      </div>
 +
    </div>
 +
 +
<script>
 
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
 
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
  
Line 227: Line 304:
  
 
</script>
 
</script>
<script src="https://2016.igem.org/Team:UCLA/core/foundationjs?action=raw&amp;ctype=text/javascript" type="text/javascript"></script>
 
  
  
 
</html>
 
</html>

Latest revision as of 03:54, 20 October 2016