Created
October 15, 2015 15:40
-
-
Save treykane/2f33bfdf202ff2ff2a06 to your computer and use it in GitHub Desktop.
Diagonal Strikethrough
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
// 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