home *** CD-ROM | disk | FTP | other *** search
/ PCMania 10 / Pcmania_Ep2_10_CD-01.iso / ow / OW4E32J.EXE / WML.CSS < prev    next >
Encoding:
Cascading Style Sheet File  |  2000-06-26  |  1.9 KB  |  167 lines

  1.  
  2. /* CSS2 style sheet to display WML in Opera4 */
  3. /* Copyright 2000 Opera Software */
  4.  
  5.  
  6. wml, template, card, p, br { display: block  }
  7.  
  8.  
  9. wml {
  10.   font: 18px/1.5 sans-serif;
  11.   color: black;
  12.   padding: 1em;
  13. }
  14.  
  15.  
  16.  
  17. p { padding: 0.3em }
  18. small { font-size: smaller }
  19. i { font-style: italic }
  20. b { font-weight: bold }
  21.  
  22.  
  23.  
  24. template {
  25.   background: #CC9;
  26.   padding: 0.6em 1em;
  27.   margin-bottom: 0.3em;
  28. }
  29.  
  30.  
  31.  
  32. img {
  33.   -replace: attr(src);
  34.   margin 0.3em;
  35. }
  36.  
  37.  
  38.  
  39. timer { display: none }
  40.  
  41.  
  42.  
  43. p[align=center] {
  44.   text-align: center;
  45. }
  46.  
  47.  
  48.  
  49. card:before {
  50.   display: block;
  51.   font-style: italic;
  52.   background: #050;
  53.   color: white;
  54.   content: attr(name) attr(title);
  55.   padding: 0.3em;
  56.   margin-bottom: 0.5em;
  57. }
  58.  
  59.  
  60.  
  61. card { 
  62.   display: block;
  63.   position: deck;
  64.   padding: 1em;
  65.   background: #DDA;
  66.   text-align: left;
  67. }
  68.  
  69.  
  70.  
  71. card[ontimer] {
  72.   -link-set: attr(ontimer);
  73.   -link-use: current;
  74. }
  75.  
  76.  
  77.  
  78. card[ontimer]:before {
  79.   content: "Press to move forward";
  80.   text-decoration: blink;
  81. }
  82.  
  83.  
  84.  
  85. onevent[type="ontimer"] {
  86.   -link-use: next;
  87. }
  88.  
  89.  
  90. onevent[type="ontimer"] go {
  91.   -link-set: attr(href);
  92. }
  93.  
  94.  
  95. onevent[type="ontimer"] go:before {
  96.   content: "Press to move forward";
  97.   text-decoration: blink;
  98. }
  99.  
  100.  
  101.  
  102.  
  103. onevent[type="onenterforward"] {
  104.   -link-use: next;
  105. }
  106.  
  107.  
  108. onevent[type="onenterforward"] go {
  109.   -link-set: attr(href);
  110. }
  111.  
  112.  
  113. onevent[type="onenterforward"] go:before {
  114.   content: "Press to move forward";
  115.   text-decoration: blink;
  116. }
  117.  
  118.  
  119.  
  120.  
  121. do {
  122.   padding: 0.16em;
  123.   margin: 0.2em;
  124.   border: 0.11em black outset;
  125.   white-space: nowrap;
  126.   background: yellow;
  127. }
  128.  
  129.  
  130.  
  131.  
  132. do[type=prev] {
  133.   display: none;
  134. }
  135.  
  136.  
  137.  
  138. prev {
  139.   display: none
  140. }
  141.  
  142.  
  143.  
  144. do:before[label] {
  145.   content: attr(label);
  146.   font-style: normal;
  147. }  
  148.  
  149.  
  150.  
  151. do, anchor { 
  152.   -link-use: next;
  153. }
  154.  
  155.  
  156.  
  157. go, a { 
  158.   -link-set: attr(href);
  159.   -link-use: current;
  160. }
  161.  
  162.  
  163.  
  164. go, do, anchor, a {
  165.   color: blue;
  166. }
  167.