Created
January 26, 2016 20:44
-
-
Save maxxcrawford/90769f406bd7b75491ce to your computer and use it in GitHub Desktop.
Stripes CSS
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style type="text/css"> | |
/* | |
// Mixin to generate a striped background | |
// ------------------------- | |
@mixin stripes($color: $black, $size: 5px) { | |
background-color: transparent; | |
background-size: $size $size; | |
background-image: repeating-linear-gradient(-45deg, $color 0, $color 25%, transparent 0, transparent 51%); | |
} | |
*/ | |
[class^="divider"] { | |
height: 25px; | |
margin-bottom: 25px; | |
background-color: transparent; | |
background-image: repeating-linear-gradient(-45deg, black 0, black 25%, transparent 0, transparent 51%); | |
} | |
.divider1 { | |
background-size: 25px 25px; | |
} | |
.divider2 { | |
background-size: 40px 40px; | |
} | |
.divider3 { | |
background-size: 60px 60px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="container"> | |
<div class="divider1"></div> | |
<div class="divider2"></div> | |
<div class="divider3"></div> | |
</div> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<script> | |
// code goes here | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment