Created
June 23, 2017 18:40
-
-
Save luisfelipe-dev/a1bb552af5dd0aac0e25df3aba2346ee to your computer and use it in GitHub Desktop.
Classe para criar um efeito de corte diagonal
This file contains hidden or 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
| Classe para criar efeito diagonal no before | |
| h2{ | |
| padding-top: 2rem; | |
| width: 70%; | |
| position: relative; | |
| font-size: 1.625em; | |
| &:before{ | |
| position: absolute; | |
| content: ''; | |
| display: block; | |
| top: 0; | |
| right: -61px; | |
| height: 100%; | |
| width: 71px; | |
| background-color: #31377b; | |
| -moz-transform: skew(-14deg,0deg); | |
| -o-transform: skew(-14deg,0deg); | |
| -ms-transform: skew(-14deg,0deg); | |
| -webkit-transform: skew(-14deg,0deg); | |
| transform: skew(-14deg,0deg); | |
| z-index: 5; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment