Created
December 11, 2013 04:59
-
-
Save blackfalcon/7905297 to your computer and use it in GitHub Desktop.
Random color feature - not working
This file contains 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
.col |
This file contains 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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$red: rgb(random(255), random(255), random(255)); | |
.col { | |
background-color: $red; | |
width: 100px; | |
height: 100px; | |
position: absolute; | |
left: calc(50% - 100px); | |
right: calc(50% - 100px); | |
} |
This file contains 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
.col { | |
background-color: #72d646; | |
width: 100px; | |
height: 100px; | |
position: absolute; | |
left: calc(50% - 100px); | |
right: calc(50% - 100px); | |
} |
This file contains 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
<div class='col'></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment