Skip to content

Instantly share code, notes, and snippets.

@stanosmith
Created October 11, 2018 23:26
Show Gist options
  • Save stanosmith/9354c9ab744d2e4eb014e6da86482f8e to your computer and use it in GitHub Desktop.
Save stanosmith/9354c9ab744d2e4eb014e6da86482f8e to your computer and use it in GitHub Desktop.
Yin Yang by Alexander Futekov
/* More shapes: https://css-tricks.com/the-shapes-of-css */
/* Yin-Yang by Alexander Futekov */
#yin-yang {
width: 96px;
box-sizing: content-box;
height: 48px;
background: #eee;
border-color: red;
border-style: solid;
border-width: 2px 2px 50px 2px;
border-radius: 100%;
position: relative;
}
#yin-yang:before {
content: "";
position: absolute;
top: 50%;
left: 0;
background: #eee;
border: 18px solid red;
border-radius: 100%;
width: 12px;
height: 12px;
box-sizing: content-box;
}
#yin-yang:after {
content: "";
position: absolute;
top: 50%;
left: 50%;
background: red;
border: 18px solid #eee;
border-radius: 100%;
width: 12px;
height: 12px;
box-sizing: content-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment