One block element styled as icon. No additional markup, just CSS.
Created
August 23, 2016 16:58
-
-
Save SynCap/9da93fea7ce5f279269172e6f0540fc3 to your computer and use it in GitHub Desktop.
CSS3: LineArt - the page icon
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
.page |
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
.page { | |
position: relative; | |
z-index: 1; | |
width: 210px; | |
height: 297px; | |
margin: 30px auto; | |
border: 2px solid #05c; | |
&:before { | |
position: absolute; | |
z-index: 2; | |
right: 0; | |
display: block; | |
width: 32px; | |
height: 32px; | |
content: ''; | |
border-bottom: 2px solid #05c; | |
border-left: 2px solid #05c; | |
background: #ccc; | |
} | |
&:after { | |
position: absolute; | |
z-index: 3; | |
top: -27px; | |
right: -26px; | |
display: block; | |
width: 50px; | |
height: 50px; | |
content: ''; | |
transform: rotate(45deg); | |
border-bottom: 2px solid #05c; | |
background: #fff; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment