I have a striped black diamond using the class diamond (see fiddle here):
.diamond {
border: 8px solid black;
overflow: hidden;
position: relative;
margin: 0 auto;
padding: 12%;
width: 0;
-webkit-transform: scaleY(0.5) rotate(45deg);
}
.diamond:before {
position: absolute;
top: 0;
right: -37.5%;
bottom: 0;
left: -37.5%;
background: -webkit-linear-gradient(black 50%, transparent 50%);
-webkit-transform: scaleY(1.155) skewX(-30deg) rotate(30deg);
background-size: 10px;
content: '';
}
Now I want a class red that will make the diamond red, both the border and the stripes. I have managed to impose a red border, but not the red stripes. How can I modify the CSS for .red such that the stripes become red?
Fiddle http://jsfiddle.net/UQQMz/1/