rough draft of checkbox hack

mistress
Xenofem 2018-12-19 16:31:12 -05:00
parent 17d96b86e0
commit e615061555
1 changed files with 43 additions and 26 deletions

View File

@ -39,6 +39,21 @@
transform: translate(-50%, -50%) rotate(360deg);
}
}
input[type=checkbox] {
width: 100%;
height: 100%;
opacity: 0;
}
#controls {
display: none;
position: absolute;
bottom: 10px;
left: 10px;
}
input[type=checkbox]:checked ~ #controls {
display: block;
}
</style>
</head>
<body>
@ -59,5 +74,7 @@
</g>
</svg>
</div>
<input type="checkbox">
<div id="controls"><a href="..">back</a></div>
</body>
</html>