Skip to content

Instantly share code, notes, and snippets.

@shahariaazam
Created November 8, 2014 21:04
Show Gist options
  • Select an option

  • Save shahariaazam/863a4a0c5c9a65a7e6e8 to your computer and use it in GitHub Desktop.

Select an option

Save shahariaazam/863a4a0c5c9a65a7e6e8 to your computer and use it in GitHub Desktop.
Bootstrap Ribbon CSS
<div class="panel panel-default">
<div class="panel-body">
<div class="panel-info">
<div class="folded">
<h2 style="background-color: #DB874A;">CakePHP</h2>
</div>
<p><strong>Job Title:</strong> Senior CakePHP Developer</p>
<p><strong>Position:</strong> Senior Software Engineer<br />
<strong>Deadline:</strong> 20 November 2014<br /></p>
</div>
<div class="panel-more1">
To build new CakePHP 3.x application. Update, fix, modify existing CakePHP 2.x applications. Developing plugins, building API, Third party tools integration etc..
</div>
</div>
</div>
.folded h2 {
background: #08b;
background-image: radial-gradient(transparent 30%, rgba(0, 0, 0, 0.2));
border: 0 solid rgba(0,0,0,0.2);
color: #fff;
font-size: 18px;
font-weight: bold;
position: relative;
text-shadow: -1px -1px 1px rgba(0,0,0,0.2);
}
.folded:before, div.folded:after {
bottom: 26px;
content: "";
height: 28px;
position: absolute;
width: 48%;
z-index: -1;
}
.folded:before {
left: 2%;
transform: rotate(-3deg);
}
.folded:after {
right: 2%;
transform: rotate(3deg);
}
.folded h2 {
border-width: 1px 1px 2px;
margin: 0;
padding: 4px 40px;
position: absolute;
right: 2px;
margin-top: -16px;
}
.folded h2:after {
border-width: 7px;
border-style: solid;
border-color: #134 transparent transparent #134;
bottom: -15px;
content: "";
position: absolute;
right: -1px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment