compass/examples/css3/src/gradients.scss

86 lines
3.2 KiB
SCSS
Raw Normal View History

2010-04-11 10:46:42 +00:00
@import "compass/css3";
#gradient {
width: 200px;
height: 100px;
border: 1px solid #777777; }
thead th {
min-height: 50px;
min-width: 100px;
@include text-shadow(white); }
th.linear {
@include linear-gradient(color-stops(white, red 50%, yellow 75%, lime)); }
2010-04-11 10:46:42 +00:00
th.radial {
@include radial-gradient(color-stops(white, red 20px, yellow 30px, lime 40px)); }
2010-04-11 10:46:42 +00:00
tr.default {
td.linear {
@include linear-gradient(color-stops(#cc0000, #0000cc)); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000, #0000cc)); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: "+linear-gradient(color-stops(#c00, #00c))"; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: "+radial-gradient(color-stops(#c00, #00c))"; } }
2010-04-11 10:46:42 +00:00
tr.top-left {
td.linear {
@include linear-gradient(color-stops(#cc0000, #0000cc), unquote("top left")); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000, #0000cc), unquote("top left")); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: '+linear-gradient(color-stops(#c00, #00c), "top left")'; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: '+radial-gradient(color-stops(#c00, #00c), "top left")'; } }
2010-04-11 10:46:42 +00:00
tr.bottom-right {
td.linear {
@include linear-gradient(color-stops(#cc0000, #0000cc), unquote("bottom right")); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000, #0000cc), unquote("bottom right")); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: '+linear-gradient(color-stops(#c00, #00c), "bottom right")'; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: '+radial-gradient(color-stops(#c00, #00c), "bottom right")'; } }
2010-04-11 10:46:42 +00:00
tr.three-color {
td.linear {
@include linear-gradient(color-stops(#cc0000, white, #0000cc)); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000, white, #0000cc 50px)); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: "+linear-gradient(color-stops(#c00, #fff, #00c))"; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: "+radial-gradient(color-stops(#c00, #fff, #00c 50px))"; } }
2010-04-11 10:46:42 +00:00
tr.four-color {
td.linear {
@include linear-gradient(color-stops(#cc0000, #00cc00 25%, #00cccc 75%, #0000cc)); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000, #00cc00 25%, #00cccc 75%, #0000cc 50px)); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: "+linear-gradient(color-stops(#c00, #0c0 25%, #0cc 75%, #00c))"; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: "+radial-gradient(color-stops(#c00, #0c0 25%, #0cc 75%, #00c 50px))"; } }
2010-04-11 10:46:42 +00:00
tr.filled-in {
td.linear {
@include linear-gradient(color-stops(#cc0000 33%, #0000cc 66%)); }
2010-04-11 10:46:42 +00:00
td.radial {
@include radial-gradient(color-stops(#cc0000 25px, #0000cc 75px)); }
2010-04-11 10:46:42 +00:00
td.linear-code:before {
content: "+linear-gradient(color-stops(#c00 33%, #00c 66%))"; }
2010-04-11 10:46:42 +00:00
td.radial-code:before {
content: "+radial-gradient(color-stops(#c00 25px, #00c 75px))"; } }
tr.with-bg {
td.linear {
@include linear-gradient(color-stops(#cc0000 33%, #0000cc 66%), top, image-url("button_bg.png")); }
td.radial {
@include radial-gradient(color-stops(#cc0000 25px, #0000cc 75px), center center, image-url("button_bg.png")); }
td.linear-code:before {
content: "+linear-gradient(color-stops(#cc0000 33%, #0000cc 66%), top, image-url(\"button_bg.png\"))"; }
td.radial-code:before {
content: "+radial-gradient(color-stops(#cc0000 25px, #0000cc 75px), center center, image-url(\"button_bg.png\"))"; } }