Created
July 17, 2015 18:04
-
-
Save halfzebra/b228841205e9f863e4d0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@for $i from 1 through 6 { | |
&.front:nth-child(#{$i}), &.back:nth-child(#{$i}) { | |
$brick-bg: '../image/brick' + random(6) + '.jpg'; | |
background-image: url($brick-bg); | |
background-size: 100% 100%; | |
} | |
} |
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
.front:nth-child(1), .back:nth-child(1) { | |
background-image: url("../image/brick3.jpg"); | |
background-size: 100% 100%; | |
} | |
.front:nth-child(2), .back:nth-child(2) { | |
background-image: url("../image/brick2.jpg"); | |
background-size: 100% 100%; | |
} | |
.front:nth-child(3), .back:nth-child(3) { | |
background-image: url("../image/brick1.jpg"); | |
background-size: 100% 100%; | |
} | |
.front:nth-child(4), .back:nth-child(4) { | |
background-image: url("../image/brick4.jpg"); | |
background-size: 100% 100%; | |
} | |
.front:nth-child(5), .back:nth-child(5) { | |
background-image: url("../image/brick2.jpg"); | |
background-size: 100% 100%; | |
} | |
.front:nth-child(6), .back:nth-child(6) { | |
background-image: url("../image/brick3.jpg"); | |
background-size: 100% 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment