Created
April 23, 2013 02:00
-
-
Save jackarmley/5440242 to your computer and use it in GitHub Desktop.
CSS gradient vertical ribbon
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
/** | |
* CSS gradient vertical ribbon | |
*/ | |
&:after{ | |
content:" "; | |
display:block; | |
position:absolute; | |
top:-4px; | |
right:1em; | |
.setsize(20px,80px); | |
background: | |
-webkit-linear-gradient(90deg,fade(@white,60%) 50%,transparent 50%) repeat-y 10% 0, | |
-webkit-linear-gradient(90deg,fade(@white,60%) 50%,transparent 50%) repeat-y 90% 0, | |
-webkit-linear-gradient(-45deg, red 50%, @white 50%) no-repeat 0 100%, | |
-webkit-linear-gradient(225deg, red 50%, @white 50%) no-repeat 10px 100%, | |
-webkit-linear-gradient(0deg,red 50%, red 50%) repeat-x 0 0 | |
; | |
background-size: | |
1px 5px, | |
1px 5px, | |
10px 10px, | |
10px 10px, | |
100% 70px | |
; | |
box-shadow: | |
inset 0 1px 0 0 darken(red,20%), | |
inset 1px 0 0 0 darken(red,10%), | |
inset -1px 0 0 0 darken(red,10%), | |
inset 0 2px 0 0 fade(@white,50%) | |
; | |
} |
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
<!-- content to be placed inside <body>…</body> --> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment