Team:UCLondon/Templates/timeline-box
From 2012e.igem.org
(Difference between revisions)
(12 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<!-- Button--> | <!-- Button--> | ||
- | <span class="openTL | + | <span class="openTL white-but" style="text-align:center; width:60px; margin:0 auto;"></html>{{{button-name}}}<html></span> |
<div id="shadowTL" style="display:none;" > | <div id="shadowTL" style="display:none;" > | ||
Line 13: | Line 13: | ||
<style> | <style> | ||
- | # | + | #shadowTL { |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); | background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from( rgba(255, 255, 255, 1) ), to( rgb(249, 249, 249) ) ); | ||
Line 28: | Line 28: | ||
position:fixed; | position:fixed; | ||
- | height: | + | height: 450px; |
- | width: | + | width:700px; |
margin:auto; | margin:auto; | ||
z-index: 999999; | z-index: 999999; | ||
Line 36: | Line 36: | ||
- | . | + | .white-but { |
cursor: pointer; | cursor: pointer; | ||
- | border: 1px solid # | + | border: 1px solid #808080; |
background: #00b700; | background: #00b700; | ||
- | background: -webkit-gradient(linear, left top, left bottom, from(# | + | background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc)); |
- | background: -webkit-linear-gradient(top, # | + | background: -webkit-linear-gradient(top, #ffffff, #cccccc); |
- | background: -moz-linear-gradient(top, # | + | background: -moz-linear-gradient(top, #ffffff, #cccccc); |
- | background: -ms-linear-gradient(top, # | + | background: -ms-linear-gradient(top, #ffffff, #cccccc); |
- | background: -o-linear-gradient(top, # | + | background: -o-linear-gradient(top, #ffffff, #cccccc); |
- | background-image: -ms-linear-gradient(top, # | + | background-image: -ms-linear-gradient(top, #ffffff 0%, #cccccc 100%); |
padding: 10.5px 21px; | padding: 10.5px 21px; | ||
-webkit-border-radius: 6px; | -webkit-border-radius: 6px; | ||
Line 54: | Line 54: | ||
box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0; | box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0; | ||
text-shadow: #7ea4bd 0 1px 0; | text-shadow: #7ea4bd 0 1px 0; | ||
- | color: # | + | color: #808080; |
font-size: 14px; | font-size: 14px; | ||
font-family: helvetica, serif; | font-family: helvetica, serif; | ||
Line 62: | Line 62: | ||
- | . | + | .white-but:active { |
text-shadow: #1e4158 0 1px 0; | text-shadow: #1e4158 0 1px 0; | ||
border: 1px solid #008040; | border: 1px solid #008040; | ||
background: #80ff00; | background: #80ff00; | ||
- | background: -webkit-gradient(linear, left top, left bottom, from(# | + | background: -webkit-gradient(linear, left top, left bottom, from(#cccccc), to(#ffffff)); |
- | background: -webkit-linear-gradient(top, # | + | background: -webkit-linear-gradient(top, #cccccc, #ffffff); |
- | background: -moz-linear-gradient(top, # | + | background: -moz-linear-gradient(top, #cccccc, #ffffff); |
- | background: -ms-linear-gradient(top, # | + | background: -ms-linear-gradient(top, #cccccc, #ffffff); |
- | background: -o-linear-gradient(top, # | + | background: -o-linear-gradient(top, #cccccc, #ffffff); |
- | background-image: -ms-linear-gradient(top, # | + | background-image: -ms-linear-gradient(top, #cccccc 0%, #ffffff 100%); |
color: #fff; | color: #fff; | ||
} | } | ||
- | |||
</style> | </style> | ||
Line 83: | Line 82: | ||
- | <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> | + | <!--<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>--> |
<script> | <script> | ||
Line 112: | Line 111: | ||
var closeBoxTL = function() { | var closeBoxTL = function() { | ||
- | $('# | + | $('#shadowTL').toggle('slow', function() { |
// $(this).children('#box-contentTL').html(loading); | // $(this).children('#box-contentTL').html(loading); | ||
}); | }); | ||
Line 124: | Line 123: | ||
$('body').on('click', '.openTL', openBoxTL); | $('body').on('click', '.openTL', openBoxTL); | ||
- | $('body').off('click', '#close- | + | $('body').off('click', '#close-boxTL', closeBoxTL); |
- | $('body').on('click', '#close- | + | $('body').on('click', '#close-boxTL', closeBoxTL); |
}); | }); |
Latest revision as of 17:59, 26 October 2012
{{{button-name}}}