Template:Team:UNAM Genomics Mexico/Templates/menulike

From 2012.igem.org

(Difference between revisions)
 
(17 intermediate revisions not shown)
Line 35: Line 35:
<style type="text/css">
<style type="text/css">
 +
/* smart image enlarger starts here */
 +
/* If your images are not linking to other pages leave the links as <a href="#nogo"> Otherwise enlarger won't work in IE6 */
 +
 +
.ienlarger {
 +
float: left;
 +
clear: none; /* set to left or right if needed */
 +
padding-bottom: 5px; /* space between thumbs. Don't change this to margin */
 +
padding-right: 5px; /* space between thumbs and wrapping text when there is any text around it */
 +
}
 +
 +
.ienlarger a {
 +
display:block;
 +
text-decoration: none;
 +
/* add cursor:default; to this rule to disable the hand cursor */
 +
}
 +
 +
.ienlarger a:hover{ /* don't move this positioning to normal state */
 +
position:relative;
 +
}
 +
 +
.ienlarger span img {
 +
border: 1px solid #FFFFFF; /* adds a border around the image */
 +
margin-bottom: 8px; /* pushes the text down from the image */
 +
}
 +
 +
.ienlarger a span {  /* this is for the large image and the caption */
 +
position: absolute;
 +
display:none;
 +
color: #FFCC00; /* caption text colour */
 +
text-decoration: none;
 +
font-family: Arial, Helvetica, sans-serif;
 +
font-size: 13px; /* caption text size */
 +
background-color: #000000;
 +
font-weight: bold;
 +
padding-top: 10px;
 +
padding-right: 10px;
 +
padding-bottom: 13px;
 +
padding-left: 10px;
 +
}
 +
 +
.ienlarger img { /* leave or IE puts a border around links */
 +
border-width: 0;
 +
}
 +
 +
.ienlarger a:hover span {
 +
display:block;
 +
top: 50px; /* means the pop-up's top is 50px away from thumb's top */
 +
left: 50px; /* means the pop-up's left is 90px far from the thumb's left */
 +
z-index: 100;
 +
 +
/* If you want the pop-up open to the left of thumb, remove the left: 90px; and add 
 +
right: 90px; This would mean the right side of the pop-up is 90px far from the right side of thumb */
 +
 +
/* If you want the pop-up open above the thumb, remove the top: 50px; and add 
 +
bottom: 50px; This would mean the bottom of the pop-up is 50px far from the bottom of thumb */
 +
 +
/* add cursor:default; to this rule to disable the hand cursor only for the large image */
 +
}
 +
 +
.resize_thumb {
 +
width: 150px; /* enter desired thumb width here */
 +
height : auto;
 +
}
 +
 +
/* smart image enlarger ends here */
/* Menu Style Definitions */
/* Menu Style Definitions */
Line 42: Line 107:
border-bottom: none;
border-bottom: none;
-
}
 
-
h1{
 
-
margin:20px 20px 10px 20px;
 
-
font-size:42px;
 
-
color:#202020;
 
-
font-family:'Rochester',Georgia, serif;
 
-
text-align:left;
 
-
font-weight:400;
 
-
text-shadow:1px 1px 1px #fff;
 
-
    text-align:center;
 
}
}
Line 385: Line 440:
bottom:0px;
bottom:0px;
left:85px;
left:85px;
-
z-index:100;
+
z-index:300;
}
}
Line 395: Line 450:
width:162px;
width:162px;
height:60px;
height:60px;
-
z-index:15;
+
z-index:150;
}
}
Line 405: Line 460:
height:0px;
height:0px;
left:0px;
left:0px;
-
z-index:14;
+
z-index:140;
}
}
Line 444: Line 499:
display:none;
display:none;
background-color: #FFF;
background-color: #FFF;
 +
        z-index: 40;
}
}
Line 465: Line 521:
#tablecontentbg{
#tablecontentbg{
background-image: url("http://2012.igem.org/wiki/images/c/c4/Unamgenomicsbg.png");
background-image: url("http://2012.igem.org/wiki/images/c/c4/Unamgenomicsbg.png");
 +
}
 +
#contentcolumnwhite{
 +
width: 282px;
 +
height=150px;
 +
margin-left: 312px; /*Margins for content column. Should be "0 right-column-width 0 left-column-width*/
 +
background: #ffffff;
 +
-webkit-box-shadow: 5px 5px 8px #818181;
 +
-moz-box-shadow: 5px 5px 8px #818181;
 +
-moz-border-radius-bottomleft: 25px;
 +
-moz-border-radius-bottomright: 25px;
 +
-moz-border-radius-topleft: 25px;
 +
-moz-border-radius-topright: 25px;
 +
-webkit-border-bottom-left-radius: 25px;
 +
-webkit-border-bottom-right-radius: 25px;
 +
-webkit-border-top-left-radius: 25px;
 +
-webkit-border-top-right-radius: 25px;
 +
}
 +
#contentcolumnblack{
 +
width: 282px;
 +
height=150px;
 +
margin-left: 312px; /*Margins for content column. Should be "0 right-column-width 0 left-column-width*/
 +
background: #000000;
 +
-webkit-box-shadow: 5px 5px 8px #818181;
 +
-moz-box-shadow: 5px 5px 8px #818181;
 +
-moz-border-radius-bottomleft: 25px;
 +
-moz-border-radius-bottomright: 25px;
 +
-moz-border-radius-topleft: 25px;
 +
-moz-border-radius-topright: 25px;
 +
-webkit-border-bottom-left-radius: 25px;
 +
-webkit-border-bottom-right-radius: 25px;
 +
-webkit-border-top-left-radius: 25px;
 +
-webkit-border-top-right-radius: 25px;
}
}
#contentcolumn{
#contentcolumn{
Line 605: Line 693:
/*on hover stuff*/
/*on hover stuff*/
-
.thumbnailWrapper { width:600px; margin:0px auto; } /* not important */
+
.thumbnailWrapper { width:600px; display:block; padding-right:30px; } /* not important */
.thumbnailWrapper ul {  
.thumbnailWrapper ul {  
Line 620: Line 708:
.thumbnailWrapper ul li a img {  
.thumbnailWrapper ul li a img {  
-
width:200px; /* not important, the pics we use here are too big */
+
height:300px; /* not important, the pics we use here are too big */
position:relative; /* so we can use top and left positioning */
position:relative; /* so we can use top and left positioning */
border:none; /* remove the default blue border */
border:none; /* remove the default blue border */
Line 630: Line 718:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 651: Line 739:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 671: Line 759:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 691: Line 779:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 711: Line 799:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 731: Line 819:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 751: Line 839:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 770: Line 858:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 789: Line 877:
left:0px; /* start from left of the list item (container) */
left:0px; /* start from left of the list item (container) */
width:100%; /* stretch to the whole width of container */
width:100%; /* stretch to the whole width of container */
-
height:100%;
+
height:90%;
display:none; /* hide by default */
display:none; /* hide by default */
/* styling bellow */
/* styling bellow */
Line 1,490: Line 1,578:
});
});
</script>
</script>
 +
<script>
 +
var $slider_started = false;
 +
$(document).ready(function(){
 +
    var $total_slider = $('.top-slider-main > div').length;
 +
    var $label_width = $('.top-slider-main div .left').width();
 +
    var $max_slider_width = ($total_slider -1)*$label_width;
 +
    var $extra_margin = $('.top-slider-main div').width() - $label_width;
 +
    $('.top-slider-main div:not(.slider-box1) .left').mouseover(function(){
 +
        var $slider_index = $('.top-slider-main > div').index($(this).parent()) + 1;
 +
        if($(this).parent().hasClass('on'))
 +
        {
 +
            if($slider_started != 1)
 +
            {
 +
                $slider_started = 2;
 +
                for(i=$total_slider; i>=$slider_index; i--)
 +
                {
 +
                    var $elm = $('.top-slider-main .slider-box'+i);
 +
                    if($elm.hasClass('on'))
 +
                    {
 +
                        $elm.removeClass('on');
 +
                        var $left_margin = ($label_width*(i-1)) + $extra_margin;
 +
                        $elm.stop().animate({marginLeft : $left_margin}, 1500, function(){$slider_started = false;});
 +
                    }
 +
                }
 +
            }
 +
        }
 +
        else
 +
        {
 +
            if($slider_started != 2)
 +
            {
 +
                $slider_started = 1;
 +
                for(i=2; i<=$slider_index; i++)
 +
                {
 +
                    var $elm = $('.top-slider-main .slider-box'+i);
 +
                    if(!$elm.hasClass('on'))
 +
                    {
 +
                        $elm.addClass('on');
 +
                        var $left_margin = ($label_width*(i-1));
 +
                        $elm.stop().animate({marginLeft : $left_margin}, 1500, function(){$slider_started = false;});
 +
                    }
 +
                }
 +
            }
 +
        }
 +
    });
 +
});
 +
</script>
</html>
</html>

Latest revision as of 20:28, 25 October 2012


UNAM-Genomics_Mexico