Team:Kyoto/Style
From 2010.igem.org
(Difference between revisions)
m |
(modify css.) |
||
Line 8: | Line 8: | ||
margin: 0em; | margin: 0em; | ||
padding: 0em; | padding: 0em; | ||
- | font: 1em | + | font-size: 1em; |
+ | font-family: sans-serif; | ||
+ | line-height: 1em; | ||
} | } | ||
/* Header *************************************************/ | /* Header *************************************************/ | ||
Line 49: | Line 51: | ||
{ | { | ||
position: absolute; | position: absolute; | ||
- | top: | + | top: 3.2em; |
left: 0em; | left: 0em; | ||
background: #84a2d4; | background: #84a2d4; | ||
Line 69: | Line 71: | ||
#body | #body | ||
{ | { | ||
- | padding: 0em 2em; | + | padding: 0em 2em 120px; |
font-size: 1.2em; | font-size: 1.2em; | ||
line-height: 1.5em; | line-height: 1.5em; | ||
+ | height: 100%; | ||
+ | position: relative; | ||
} | } | ||
#body h2 | #body h2 | ||
Line 110: | Line 114: | ||
{ | { | ||
padding: 0.5em; | padding: 0.5em; | ||
+ | } | ||
+ | /* Foot ***************************************************/ | ||
+ | #foot | ||
+ | { | ||
+ | position: absolute; | ||
+ | bottom: 0px; | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
} | } | ||
--> | --> | ||
Line 122: | Line 134: | ||
$(document).ready(function() | $(document).ready(function() | ||
{ | { | ||
- | $("#menu div:has(.selflink)").css("background","#84a2d4").next().show(); | + | $("#menu div:has(.selflink)") |
- | $("#menu ul:has(.selflink)").show().prev().css("background","#84a2d4"); | + | .css("background","#84a2d4") |
+ | .next().show(); | ||
+ | $("#menu ul:has(.selflink)") | ||
+ | .show() | ||
+ | .prev().css("background","#84a2d4"); | ||
$("#menu div") | $("#menu div") | ||
- | + | .mouseover(function() | |
- | + | { | |
- | + | $("#menu div").css("background","#aaaaaa"); | |
- | + | $("#menu ul").hide(); | |
- | + | $(this) | |
- | $(this). | + | .css("background","#84a2d4") |
- | + | .next().show(); | |
+ | }); | ||
+ | }); | ||
+ | //--> | ||
+ | </script> | ||
+ | <script type="text/javascript"> | ||
+ | <!-- | ||
+ | $("#foot img").error(function() | ||
+ | { | ||
+ | $(this) | ||
+ | .error(function(){}) | ||
+ | .attr("src", "http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg") | ||
+ | .closest("a").attr("link","http://www2.clustrmaps.com"); | ||
}); | }); | ||
//--> | //--> |
Revision as of 05:23, 25 March 2010