A Pen by Devvyn Murphy on CodePen.
Created
April 7, 2022 00:45
-
-
Save devvyn/866c54d409ccd155e40897fe1f5de502 to your computer and use it in GitHub Desktop.
Focus test
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
.focus | |
8-bit | |
#heart |
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 "compass/css3"; | |
div { | |
font-size: 120px; | |
color: red; | |
display: inline-block; | |
} | |
#heart { | |
width: 1em; | |
height: 1em; | |
position: relative; | |
} | |
#heart::before,#heart::after { | |
display: block; | |
width: 0.5em; | |
height: 0.75em; | |
position: absolute; | |
box-shadow: 0 0 0.2em 0 red; | |
background-color: red; | |
content: ''; | |
border-radius: 0.25em 0.25em 0 0; | |
bottom: 0%; | |
} | |
#heart::before { | |
transform: rotate(-45deg); | |
transform-origin: 50% 50%; | |
left: 0.15em; | |
} | |
#heart::after { | |
transform: rotate(45deg); | |
transform-origin: 50% 50%; | |
right: 0.17em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment