forked from mknadler/codecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nonlinear
committed
Jan 9, 2015
1 parent
fa02f56
commit c90afce
Showing
15 changed files
with
795 additions
and
31 deletions.
There are no files selected for viewing
Binary file modified
BIN
+572 Bytes
(100%)
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/_base.scssc
Binary file not shown.
Binary file added
BIN
+36.4 KB
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/_colors.scssc
Binary file not shown.
Binary file added
BIN
+55.3 KB
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/_colortest.scssc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/_layout.scssc
Binary file not shown.
Binary file modified
BIN
-4 Bytes
(100%)
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/_modules.scssc
Binary file not shown.
Binary file modified
BIN
+177 Bytes
(100%)
assets/stylesheets/.sass-cache/afacbdd935eaee9ff0cd2ce460cac1f1a3cb36d2/style.scssc
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
|
||
@function color($color, $change: n) { | ||
@if $change == n { | ||
@return $color; | ||
} | ||
@if $change == l1 { | ||
@return lighten($color, 10%); | ||
} | ||
@if $change == l2 { | ||
@return lighten($color, 25%); | ||
} | ||
@if $change == l3 { | ||
@return lighten($color, 50%); | ||
} | ||
@if $change == l4 { | ||
@return lighten($color, 75%); | ||
} | ||
@if $change == d1 { | ||
@return darken($color, 10%); | ||
} | ||
@if $change == d2 { | ||
@return darken($color, 25%); | ||
} | ||
@if $change == d3 { | ||
@return darken($color, 50%); | ||
} | ||
@if $change == d4 { | ||
@return darken($color, 75%); | ||
} | ||
} | ||
|
||
@function complementary($color, $change: n) { | ||
@if $change == n { | ||
@return complement($color); | ||
} | ||
@if $change == 1 { | ||
@return complement($color); | ||
} | ||
@if $change == 2 { | ||
@return hsl(hue(complement($color)),saturation($color),70); | ||
} | ||
@if $change == 3 { | ||
@return hsl(hue($color),saturation($color),30); | ||
} | ||
@if $change == 4 { | ||
@return hsl(hue($color),saturation($color),70); | ||
} | ||
|
||
} | ||
|
||
@function triad($color, $change: n) { | ||
@if $change == n { | ||
@return $color; | ||
} | ||
@if $change == 1 { | ||
@return adjust-hue($color, 120deg); | ||
} | ||
@if $change == 2 { | ||
@return adjust-hue($color, 240deg); | ||
} | ||
} | ||
|
||
@function analogous($color, $change: n) { | ||
@if $change == n { | ||
@return $color; | ||
} | ||
@if $change == 1 { | ||
@return adjust-hue($color, 45deg); | ||
} | ||
@if $change == 2 { | ||
@return adjust-hue($color, -45deg); | ||
} | ||
} | ||
|
||
@function split($color, $change: n) { | ||
@if $change == n { | ||
@return $color; | ||
} | ||
@if $change == 1 { | ||
@return adjust-hue($color, 150deg); | ||
} | ||
@if $change == 2 { | ||
@return adjust-hue($color, 210deg); | ||
} | ||
} | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
@mixin colortest($function: light, $color: white) { | ||
@if $function == "light" { | ||
li:nth-of-type(1){ | ||
background-color: color($color, l1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color: color($color, l2); | ||
} | ||
li:nth-of-type(3){ | ||
background-color: color($color, l3); | ||
} | ||
li:nth-of-type(4){ | ||
background-color: color($color, l4); | ||
} | ||
} | ||
@else if $function == "dark" { | ||
li:nth-of-type(1){ | ||
background-color:color($color, d1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color:color($color, d2); | ||
} | ||
li:nth-of-type(3){ | ||
background-color:color($color, d3); | ||
} | ||
li:nth-of-type(4){ | ||
background-color:color($color, d4); | ||
} | ||
} | ||
@else if $function == "complementary" { | ||
li:nth-of-type(1){ | ||
background-color:complementary($color, 1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color:complementary($color, 2); | ||
} | ||
li:nth-of-type(3){ | ||
background-color:complementary($color, 3); | ||
} | ||
li:nth-of-type(4){ | ||
background-color:complementary($color, 4); | ||
} | ||
} | ||
@else if $function == "triad" { | ||
li:nth-of-type(1){ | ||
background-color: triad($color, 1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color: triad($color, 2); | ||
} | ||
} | ||
@else if $function == "analogous" { | ||
li:nth-of-type(1){ | ||
background-color:analogous($color,1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color:analogous($color,2); | ||
} | ||
} | ||
@else if $function == "split" { | ||
li:nth-of-type(1){ | ||
background-color:split($color,1); | ||
} | ||
li:nth-of-type(2){ | ||
background-color:split($color,2); | ||
} | ||
} | ||
} | ||
|
||
|
||
.colortest { | ||
@include grid(7, 10px); | ||
ul { | ||
@include reset(all); | ||
li{ | ||
heighT: 100px; | ||
font-family: $f1; | ||
text-transform: uppercase; | ||
display: block; | ||
padding: 5px 10px; | ||
font-size: 20px; | ||
} | ||
} | ||
&:last-of-type { | ||
margin-bottom: 20px; | ||
} | ||
&:first-of-type { | ||
.cell:first-of-type li { | ||
background-color: $c0; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c0); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c0); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c0); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c0); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c0); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c0); | ||
} | ||
} | ||
&:nth-of-type(2) { | ||
.cell:first-of-type li { | ||
background-color: $c1; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c1); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c1); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c1); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c1); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c1); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c1); | ||
} | ||
} | ||
|
||
&:nth-of-type(3) { | ||
.cell:first-of-type li { | ||
background-color: $c2; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c2); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c2); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c2); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c2); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c2); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c2); | ||
} | ||
} | ||
|
||
&:nth-of-type(4) { | ||
.cell:first-of-type li { | ||
background-color: $c3; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c3); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c3); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c3); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c3); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c3); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c3); | ||
} | ||
} | ||
|
||
&:nth-of-type(5) { | ||
.cell:first-of-type li { | ||
background-color: $c4; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c4); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c4); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c4); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c4); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c4); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c4); | ||
} | ||
} | ||
|
||
&:nth-of-type(6) { | ||
.cell:first-of-type li { | ||
background-color: $c5; | ||
} | ||
.cell:nth-of-type(2) { | ||
@include colortest(light, $c5); | ||
} | ||
.cell:nth-of-type(3) { | ||
@include colortest(dark, $c5); | ||
} | ||
.cell:nth-of-type(4) { | ||
@include colortest(complementary, $c5); | ||
} | ||
.cell:nth-of-type(5) { | ||
@include colortest(triad, $c5); | ||
} | ||
.cell:nth-of-type(6) { | ||
@include colortest(analogous, $c5); | ||
} | ||
.cell:nth-of-type(7) { | ||
@include colortest(split, $c5); | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.