Team:Carnegie Mellon

From 2014.igem.org

(Difference between revisions)
(Replaced content with "Template:Carnegie_Mellon:CarnegieMellon/CSS")
Line 1: Line 1:
-
Template:Carnegie_Mellon:CarnegieMellon/CSS
+
<html lang="en">
 +
  <head>
 +
 
 +
  <meta charset="utf-8">
 +
    <title>Carousel Template &middot; Bootstrap</title>
 +
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
    <meta name="description" content="">
 +
    <meta name="author" content="">
 +
 
 +
    <!-- Le styles -->
 +
    <link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet">
 +
    <link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet">
 +
    <style>
 +
 
 +
    /* GLOBAL STYLES
 +
    -------------------------------------------------- */
 +
    /* Padding below the footer and lighter body text */
 +
 
 +
    body {
 +
      padding-bottom: 40px;
 +
    background: #333333;
 +
      color: #5a5a5a;
 +
  font-size: 12px;
 +
    }
 +
 
 +
 
 +
    /* CUSTOMIZE THE NAVBAR
 +
    -------------------------------------------------- */
 +
 
 +
    /* Special class on .container surrounding .navbar, used for positioning it into place. */
 +
    .navbar-wrapper {
 +
      position: absolute;
 +
      top: 0;
 +
      left: 0;
 +
      right: 0;
 +
      z-index: 10;
 +
      margin-top: 80px;
 +
      margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
 +
    }
 +
    .navbar-wrapper .navbar {
 +
 
 +
    }
 +
 
 +
    /* Remove border and change up box shadow for more contrast */
 +
    .navbar .navbar-inner {
 +
width:80%;
 +
      border: 0;
 +
      -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
 +
        -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
 +
              box-shadow: 0 2px 10px rgba(0,0,0,.25);
 +
    }
 +
 
 +
    /* Downsize the brand/project name a bit */
 +
    .navbar .brand {
 +
      padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
 +
      font-size: 16px;
 +
      font-weight: bold;
 +
      text-shadow: 0 -1px 0 rgba(0,0,0,.5);
 +
    }
 +
 
 +
    /* Navbar links: increase padding for taller navbar */
 +
    .navbar .nav > li > a {
 +
      padding: 15px 20px;
 +
    }
 +
 
 +
    /* Offset the responsive button for proper vertical alignment */
 +
    .navbar .btn-navbar {
 +
      margin-top: 10px;
 +
    }
 +
 
 +
 
 +
 
 +
    /* CUSTOMIZE THE CAROUSEL
 +
    -------------------------------------------------- */
 +
 
 +
    /* Carousel base class */
 +
    .carousel {
 +
      margin-bottom: 60px;
 +
 
 +
    }
 +
 
 +
    .carousel .container {
 +
      position: relative;
 +
      z-index: 9;
 +
    }
 +
 
 +
    .carousel-control {
 +
      height: 80px;
 +
      margin-top: 0;
 +
      font-size: 120px;
 +
      text-shadow: 0 1px 1px rgba(0,0,0,.4);
 +
      background-color: transparent;
 +
      border: 0;
 +
      z-index: 10;
 +
    }
 +
 
 +
    .carousel .item {
 +
      height: 500px;
 +
    }
 +
    .carousel img {
 +
      position: absolute;
 +
      top: 0;
 +
      left: 0;
 +
      min-width: 100%;
 +
      height: 500px;
 +
    }
 +
 
 +
    .carousel-caption {
 +
      background-color: transparent;
 +
 
 +
      position: static;
 +
      max-width: 550px;
 +
      padding: 0 20px;
 +
      margin-top: 500px;
 +
    }
 +
    .carousel-caption h1,
 +
    .carousel-caption .lead {
 +
      margin: 0;
 +
      line-height: 1.25;
 +
      color: #000000;
 +
      text-shadow: 0 1px 1px rgba(0,0,0,.4);
 +
    }
 +
    .carousel-caption .btn {
 +
      margin-top: 10px;
 +
    }
 +
 
 +
 
 +
 
 +
    /* MARKETING CONTENT
 +
    -------------------------------------------------- */
 +
 
 +
    /* Center align the text within the three columns below the carousel */
 +
    .marketing .span4 {
 +
width:25%;
 +
 
 +
      text-align: center;
 +
    }
 +
    .marketing h2 {
 +
      font-weight: normal;
 +
    }
 +
    .marketing .span4 p {
 +
      margin-left: 10px;
 +
      margin-right: 10px;
 +
    }
 +
 
 +
 
 +
    /* Featurettes
 +
    ------------------------- */
 +
 
 +
    .featurette-divider {
 +
width:82%;
 +
 
 +
      margin: 80px 0; /* Space out the Bootstrap <hr> more */
 +
    }
 +
    .featurette {
 +
width:82%;
 +
 
 +
      padding-top: 100px; /* Vertically center images part 1: add padding above and below text. */
 +
      overflow: hidden; /* Vertically center images part 2: clear their floats. */
 +
    }
 +
    .featurette-image {
 +
      margin-top: -120px; /* Vertically center images part 3: negative margin up the image the same amount of the padding to center it. */
 +
    }
 +
 
 +
    /* Give some space on the sides of the floated elements so text doesn't run right into it. */
 +
    .featurette-image.pull-left {
 +
      margin-right: 40px;
 +
    }
 +
    .featurette-image.pull-right {
 +
      margin-left: 40px;
 +
    }
 +
 
 +
    /* Thin out the marketing headings */
 +
    .featurette-heading {
 +
      font-size: 50px;
 +
      font-weight: 300;
 +
      line-height: 1;
 +
      letter-spacing: -1px;
 +
    }
 +
 
 +
 
 +
 
 +
    /* RESPONSIVE CSS
 +
    -------------------------------------------------- */
 +
 
 +
    @media (max-width: 979px) {
 +
 
 +
      .container.navbar-wrapper {
 +
        margin-bottom: 0;
 +
        width: auto;
 +
      }
 +
      .navbar-inner {
 +
        border-radius: 0;
 +
        margin: -20px 0;
 +
      }
 +
 
 +
      .carousel .item {
 +
        height: 500px;
 +
      }
 +
      .carousel img {
 +
        width: auto;
 +
        height: 500px;
 +
      }
 +
 
 +
      .featurette {
 +
        height: auto;
 +
        padding: 0;
 +
      }
 +
      .featurette-image.pull-left,
 +
      .featurette-image.pull-right {
 +
        display: block;
 +
        float: none;
 +
        max-width: 20%;
 +
        margin: 0 auto 20px;
 +
      }
 +
    }
 +
 
 +
 
 +
    @media (max-width: 767px) {
 +
 
 +
      .navbar-inner {
 +
        margin: -20px;
 +
      }
 +
 
 +
      .carousel {
 +
        margin-left: -20px;
 +
        margin-right: -20px;
 +
      }
 +
      .carousel .container {
 +
 
 +
      }
 +
      .carousel .item {
 +
        height: 300px;
 +
      }
 +
      .carousel img {
 +
        height: 300px;
 +
      }
 +
      .carousel-caption {
 +
        width: 65%;
 +
        padding: 0 70px;
 +
        margin-top: 100px;
 +
      }
 +
      .carousel-caption h1 {
 +
        font-size: 30px;
 +
      }
 +
      .carousel-caption .lead,
 +
      .carousel-caption .btn {
 +
        font-size: 18px;
 +
      }
 +
 
 +
      .marketing .span4 + .span4 {
 +
        margin-top: 40px;
 +
      }
 +
 
 +
      .featurette-heading {
 +
        font-size: 30px;
 +
      }
 +
      .featurette .lead {
 +
        font-size: 18px;
 +
        line-height: 1.5;
 +
      }
 +
 
 +
    }
 +
    </style>
 +
 
 +
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
 +
    <!--[if lt IE 9]>
 +
      <script src="../assets/js/html5shiv.js"></script>
 +
    <![endif]-->
 +
 
 +
    <!-- Fav and touch icons -->
 +
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
 +
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
 +
      <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
 +
                    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
 +
                                  <link rel="shortcut icon" href="../assets/ico/favicon.png">
 +
  </head>
 +
 
 +
  <body>
 +
 
 +
 
 +
 
 +
    <!-- NAVBAR
 +
    ================================================== -->
 +
    <div class="navbar-wrapper">
 +
      <!-- Wrap the .navbar in .container to center it within the absolutely positioned parent. -->
 +
      <div class="container">
 +
 
 +
        <div class="navbar navbar-inverse">
 +
          <div class="navbar-inner">
 +
            <!-- Responsive Navbar Part 1: Button for triggering responsive navbar (not covered in tutorial). Include responsive CSS to utilize. -->
 +
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
 +
              <span class="icon-bar"></span>
 +
              <span class="icon-bar"></span>
 +
            </button>
 +
            <a class="brand" href="https://igem.org/Main_Page">iGEM</a>
 +
            <!-- Responsive Navbar Part 2: Place all navbar contents you want collapsed withing .navbar-collapse.collapse. -->
 +
            <div class="nav-collapse collapse">
 +
              <ul class="nav">
 +
                <li class="active"><a href="https://2014.igem.org/Team:Carnegie_Mellon">Home</a></li>
 +
<li class="dropdown">
 +
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Our Project <b class="caret"></b></a>
 +
                  <ul class="dropdown-menu">
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Overview">Overview</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Our_Sensor">Our Sensor</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Colaborations">Collaborations</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Human_Practices">Human Practices</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Achievements">Achievements</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Future_Plans">Future Plans</a></li>
 +
                  </ul>
 +
                </li>                <li class="dropdown">
 +
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Team <b class="caret"></b></a>
 +
                  <ul class="dropdown-menu">
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Bios">Bios</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Advisors">Advisors</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Attributions">Attributions</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Sponsors">Sponsors</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Gallery">Gallery</a></li>
 +
                  </ul>
 +
                </li>
 +
<li class="dropdown">
 +
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Outreach <b class="caret"></b></a>
 +
                  <ul class="dropdown-menu">
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/DNA_Extraction">DNA Extraction</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Creature_Feature">Creature Feature</a></li>
 +
                  </ul>
 +
                </li>
 +
<li class="dropdown">
 +
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Notebook <b class="caret"></b></a>
 +
                  <ul class="dropdown-menu">
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/InterLab">Inter Lab Study</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Protein">Fluorescent Protein Evaluation</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Superoxide">Superoxide Generator Improvement</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Sensor">Sensor</a></li>
 +
                  </ul>
 +
                </li>
 +
<li class="dropdown">
 +
                  <a href="#" class="dropdown-toggle" data-toggle="dropdown">Modeling <b class="caret"></b></a>
 +
                  <ul class="dropdown-menu">
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/SensorModel">Sensor</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Carnegie_Mellon/Fish">Fish Populations</a></li>
 +
                  </ul>
 +
                </li>
 +
              </ul>
 +
            </div><!--/.nav-collapse -->
 +
          </div><!-- /.navbar-inner -->
 +
        </div><!-- /.navbar -->
 +
 
 +
      </div> <!-- /.container -->
 +
    </div><!-- /.navbar-wrapper -->
 +
 
 +
 
 +
 
 +
    <!-- Carousel
 +
    ================================================== -->
 +
    <div id="myCarousel" class="carousel slide">
 +
      <div class="carousel-inner">
 +
        <div class="item active">
 +
          <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTOnyR8iWr-1Ge9YcJHLVPfRX8YYJbeipjsJcPMYcPXgSae5FAlBQ" alt="">
 +
          <div class="container">
 +
            <div class="carousel-caption">
 +
              <h1>Project Title.</h1>
 +
              <p class="lead">Our project description...</p>
 +
            </div>
 +
          </div>
 +
        </div>
 +
        <div class="item">
 +
          <img src="http://iloveubuntu.net/pictures_me/saucy%20salamander%20gtk_3%203.8.jpg" alt="">
 +
          <div class="container">
 +
            <div class="carousel-caption">
 +
              <h1>Another example headline.</h1>
 +
              <p class="lead">Our project description...</p>
 +
              <a class="btn btn-large btn-primary" href="#">Learn more</a>
 +
            </div>
 +
          </div>
 +
        </div>
 +
        <div class="item">
 +
          <img src="http://www.clker.com/cliparts/a/a/5/6/11954240121535699699fzap_salamander.svg.hi.png" alt="">
 +
          <div class="container">
 +
            <div class="carousel-caption">
 +
              <h1>One more for good measure.</h1>
 +
              <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
 +
              <a class="btn btn-large btn-primary" href="#">Browse gallery</a>
 +
            </div>
 +
          </div>
 +
        </div>
 +
      </div>
 +
      <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
 +
      <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
 +
    </div><!-- /.carousel -->
 +
 
 +
 
 +
    <!-- Marketing messaging and featurettes
 +
    ================================================== -->
 +
    <!-- Wrap the rest of the page in another container to center all the content. -->
 +
 
 +
    <div class="container marketing">
 +
 
 +
      <!-- Three columns of text below the carousel -->
 +
      <div class="row">
 +
        <div class="span4">
 +
          <img class="http://img1.wikia.nocookie.net/__cb20130427133355/harrypotter/images/4/47/Harry-potter122.jpg">
 +
          <h2>Heading</h2>
 +
          <p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
 +
          <p><a class="btn" href="#">View details &raquo;</a></p>
 +
        </div><!-- /.span4 -->
 +
        <div class="span4">
 +
          <img class="http://img3.wikia.nocookie.net/__cb20120413221757/harrypotter/images/0/0a/Hermione_Granger_OOTP_promo_f_1.jpg" data-src="http://img3.wikia.nocookie.net/__cb20120413221757/harrypotter/images/0/0a/Hermione_Granger_OOTP_promo_f_1.jpg">
 +
          <h2>Heading</h2>
 +
          <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
 +
          <p><a class="btn" href="#">View details &raquo;</a></p>
 +
        </div><!-- /.span4 -->
 +
        <div class="span4">
 +
          <img class="img-circle" data-src="http://img3.wikia.nocookie.net/__cb20120413221757/harrypotter/images/0/0a/Hermione_Granger_OOTP_promo_f_1.jpg">
 +
          <h2>Heading</h2>
 +
          <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
 +
          <p><a class="btn" href="#">View details &raquo;</a></p>
 +
        </div><!-- /.span4 -->
 +
      </div><!-- /.row -->
 +
 
 +
 
 +
      <!-- START THE FEATURETTES -->
 +
 
 +
      <hr class="featurette-divider">
 +
 
 +
      <div class="featurette">
 +
<img class="featurette-image pull-right" src="http://img1.wikia.nocookie.net/__cb20130427133355/harrypotter/images/4/47/Harry-potter122.jpg">
 +
        <h2 class="featurette-heading">First featurette headline. <span class="muted">It'll blow your mind.</span></h2>
 +
        <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
 +
      </div>
 +
 
 +
      <hr class="featurette-divider">
 +
 
 +
      <div class="featurette">
 +
        <img class="featurette-image pull-left" src="http://mbtipopculture.files.wordpress.com/2012/07/hermione.jpeg">
 +
        <h2 class="featurette-heading">Oh yeah, it's that good. <span class="muted">See for yourself.</span></h2>
 +
        <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
 +
      </div>
 +
 
 +
      <hr class="featurette-divider">
 +
 
 +
      <div class="featurette">
 +
        <img class="featurette-image pull-right" src="http://upload.wikimedia.org/wikipedia/en/5/5e/Ron_Weasley_poster.jpg">
 +
        <h2 class="featurette-heading">And lastly, this one. <span class="muted">Checkmate.</span></h2>
 +
        <p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
 +
      </div>
 +
 
 +
      <hr class="featurette-divider">
 +
 
 +
      <!-- /END THE FEATURETTES -->
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
    <!-- Le javascript
 +
    ================================================== -->
 +
    <!-- Placed at the end of the document so the pages load faster -->
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/jquery.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-transition.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-alert.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-modal.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-dropdown.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-scrollspy.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-tab.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-tooltip.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-popover.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-button.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-collapse.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-carousel.js"></script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-typeahead.js"></script>
 +
    <script>
 +
      !function ($) {
 +
        $(function(){
 +
          // carousel demo
 +
          $('#myCarousel').carousel()
 +
        })
 +
      }(window.jQuery)
 +
    </script>
 +
    <script src="http://getbootstrap.com/2.3.2/assets/js/holder/holder.js"></script>
 +
  </body>
 +
</html>

Revision as of 19:23, 29 July 2014

Carousel Template · Bootstrap

Heading

Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

View details »

Heading

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

View details »

Heading

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

View details »


First featurette headline. It'll blow your mind.

Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.


Oh yeah, it's that good. See for yourself.

Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.


And lastly, this one. Checkmate.

Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.