Css only. Too complicated to be used in real code : )
Created
February 11, 2014 07:00
-
-
Save yoksel/8930404 to your computer and use it in GitHub Desktop.
A Pen by yoksel.
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
@import "compass"; | |
$color-1: #3C989E; | |
$color-1-t: transparentize($color-1, 1); | |
$color-2: #ED5276; | |
$color-2-t: transparentize($color-2, 1); | |
$color-3: #F57A82; | |
$color-3-t: transparentize($color-3, 1); | |
$color-4: #F4CDA5; | |
$color-4-t: transparentize($color-4, 1); | |
$color-5: #5DB5A4; | |
$color-5-t: transparentize($color-5, 1); | |
$fig-1-color: $color-2; | |
$fig-1-color-t: $color-2-t; | |
$fig-2-color: $color-4; | |
$fig-2-color-t: $color-4-t; | |
$size: 5em; | |
$size-half: $size/2; | |
$size-third: $size/3; | |
$size-halfthird: $size-third*2.5; | |
$square: 7%; | |
$small-square: 4%; | |
$xsmall-square: 2%; | |
HTML { | |
height: 100%; | |
} | |
BODY { | |
background: | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 $size-halfthird, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 $size-halfthird, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 $size-halfthird, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 $size-halfthird, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 -#{$size-halfthird}, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 -#{$size-halfthird}, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 -#{$size-halfthird}, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) 0 -#{$size-halfthird}, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) -#{$size-halfthird} 0, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) -#{$size-halfthird} 0, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) -#{$size-halfthird} 0, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) -#{$size-halfthird} 0, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-halfthird 0, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-halfthird 0, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-halfthird 0, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-halfthird 0, | |
/*---------------*/ | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third*2, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third*2, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third*2, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-half $size-third*2, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third $size-half, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third $size-half, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third $size-half, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third $size-half, | |
linear-gradient(to right top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third*2 $size-half, | |
linear-gradient(to left top, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third*2 $size-half, | |
linear-gradient(to right bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third*2 $size-half, | |
linear-gradient(to left bottom, | |
$fig-1-color $xsmall-square, | |
$fig-1-color-t $xsmall-square | |
) $size-third*2 $size-half, | |
linear-gradient(to right top, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) $size-half 0, | |
linear-gradient(to left top, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) $size-half 0, | |
linear-gradient(to right bottom, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) $size-half 0, | |
linear-gradient(to left bottom, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) $size-half 0, | |
linear-gradient(to right top, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) 0 $size-half, | |
linear-gradient(to left top, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) 0 $size-half, | |
linear-gradient(to right bottom, | |
$color-4 $xsmall-square, | |
$color-4-t $xsmall-square | |
) 0 $size-half, | |
linear-gradient(to left bottom, | |
$color-4 $xsmall-square, | |
$color-5-t $xsmall-square | |
) 0 $size-half, | |
radial-gradient(circle, | |
$color-1-t 52%, | |
$color-1 54%, $color-1 55.5%, | |
$color-1-t 55.5%, $color-1-t 65%, | |
$color-1 66%, $color-1 69%, | |
$color-1-t 75%) 0 0, | |
radial-gradient(circle, | |
$color-1-t 52%, | |
$color-1 54%, $color-1 55.5%, | |
$color-1-t 55.5%, $color-1-t 65%, | |
$color-1 66%, $color-1 69%, | |
$color-1-t 75%) $size/2 $size/2, | |
linear-gradient(to right top, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) 0 0, | |
linear-gradient(to left top, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) 0 0, | |
linear-gradient(to right bottom, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) 0 0, | |
linear-gradient(to left bottom, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) 0 0, | |
linear-gradient(to right top, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) $size-half $size-half, | |
linear-gradient(to left top, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) $size-half $size-half, | |
linear-gradient(to right bottom, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) $size-half $size-half, | |
linear-gradient(to left bottom, | |
$color-2 $xsmall-square, | |
$color-2-t $xsmall-square | |
) $size-half $size-half, | |
linear-gradient(to right top, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) 0 0, | |
linear-gradient(to left top, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) 0 0, | |
linear-gradient(to right bottom, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) 0 0, | |
linear-gradient(to left bottom, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) 0 0, | |
linear-gradient(to right top, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) $size-half $size-half, | |
linear-gradient(to left top, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) $size-half $size-half, | |
linear-gradient(to right bottom, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) $size-half $size-half, | |
linear-gradient(to left bottom, | |
$color-4 $small-square, | |
$color-4-t $small-square | |
) $size-half $size-half, | |
linear-gradient(to right top, | |
$color-3 $square, | |
$color-3-t $square | |
) 0 0, | |
linear-gradient(to left top, | |
$color-3 $square, | |
$color-3-t $square | |
) 0 0, | |
linear-gradient(to right bottom, | |
$color-3 $square, | |
$color-3-t $square | |
) 0 0, | |
linear-gradient(to left bottom, | |
$color-3 $square, | |
$color-3-t $square | |
) 0 0, | |
linear-gradient(to right top, | |
$color-3 $square, | |
$color-3-t $square | |
) $size-half $size-half, | |
linear-gradient(to left top, | |
$color-3 $square, | |
$color-3-t $square | |
) $size-half $size-half, | |
linear-gradient(to right bottom, | |
$color-3 $square, | |
$color-3-t $square | |
) $size-half $size-half, | |
linear-gradient(to left bottom, | |
$color-3 $square, | |
$color-3-t $square | |
) $size-half $size-half | |
; | |
background-size: $size $size; | |
background-color: $color-5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment