Skip to content

Instantly share code, notes, and snippets.

@marwinxxii
Created March 5, 2019 20:51
Show Gist options
  • Save marwinxxii/0a5ea89d41e0b6a53c16a00dbd77fb4c to your computer and use it in GitHub Desktop.
Save marwinxxii/0a5ea89d41e0b6a53c16a00dbd77fb4c to your computer and use it in GitHub Desktop.
body {
width: 280px;
margin: 0;
padding: 0;
}
.shooter-1 {
padding: 55px 0 55px 0;
background-color: #fcf8e3;
border-bottom: 1px dashed #cccccc;
}
.shooter-2 {
padding: 55px 0 55px 0;
background-color: #d9edf7;
}
.target {
display: flex;
justify-content: space-between;
width: 200px;
height: 25px;
margin: 0 auto;
padding: 10px 15px 10px 15px;
overflow: hidden;
list-style: none;
background-color: white;
border-radius: 2px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.target li {
position: relative;
width: 22px;
height: 22px;
font-size: 0;
background-color: #333333;
border: 1px solid black;
border-radius: 50%;
}
.hitbox {
width: 10px;
height: 10px;
margin: 6px auto;
background-color: #999999;
border-radius: 50%;
}
.lever {
position: absolute;
top: -2px;
left: -2px;
width: 26px;
height: 26px;
background-color: #f5f5f5;
border-radius: 50%;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.lever span {
position: absolute;
top: 12px;
left: 11px;
width: 5px;
height: 25px;
background-color: #f5f5f5;
box-shadow: -1px 15px 2px rgba(0, 0, 0, 0.3), 1px 15px 2px rgba(0, 0, 0, 0.3);
}
.miss .lever {
display: none;
}
.shooter-2 .target li:nth-child(1) .lever {
display: none;
}
.shooter-2 .target li:nth-child(4) .lever {
display: none;
}
.shooter-2 .target li:nth-child(5) .lever {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment