Last active
February 17, 2022 02:34
-
-
Save sandipchitale/ed06ccecfde6a464634bfec0badcb027 to your computer and use it in GitHub Desktop.
cssbattle starter #css #cssbattle
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
<div class="center"></div> | |
<div class="center"></div> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
display: grid; | |
grid-template-columns: auto; | |
grid-template-rows: auto; | |
grid-template-areas: "center"; | |
background-color: #222730; | |
justify-items: center; | |
align-items: center; | |
padding: 0; | |
margin: 0; | |
} | |
.center { | |
grid-area: center; | |
} | |
</style> | |
// eye | |
<div class="center eye"></div> | |
<div class="center cornea"></div> | |
<div class="center pupil"></div> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
display: grid; | |
grid-template-columns: auto; | |
grid-template-rows: auto; | |
grid-template-areas: "center"; | |
background-color: #0B2429; | |
justify-items: center; | |
align-items: center; | |
padding: 0; | |
margin: 0; | |
} | |
.center { | |
grid-area: center; | |
} | |
.eye { | |
width: 200px; | |
height: 200px; | |
background-color: #998235; | |
transform: rotate(45deg); | |
z-index: -1; | |
border-radius: 50% 0 50% 0 | |
} | |
.cornea { | |
width: 200px; | |
height: 200px; | |
border: 10px solid #998235; | |
border-radius: 100vw; | |
background-color: #0B2429; | |
} | |
.pupil { | |
width: 140px; | |
height: 140px; | |
border: 45px solid #F3AC3C; | |
border-radius: 100vw; | |
background-color: #0B2429; | |
} | |
</style> | |
// Mac command key | |
<div class="center z"></div> | |
<div class="center nw"></div> | |
<div class="center ne"></div> | |
<div class="center sw"></div> | |
<div class="center se"></div> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
display: grid; | |
grid-template-columns: auto; | |
grid-template-rows: auto; | |
grid-template-areas: "center"; | |
background-color: #191919; | |
justify-items: center; | |
align-items: center; | |
padding: 0; | |
margin: 0; | |
} | |
.center { | |
grid-area: center; | |
} | |
.z { | |
width: 70px; | |
height: 70px; | |
background-color: transparent; | |
border: 10px solid #5DBCF9; | |
} | |
.nw { | |
margin-left: -120px; | |
margin-top: -120px; | |
width: 70px; | |
height: 70px; | |
background-color: transparent; | |
border: 10px solid #5DBCF9; | |
border-radius: 50% 50% 0% 50%; | |
} | |
.ne { | |
margin-left: 120px; | |
margin-top: -120px; | |
width: 70px; | |
height: 70px; | |
background-color: transparent; | |
border: 10px solid #5DBCF9; | |
border-radius: 50% 50% 50% 0%; | |
} | |
.sw { | |
margin-left: -120px; | |
margin-top: 120px; | |
width: 70px; | |
height: 70px; | |
background-color: transparent; | |
border: 10px solid #5DBCF9; | |
border-radius: 50% 0% 50% 50%; | |
} | |
.se { | |
margin-left: 120px; | |
margin-top: 120px; | |
width: 70px; | |
height: 70px; | |
background-color: transparent; | |
border: 10px solid #5DBCF9; | |
border-radius: 0% 50% 50% 50%; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment