Created
December 2, 2015 20:23
-
-
Save usualoma/ad2d860626fa62509f8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
user-select: none; | |
-moz-user-select: none; | |
-webkit-user-select: none; | |
-ms-user-select: none; | |
} | |
label { | |
display: block; | |
width: 290px; | |
height: 170px; | |
position: absolute; | |
z-index: 1; | |
background: rgb(230, 230, 230); | |
padding-top: 110px; | |
text-align: center; | |
} | |
<% 0.upto(9) do |i| %> | |
#radio-<%= i %>:checked ~ #layer-<%= i+1 %> { | |
z-index: <%= i+2 %>; | |
} | |
<% end %> | |
</style> | |
</head> | |
<body> | |
<form> | |
<% 0.upto(9) do |i| %> | |
<input type="radio" name="radio" id="radio-<%= i %>" /> | |
<% end %> | |
<% 9.downto(0) do |i| %> | |
<label for="radio-<%= i %>" id="layer-<%= i %>">Tap here!<br/><label for="radio-<%= i %>" id="layer-<%= i %>"></label> | |
<% end %> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment