Skip to content

Instantly share code, notes, and snippets.

@jackiewu
Created July 2, 2016 07:21
Show Gist options
  • Save jackiewu/aead2e85f0b65d9460645d29987f81de to your computer and use it in GitHub Desktop.
Save jackiewu/aead2e85f0b65d9460645d29987f81de to your computer and use it in GitHub Desktop.
Simple Label
a.single-product {
position: relative;
overflow: hidden;
display: block;
}
a.single-product::before {
content: '售出';
display: block;
background-color: #de2424;
color: #fff;
font-size: 14px;
font-weight: bold;
letter-spacing: 1px;
transform: rotate(45deg) translate3d(20px,-10px,0);
width: 90px;
text-align: center;
position: absolute;
right: 0;
top: 0;
z-index: 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment