Difference between revisions of "Team:IIT Delhi/team2"
Line 28: | Line 28: | ||
background-size:100% 100%; | background-size:100% 100%; | ||
} | } | ||
+ | |||
.icons{ | .icons{ | ||
position:absolute; | position:absolute; | ||
− | |||
margin-top:2%; | margin-top:2%; | ||
+ | width:6%; | ||
-webkit-transition: all 1s ease; | -webkit-transition: all 1s ease; | ||
-moz-transition: all 1s ease; | -moz-transition: all 1s ease; | ||
-o-transition: all 1s ease; | -o-transition: all 1s ease; | ||
− | transition all 1s ease | + | transition all 1s ease; |
} | } | ||
.iconActive{ | .iconActive{ | ||
− | width: | + | width:12%; |
+ | z-index:1; | ||
+ | opacity:4; | ||
} | } | ||
+ | |||
#IITDigem_logo{ | #IITDigem_logo{ | ||
position:absolute; | position:absolute; | ||
margin-top:1%; | margin-top:1%; | ||
− | margin-left: | + | margin-left:2%; |
width:17%; | width:17%; | ||
} | } | ||
#tour{ | #tour{ | ||
+ | position:absolute; | ||
margin-top:2%; | margin-top:2%; | ||
− | margin-left: | + | margin-left:80%; |
} | } | ||
#leftNav{ | #leftNav{ | ||
Line 57: | Line 62: | ||
height:700px; | height:700px; | ||
float:left; | float:left; | ||
− | margin-top: | + | margin-top:12% |
} | } | ||
#wikicontent{ | #wikicontent{ | ||
border:solid 2px red; | border:solid 2px red; | ||
background:#fff; | background:#fff; | ||
+ | opacity:0.2; | ||
height:700px; | height:700px; | ||
width:80%; | width:80%; | ||
position:absolute; | position:absolute; | ||
margin-left:18%; | margin-left:18%; | ||
− | margin-top: | + | margin-top:12%; |
+ | } | ||
+ | .smenu{ | ||
+ | color:white; | ||
+ | display:none; | ||
+ | position:absolute; | ||
+ | margin-left:4% !important; | ||
+ | margin-top:3% !important; | ||
+ | z-index:2; | ||
+ | list-style-type:none !important; | ||
} | } | ||
Line 73: | Line 88: | ||
<img id="IITDigem_logo" src="https://static.igem.org/mediawiki/2015/f/ff/IITDigem_logo.png"> | <img id="IITDigem_logo" src="https://static.igem.org/mediawiki/2015/f/ff/IITDigem_logo.png"> | ||
<nav> | <nav> | ||
− | < | + | <div class="iconsDiv" style="margin-left:22%;"> |
− | + | <img class="icons" id="icon1" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | |
− | + | <ul class="smenu"> | |
− | < | + | <li>Menu1</li> |
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
− | < | + | <div class="iconsDiv" style="margin-left:29%;"> |
− | + | <img class="icons" id="icon2" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | |
− | <img class="icons" id=" | + | <ul class="smenu"> |
− | <img class="icons" id=" | + | <li>Menu1</li> |
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:36%;"> | ||
+ | <img class="icons" id="icon3" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:43%;"> | ||
+ | <img class="icons" id="icon4" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:50%;"> | ||
+ | <img class="icons" id="icon5" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:57%;"> | ||
+ | <img class="icons" id="icon6" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:64%;"> | ||
+ | <img class="icons" id="icon7" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | |||
+ | <div class="iconsDiv" style="margin-left:71%;"> | ||
+ | <img class="icons" id="icon8" src="https://static.igem.org/mediawiki/2015/1/12/IITDproject_icon.png"> | ||
+ | |||
+ | <ul class="smenu"> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | <li>Menu1</li> | ||
+ | </ul> | ||
+ | </div> | ||
</nav> | </nav> | ||
Line 104: | Line 203: | ||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
− | $(". | + | $(".iconsDiv").hover( |
function(){ | function(){ | ||
− | $(this).addClass("iconActive"); | + | $(this).css("background-color","black"); |
+ | $(this).css("z-index","3"); | ||
+ | $(this).children(".icons").addClass("iconActive"); | ||
+ | $(this).children("ul").css("display","block"); | ||
}, | }, | ||
function(){ | function(){ | ||
− | $(this).removeClass("iconActive"); | + | $(this).css("background-color","transparent"); |
+ | $(this).css("z-index","0"); | ||
+ | $(this).children(".icons").removeClass("iconActive"); | ||
+ | $(this).children("ul").css("display","none"); | ||
} | } | ||
); | ); |
Latest revision as of 20:51, 11 September 2015