Template:Team:KIT-Kyoto/mobile

From 2014.igem.org

(Difference between revisions)
Line 8: Line 8:
$(".accordion label").click(function(){
$(".accordion label").click(function(){
$(".ac").animate({'height':'auto'},'slow','swing');
$(".ac").animate({'height':'auto'},'slow','swing');
-
         $(".accordion h2::after").css({'margin-top':'-3px','-webkit-transform':'rotate(-45deg)','transform':'rotate(-45deg)'});
+
         $(".accordion label::after").css({'margin-top':'-3px','-webkit-transform':'rotate(-45deg)','transform':'rotate(-45deg)'});
}
}
});
});
Line 90: Line 90:
z-index:10;
z-index:10;
}
}
-
.accordion h2 {
+
.accordion label {
position: relative;
position: relative;
display: block;
display: block;
cursor: pointer;
cursor: pointer;
}
}
-
.accordion h2::after {
+
.accordion label::after {
position: absolute;
position: absolute;
top: 50%;
top: 50%;

Revision as of 18:21, 21 September 2014