A Pen by Arindam Chakraborty on CodePen.
Created
December 22, 2013 10:10
-
-
Save i-arindam/8080552 to your computer and use it in GitHub Desktop.
A Pen by Arindam Chakraborty.
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
<div class="main"> | |
<div class="ribbon"> | |
<div class="ribbon-stitches-top"></div> | |
<strong class="ribbon-content"> | |
<h1> | |
<a href="http://www.getechoed.com" target="_blank">GetEchoed</a> is Awesome | |
</h1> | |
</strong> | |
<div class="ribbon-stitches-bottom"></div> | |
</div> | |
</div> |
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
/* Pure css ribbon. In use at http://www.getechoed.com/users/1/arindam-chakraborty/onboarding_certificate | |
*/ |
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
.ribbon { | |
position: absolute; | |
width: 80%; | |
top:0; | |
left: 0; | |
text-align: center; | |
font-size: 20px!important; | |
background: #d64b4b; | |
background: -webkit-gradient(linear, left top, left bottom, from(#d64b4b), to(#ab2c2c)); | |
background: -webkit-linear-gradient(top, #d64b4b, #ab2c2c); | |
background: -moz-linear-gradient(top, #d64b4b, #ab2c2c); | |
background: -ms-linear-gradient(top, #d64b4b, #ab2c2c); | |
background: -o-linear-gradient(top, #d64b4b, #ab2c2c); | |
background-image: -ms-linear-gradient(top, #d64b4b 0%, #ab2c2c 100%); | |
-webkit-box-shadow: rgba(000,000,000,0.3) 0 1px 1px; | |
-moz-box-shadow: rgba(000,000,000,0.3) 0 1px 1px; | |
box-shadow: rgba(000,000,000,0.3) 0 1px 1px; | |
font-family: 'Helvetica Neue',Helvetica, sans-serif; | |
} | |
.ribbon h1 { | |
font-size: 40px; | |
color: #801111; | |
text-shadow: #d65c5c 0 1px 0; | |
margin: 0px; | |
padding: 5px 0; | |
} | |
.ribbon:before, .ribbon:after { | |
content: ''; | |
position: absolute; | |
display: block; | |
bottom: -1em; | |
border: 1.5em solid #c23a3a; | |
z-index: -1; | |
} | |
.ribbon:before { | |
left: -2em; | |
border-right-width: 1.5em; | |
border-left-color: transparent; | |
-webkit-box-shadow: rgba(000,000,000,0.4) 1px 1px 1px; | |
-moz-box-shadow: rgba(000,000,000,0.4) 1px 1px 1px; | |
box-shadow: rgba(000,000,000,0.4) 1px 1px 1px; | |
} | |
.ribbon:after { | |
right: -2em; | |
border-left-width: 1.5em; | |
border-right-color: transparent; | |
-webkit-box-shadow: rgba(000,000,000,0.4) -1px 1px 1px; | |
-moz-box-shadow: rgba(000,000,000,0.4) -1px 1px 1px; | |
box-shadow: rgba(000,000,000,0.4) -1px 1px 1px; | |
} | |
.ribbon .ribbon-content:before, .ribbon .ribbon-content:after { | |
border-color: #871616 transparent transparent transparent; | |
position: absolute; | |
display: block; | |
border-style: solid; | |
bottom: -1em; | |
content: ''; | |
} | |
.ribbon .ribbon-content:before { | |
left: 0; | |
border-width: 1em 0 0 1em; | |
} | |
.ribbon .ribbon-content:after { | |
right: 0; | |
border-width: 1em 1em 0 0; | |
} | |
.ribbon-stitches-top { | |
margin-top: 2px; | |
border-top: 1px dashed rgba(0, 0, 0, 0.2); | |
-moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5); | |
-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5); | |
box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5); | |
} | |
.ribbon-stitches-bottom { | |
margin-bottom: 2px; | |
border-top: 1px dashed rgba(0, 0, 0, 0.2); | |
-moz-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3); | |
-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3); | |
box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.3); | |
} | |
/* page css*/ | |
.main { | |
width: 60%; | |
position: relative; | |
margin: 50px auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment