Skip to content

Instantly share code, notes, and snippets.

@devvyn
Created April 7, 2022 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devvyn/866c54d409ccd155e40897fe1f5de502 to your computer and use it in GitHub Desktop.
Save devvyn/866c54d409ccd155e40897fe1f5de502 to your computer and use it in GitHub Desktop.
Focus test
.focus
8-bit
#heart
@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