Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
<head> | <head> | ||
<meta name="viewport" content="width=device-width; initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> | <meta name="viewport" content="width=device-width; initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</script> | </script> | ||
<style type="text/css"> | <style type="text/css"> | ||
Line 88: | Line 81: | ||
z-index:10; | z-index:10; | ||
} | } | ||
- | . | + | .accordion label { |
position: relative; | position: relative; | ||
display: block; | display: block; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
- | . | + | |
+ | .accordion label::after { | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
Line 113: | Line 107: | ||
transition: height .2s ease-in-out; | transition: height .2s ease-in-out; | ||
} | } | ||
- | . | + | .accordion input:checked + label::after { |
margin-top: -3px; | margin-top: -3px; | ||
-webkit-transform: rotate(-45deg); | -webkit-transform: rotate(-45deg); | ||
transform: rotate(-45deg); | transform: rotate(-45deg); | ||
} | } | ||
- | . | + | |
+ | .accordion input:checked ~ div.ac { | ||
height: auto; | height: auto; | ||
} | } |
Revision as of 18:33, 21 September 2014