Doc: Simplify CSS gradient mixin

This commit is contained in:
Eric Lippmann 2016-01-05 16:56:03 +01:00
parent 4a002af0b9
commit 930f014661
1 changed files with 7 additions and 7 deletions

View File

@ -12,14 +12,14 @@
font-weight: bold; font-weight: bold;
} }
.gradient(@a: #f9f9f9; @b: #f5f5f5) { .gradient(@a: @gray-lighter; @b: @gray-lightest) {
background: @a; background: @a;
background: -moz-linear-gradient(top, @a, 0%, @b, 100%); background: -webkit-gradient(linear, left top, left bottom, from(@a), to(@b));
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @a), color-stop(100%, @b)); background: -webkit-linear-gradient(top, @a, @b);
background: -webkit-linear-gradient(top, @a 0%, @b 100%); background: -moz-linear-gradient(top, @a, @b);
background: -o-linear-gradient(top, @a 0%, @b 100%); background: -ms-linear-gradient(top, @a, @b);
background: -ms-linear-gradient(top, @a 0%, @b 100%); background: -o-linear-gradient(top, @a, @b);
background: linear-gradient(to bottom, @a 0%, @b 100%); background: linear-gradient(to bottom, @a, @b);
} }
table { table {