Skip to content

Instantly share code, notes, and snippets.

@treykane
Created October 15, 2015 15:40
Show Gist options
  • Save treykane/2f33bfdf202ff2ff2a06 to your computer and use it in GitHub Desktop.
Save treykane/2f33bfdf202ff2ff2a06 to your computer and use it in GitHub Desktop.
Diagonal Strikethrough
// This could be used for many things, however in my case, this was use to show a price that was slashed through.
.slashed-rate {
display: inline-block;
padding-top: 10px;
color: $grey-darker;
.currency {font-size: 15px;}
.dollars {font-size: 30px;}
.frequency {font-size: 10px;}
&::before {
content: '';
width: 19%;
position: absolute;
right: 43%;
top: 43%;
border-bottom: 2px solid $color-gray-darkest;
-webkit-transform: skewY(-30deg);
transform: skewY(-30deg);
}// ::before
}//.slashed-rate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment