Last active
August 29, 2015 13:56
-
-
Save topless/9346146 to your computer and use it in GitHub Desktop.
Webpage Beta ribbon
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Ribbon" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="ribbon-wrapper-green"> | |
<div class="ribbon-green"> | |
Beta | |
</div> | |
</div> | |
</body> | |
</html> |
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
.ribbon-wrapper-green { | |
width: 85px; | |
height: 88px; | |
overflow: hidden; | |
position: absolute; | |
top: -3px; | |
right: -3px; | |
} | |
.ribbon-green { | |
position: relative; | |
padding: 7px 0; | |
left: -5px; | |
top: 15px; | |
width: 120px; | |
font: bold 15px Sans-Serif; | |
color: #333; | |
text-align: center; | |
text-shadow: rgba(255,255,255,0.5) 0px 1px 0px; | |
-webkit-transform: rotate(45deg); | |
-moz-transform: rotate(45deg); | |
-ms-transform: rotate(45deg); | |
-o-transform: rotate(45deg); | |
background-color: #BFDC7A; | |
background-image: -webkit-gradient(linear, left top, left bottom, from(#BFDC7A), to(#8EBF45)); | |
background-image: -webkit-linear-gradient(top, #BFDC7A, #8EBF45); | |
background-image: -moz-linear-gradient(top, #BFDC7A, #8EBF45); | |
background-image: -ms-linear-gradient(top, #BFDC7A, #8EBF45); | |
background-image: -o-linear-gradient(top, #BFDC7A, #8EBF45); | |
color: #6a6340; | |
-webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); | |
-moz-box-shadow: 0px 0px 3px rgba(0,0,0,0.3); | |
box-shadow: 0px 0px 3px rgba(0,0,0,0.3); | |
&:before, &:after { | |
content: ""; | |
border-top: 3px solid #6e8900; | |
border-left: 3px solid transparent; | |
border-right: 3px solid transparent; | |
position:absolute; | |
bottom: -3px; | |
} | |
&:before { | |
left: 0; | |
} | |
&:after { | |
right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment