Last active
December 10, 2015 23:48
-
-
Save andrewrocco/4512071 to your computer and use it in GitHub Desktop.
Revisions
-
andrewrocco revised this gist
Jan 11, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -15,9 +15,9 @@ } &:before { border-left: 40px solid white; left: 1px; } &:after { border-left: 40px solid black; } } -
andrewrocco revised this gist
Jan 11, 2013 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ // Diagonal Lines .some-element { background: black; position: relative; &:before, &:after { -
andrewrocco created this gist
Jan 11, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ // Diagonal Lines .some-element { position: relative; &:before, &:after { border-top: 40px solid transparent; border-bottom: 40px solid transparent; content: ""; display: block; height: 0; position: absolute; top: -40px; width: 0; } &:before { border-left: 40px solid white; } &:after { border-left: 40px solid black; left: -1px; } }