A Pen by Carolyn Cochran on CodePen.
Created
March 30, 2017 23:14
-
-
Save cochrancj/21cdb5fcf1de42005be97fc728c810e7 to your computer and use it in GitHub Desktop.
#dailycssimages 49 - Dance Dance Revolution Mat
This file contains 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
<div class="container"> | |
<div class="mat"> | |
<div class="row-1 box"> | |
<div class="x"></div> | |
</div> | |
<div class="row-1 box"> | |
<div class="up"></div> | |
</div> | |
<div class="row-1 box"> | |
<div class="circle"></div> | |
</div> | |
<div class="row-2 box"> | |
<div class="left"></div> | |
</div> | |
<div class="row-2 box"> | |
<div class="center">DDR</div> | |
</div> | |
<div class="row-2 box"> | |
<div class="right"></div> | |
</div> | |
<div class="row-3 box"> | |
<div class="triangle"></div> | |
</div> | |
<div class="row-3 box"> | |
<div class="down"></div> | |
</div> | |
<div class="row-3 box"> | |
<div class="square"></div> | |
</div> | |
</div> | |
</div> |
This file contains 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
// Source: https://ae01.alicdn.com/kf/HTB1rJ3LJVXXXXcmXVXXq6xXFXXXU/5pcs-Non-Slip-font-b-Dance-b-font-Revolution-Dancing-font-b-Pad-b-font-Mat.jpg |
This file contains 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
@import url('https://fonts.googleapis.com/css?family=Cuprum'); | |
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
font-family: 'Cuprum', sans-serif; | |
} | |
.mat { | |
width: 500px; | |
height: 500px; | |
border: 5px solid black; | |
border-radius: 5%; | |
display: -webkit-flex; | |
display: flex; | |
-webkit-align-items: center; | |
align-items: center; | |
-webkit-justify-content: center; | |
justify-content: center; | |
-webkit-flex-flow: row wrap; | |
flex-flow: row wrap; | |
-webkit-align-content: flex-end; | |
align-content: flex-end; | |
} | |
.box { | |
width: 100px; | |
height: 100px; | |
margin: 5%; | |
border-radius: 5%; | |
border: 5px solid black; | |
} | |
.row-1 { | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-direction: row; | |
flex-direction: row; | |
} | |
.row-2 { | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-direction: row; | |
flex-direction: row; | |
} | |
.row-3 { | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-direction: row; | |
flex-direction: row; | |
} | |
.x { | |
background: black; | |
height: 50px; | |
position: relative; | |
width: 20px; | |
transform: rotate(45deg); | |
top: 20px; | |
left: 35px; | |
} | |
.x:after { | |
background: black; | |
content: ""; | |
height: 20px; | |
left: -15px; | |
position: absolute; | |
top: 15px; | |
width: 50px; | |
} | |
.up { | |
width: 0; | |
height: 0; | |
border-left: 25px solid transparent; | |
border-right: 25px solid transparent; | |
border-bottom: 30px solid black; | |
position: relative; | |
top: 15px; | |
left: 20px; | |
} | |
.up:after { | |
width: 30px; | |
height: 30px; | |
background-color: black; | |
content: ""; | |
display: block; | |
position: relative; | |
top: 30px; | |
left: -15px; | |
} | |
.circle { | |
width: 50px; | |
height: 50px; | |
border-radius: 50%; | |
background-color: black; | |
position: relative; | |
left: 20px; | |
top: 20px; | |
} | |
.left { | |
width: 0; | |
height: 0; | |
border-left: 25px solid transparent; | |
border-right: 25px solid transparent; | |
border-bottom: 30px solid black; | |
position: relative; | |
top: 30px; | |
left: 5px; | |
transform: rotate(-90deg); | |
-ms-transform: rotate(-90deg); | |
-webkit-transform: rotate(-90deg); | |
} | |
.left:after { | |
width: 30px; | |
height: 30px; | |
background-color: black; | |
content: ""; | |
display: block; | |
position: relative; | |
top: 30px; | |
left: -15px; | |
} | |
.center { | |
line-height: 90px; | |
color: black; | |
font-weight: bold; | |
font-size: 2em; | |
text-align: center; | |
position: relative; | |
left: 20px; | |
} | |
.right { | |
width: 0; | |
height: 0; | |
border-left: 25px solid transparent; | |
border-right: 25px solid transparent; | |
border-bottom: 30px solid black; | |
position: relative; | |
top: 30px; | |
left: 40px; | |
transform: rotate(90deg); | |
-ms-transform: rotate(90deg); | |
-webkit-transform: rotate(90deg); | |
} | |
.right:after { | |
width: 30px; | |
height: 30px; | |
background-color: black; | |
content: ""; | |
display: block; | |
position: relative; | |
top: 30px; | |
left: -15px; | |
} | |
.triangle { | |
width: 0; | |
height: 0; | |
border-left: 25px solid transparent; | |
border-right: 25px solid transparent; | |
border-bottom: 50px solid black; | |
position: relative; | |
top: 20px; | |
left: 20px; | |
} | |
.down { | |
width: 0; | |
height: 0; | |
border-left: 25px solid transparent; | |
border-right: 25px solid transparent; | |
border-bottom: 30px solid black; | |
position: relative; | |
top: 45px; | |
left: 20px; | |
transform: rotate(180deg); | |
-ms-transform: rotate(180deg); | |
-webkit-transform: rotate(180deg); | |
} | |
.down:after { | |
width: 30px; | |
height: 30px; | |
background-color: black; | |
content: ""; | |
display: block; | |
position: relative; | |
top: 30px; | |
left: -15px; | |
} | |
.square { | |
width: 50px; | |
height: 50px; | |
position: relative; | |
background-color: black; | |
left: 20px; | |
top: 20px; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment