-
-
Save codecademydev/0b34f5417cd1836d1f060c703c75124a to your computer and use it in GitHub Desktop.
Codecademy export
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
<link rel="stylesheet" type="text/css" href="main.css"> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> | |
<div class='ray'></div> |
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
$total: 10; //Number of .ray divs in our html | |
$step: 360deg / $total; //Used to compute the hue based on color-wheel | |
.ray { | |
height: 30px; | |
} | |
//Add your for-loop here: | |
@for $i from 1 through $total { | |
.ray:nth-child(#{$i}) { | |
background: adjust-hue(blue, $i * $step); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment