Skip to content

Instantly share code, notes, and snippets.

View LeaVerou's full-sized avatar

Lea Verou LeaVerou

View GitHub Profile
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:33
First example
/**
* First example
*/
background: linear-gradient(left, white 20%, #8b0 80%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:48
Second example, stops starting to get closer
/**
* Second example, stops starting to get closer
*/
background: linear-gradient(left, white 30%, #8b0 70%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:49
Third example, stops getting even closer
/**
* Third example, stops getting even closer
*/
background: linear-gradient(left, white 40%, #8b0 60%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:49
Fourth example, stops at the same position
/**
* Fourth example, stops at the same position
*/
background: linear-gradient(left, white 50%, #8b0 50%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:50
Fifth example, colors meeting at different position
/**
* Fifth example, colors meeting at different position
*/
background: linear-gradient(left, white 30%, #8b0 30%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:50
First example
/**
* First example
*/
background: linear-gradient(left, deeppink 30%, gold 30%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:50
Sixth example, colors meeting at different position
/**
* Sixth example, colors meeting at different position
*/
background: linear-gradient(left, white 90%, #8b0 90%);
height: 100%;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:53
Vertical stripes
/**
* Vertical stripes
*/
background: linear-gradient(left, white 50%, #8b0 50%);
background-size: 100px 100px;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:54
First attempt to make diagonal stripes
/**
* First attempt to make diagonal stripes
*/
background: linear-gradient(45deg, white 50%, #8b0 50%);
background-size: 100px 100px;
@LeaVerou
LeaVerou / dabblet.css
Created December 11, 2011 01:55
Diagonal stripes
/**
* Diagonal stripes
*/
background: linear-gradient(45deg, white 25%, #8b0 25%, #8b0 50%, white 50%, white 75%, #8b0 75%, #8b0);
background-size:100px 100px;