Template:Team:KIT-Kyoto/mobile
From 2014.igem.org
(Difference between revisions)
Line 80: | Line 80: | ||
z-index:10; | z-index:10; | ||
} | } | ||
- | + | .accordion label { | |
+ | position: relative; | ||
+ | display: block; | ||
+ | border-bottom: 1px solid #ddd; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | .accordion label::after { | ||
+ | position: absolute; | ||
+ | top: 50%; | ||
+ | right: 10px; | ||
+ | display: block; | ||
+ | content: ''; | ||
+ | width: 8px; | ||
+ | height: 8px; | ||
+ | margin-top: -7px; | ||
+ | border-top: 1px solid #888; | ||
+ | border-right: 1px solid #888; | ||
+ | -webkit-transform: rotate(135deg); | ||
+ | transform: rotate(135deg); | ||
+ | } | ||
+ | .accordion .sentence { | ||
+ | position: relative; | ||
+ | height: 0; | ||
+ | overflow: hidden; | ||
+ | box-shadow: 0 1px 7px 0 rgba(0,0,0,0.1) inset; | ||
+ | transition: height .2s ease-in-out; | ||
+ | } | ||
+ | .accordion input:checked + label::after { | ||
+ | margin-top: -3px; | ||
+ | -webkit-transform: rotate(-45deg); | ||
+ | transform: rotate(-45deg); | ||
+ | } | ||
+ | .accordion input:checked ~ .sentence { | ||
+ | border-bottom: 1px solid #ccc; | ||
+ | } | ||
} | } | ||
</style> | </style> | ||
</head> | </head> |
Revision as of 17:39, 21 September 2014