1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
!!! 5
%html
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "content-type"}/
%title Basic CSS3 Demos
%link{:charset => "utf-8", :href => "stylesheets/pie.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}/
%body
.section
%h2 border-radius
#test1.test Cherry
%code
%strong
border-radius: 1em; /* Standard */
\-moz-border-radius: 1em; /* Gecko */
\-webkit-border-radius: 1em; /* WebKit */
.section
%h2 box-shadow
#test2.test Apple
%code
border-radius: 1em;
\-moz-border-radius: 1em;
\-webkit-border-radius: 1em;
%strong
box-shadow: #999 0 .25em .5em;
\-webkit-box-shadow: #999 0 .25em .5em;
\-moz-box-shadow: #999 0 .25em .5em;
.section
%h2 linear-gradient
#test3.test Blueberry
%code
border-radius: 1em;
\-moz-border-radius: 1em;
\-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
\-webkit-box-shadow: #999 0 .25em .5em;
\-moz-box-shadow: #999 0 .25em .5em;
%strong
background: #9CF; /* Fallback */
background: -webkit-gradient(linear, 0 0, 0 100%, from(#9CF), to(#03C));
background: -moz-linear-gradient(#9CF, #03C);
background: linear-gradient(#9CF, #03C);
.section
%h2 multiple background images
#test4.test Rhubarb
%code
border-radius: 1em;
\-moz-border-radius: 1em;
\-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
\-webkit-box-shadow: #999 0 .25em .5em;
\-moz-box-shadow: #999 0 .25em .5em;
%strong
background: url(icon-ie.png) no-repeat 50% 0 #FFF; /* Fallback */
background: url(icon-ie.png) no-repeat 50% 0,
url(icon-firefox.png) no-repeat 0 0,
url(icon-chrome.png) no-repeat 100% 0,
url(icon-safari.png) no-repeat 0 100%,
url(icon-opera.png) no-repeat 100% 100% #FFF;
.section
%h2 border-image
#test5.test Pumpkin
%code
border-radius: 1em;
\-moz-border-radius: 1em;
\-webkit-border-radius: 1em;
box-shadow: #999 0 .25em .5em;
\-webkit-box-shadow: #999 0 .25em .5em;
\-moz-box-shadow: #999 0 .25em .5em;
%strong
border-image: url(border2.png) 15 fill stretch;
\-moz-border-image: url(border2.png) 15 stretch;
\-webkit-border-image: url(border2.png) 15 stretch;
border: 15px solid transparent;
|