For index.html: h3 cannot go inside label.

This commit is contained in:
ccd0 2015-10-27 00:25:37 -07:00
parent 6be7301d10
commit 312cc0a2db
2 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@
content
.match(/<\/h1>([^]*)<h2 id="more-information"/)[1]
.replace(
/(<h3 id="(.*?)">.*?<\/h3>)([^]*?)(?=<h)/g,
'<input hidden type="checkbox" id="$2-hide"><div><label for="$2-hide">$1</label>$3</div>'
/(<h3 id="(.*?)">)(.*?)(<\/h3>[^]*?)(?=<h)/g,
'<input hidden type="checkbox" id="$2-hide"><div>$1<label for="$2-hide">$3</label>$4</div>'
)
%>
<script>

View File

@ -89,7 +89,7 @@ span.hover > img {
z-index: 1;
}
}
h2 ~ p, h2 ~ p + ul, input + div, div > label ~ * {
h2 ~ p, h2 ~ p + ul, input + div, div > h3 ~ * {
margin-left: 1em;
}
input + div {
@ -100,6 +100,6 @@ input + div {
h3 {
display: inline;
}
input:checked + div > :not(label) {
input:checked + div > h3 ~ * {
display: none;
}