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
angular.element(document).ready(function(){ | |
angular.module('myApp',[]) | |
.controller('myCtrl', ['$scope','store',function ($scope,store) { | |
$scope.categories = store.getCategories(); | |
$scope.products = store.getProducts(); | |
$scope.filterProductsByCategory = function(category){ |
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
.color-wheel | |
.lighten-colors | |
ul | |
each i in new Array(12) | |
li | |
.default-colors | |
ul | |
each i in new Array(12) | |
li | |
.darken-colors |
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
$main-color : #13a3c7; | |
$how-dark: 25%; | |
$how-light: 25%; | |
$angle : 30; |
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
@for $i from 1 through 12 { | |
$new-angle:$angle*$i; // every time the loop starts again the $new-angle is updated with $angle * the current position of the list | |
$new-color:adjust-hue($main-color,$new-angle); | |
ul li:nth-of-type(#{$i}){ | |
border-left: 205px solid transparent;// this creates a triangle | |
border-top: 120px solid $new-color;// this creates a triangle | |
height: 0; | |
left: 50%; | |
list-style: none; | |
position: absolute; |
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
.color-wheel{ | |
position: relative; | |
div { | |
border-radius: 50%; | |
overflow: hidden; | |
position: absolute; | |
} | |
} |
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
@for $i from 1 through 12 { | |
$new-angle:$angle*$i; // every time the loop starts again the $new-angle is updated with $angle * the current position of the list | |
ul li:nth-of-type(#{$i}){ | |
border-left: 205px solid transparent;// this creates a triangle | |
border-top: 120px solid $main-color;// this creates a triangle | |
height: 0; | |
left: 50%; | |
list-style: none; | |
position: absolute; | |
top: 50%; |
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
.protractor { | |
@for $i from 1 through 24 { | |
$new-angle: 15*$i; | |
ul li:nth-of-type(#{$i}){ | |
transform: rotate(#{$new-angle}deg); | |
&:after { | |
content: "#{$new-angle}°"; | |
} | |
} | |
} |
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
.square-colors { | |
@for $i from 1 through 3 { | |
$new-angle: 90*$i; | |
$new-color:adjust-hue($main-color,$new-angle); | |
ul li:nth-of-type(#{$i}){ | |
background: $new-color; | |
} | |
} | |
} |
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
.square-colors { | |
@for $i from 1 through 3 { | |
$new-angle: 90*$i; | |
$new-color:adjust-hue($main-color,$new-angle); | |
ul li:nth-of-type(#{$i}){ | |
background: $new-color; | |
} | |
} | |
} |
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
<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 200"> |
OlderNewer