Created
March 22, 2014 17:17
-
-
Save alexadark/9710814 to your computer and use it in GitHub Desktop.
CSS: ribbon bg
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
.sidebar .widget-title:before { | |
border-bottom: 15px solid #005D87; | |
border-left: 20px solid rgba(0, 0, 0, 0); | |
content: ""; | |
display: block; | |
height: 0; | |
left: 0; | |
position: absolute; | |
top: -15px; | |
width: 0; | |
z-index: 0; | |
} | |
.sidebar .widget-title:after { | |
border-bottom: 15px solid #005D87; | |
border-right: 20px solid rgba(0, 0, 0, 0); | |
content: ""; | |
display: block; | |
height: 0; | |
position: absolute; | |
right: 0; | |
top: -15px; | |
width: 0; | |
z-index: 0; | |
} | |
.sidebar .widget-title { | |
background: none repeat scroll 0 0 #0074A2; | |
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | |
color: #FFFFFF; | |
display: inline-block; | |
font-size: 1.25em; | |
line-height: 2.5em; | |
margin: 0 0 0 -3.05em; | |
min-height: 50px; | |
position: relative; | |
width: 400px; | |
z-index: 10; | |
margin-top: -25px; | |
font-weight: bold; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment