Last active
December 17, 2016 01:54
-
-
Save nathos/4759212 to your computer and use it in GitHub Desktop.
Diagonal CSS stripe Sass/Compass mixin.
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
@mixin striped-bg($bg-color: #ccc, $darken-amount: 5%, $stripe-color: darken($bg-color, $darken-amount)) | |
background-color: $bg-color | |
@include background-image(linear-gradient(-45deg, $stripe-color 25%, transparent 25%, transparent 50%, $stripe-color 50%, $stripe-color 75%, transparent 75%, transparent)) | |
background-size: 40px 40px | |
.warning | |
font-family: sans-serif | |
font-weight: bold | |
color: #333 | |
text-align: center | |
margin: 2em 1em | |
padding: 0.5em | |
@include text-shadow(rgba(255,255,255,0.9) 0 1px 1px) | |
@include striped-bg(#fcc101, 4%) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the live example at http://codepen.io/nathos/pen/ablfk