Created
April 12, 2013 01:00
-
-
Save jackarmley/5368455 to your computer and use it in GitHub Desktop.
Inverted corner panel
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
/** | |
* Inverted corner panel | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Autour+One); | |
@import url(http://fonts.googleapis.com/css?family=Lato); | |
body{ | |
width:90%; | |
max-width:1000px; | |
margin:auto; | |
padding:50px 0; | |
font:normal normal 130%/1.5em 'Lato', sans-serif; | |
} | |
p{ | |
margin:0 0 1em 0; | |
} | |
.panel{ | |
position:relative; | |
overflow:hidden; | |
padding:2em 2em 1em; | |
background: | |
linear-gradient(0deg, #4fc5f1, #4fc5f1), | |
linear-gradient(0deg, #4fc5f1, #4fc5f1), | |
linear-gradient(90deg, #4fc5f1, #4fc5f1), | |
linear-gradient(90deg, #4fc5f1, #4fc5f1) | |
; | |
background-size: | |
3px 3px, | |
3px 3px, | |
3px 3px, | |
3px 3px | |
; | |
background-repeat: | |
repeat-x, | |
repeat-x, | |
repeat-y, | |
repeat-y | |
; | |
background-position: | |
top left, | |
bottom left, | |
top left, | |
top right | |
; | |
} | |
.panel-heading{ | |
margin:0 -20px 1em; | |
padding:0 20px; | |
font:normal normal 1.5em/1.2em 'Autour One', sans-serif; | |
} | |
.panel:before, | |
.panel:after, | |
.panel-heading:before, | |
.panel-heading:after{ | |
content:" "; | |
position:absolute; | |
display:block; | |
width:40px; | |
height:40px; | |
border:3px solid #4fc5f1; | |
border-radius:100%; | |
background:#fff; | |
} | |
.panel:before{ | |
left:-20px; | |
top:-20px; | |
} | |
.panel:after{ | |
right:-20px; | |
top:-20px; | |
} | |
.panel-heading:before{ | |
left:-20px; | |
bottom:-20px; | |
} | |
.panel-heading:after{ | |
right:-20px; | |
bottom:-20px; | |
} |
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
<article class="panel"> | |
<h1 class="panel-heading">Hey I'm a panel</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nec enim non massa vulputate suscipit. Curabitur ut sem sit amet eros gravida feugiat quis pharetra tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla ut tellus orci. Nulla facilisi. Sed rutrum sollicitudin tempor. Fusce ut nulla mauris. Maecenas varius varius faucibus. Aliquam sed nulla nec neque fermentum gravida at eu nulla. Nunc sed lorem libero. Pellentesque non nibh a lorem ullamcorper scelerisque et vitae est. Vivamus posuere sem eget metus faucibus vehicula.</p> | |
</article> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment