home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / Chip_2002-10_cd1.bin / zkuste / freesoft / bin / Multivalent.jar / multivalent / std / adaptor / HTML.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-04-28  |  2.9 KB  |  113 lines

  1. /*
  2. cx = new GenericStructure();
  3. cx.setTopMargin(0);
  4. ss.put("p", "h1", cx);
  5. ss.put("p", "h2", cx);
  6. ss.put("p", "h3", cx);
  7. ss.put("p", "h4", cx);
  8. ss.put("p", "h5", cx);
  9. ss.put("p", "h6", cx);
  10.  
  11. cx = new GenericStructure();
  12. cx.setJustify(Node.LEFT);
  13. ss.put("table", cx);
  14.  
  15. cx = new GenericStructure();
  16. cx.setLeftMargin(25); cx.setTopMargin(0);
  17. ss.put("ol", "ol", cx);
  18. ss.put("ul", "ol", cx);
  19. ss.put("ol", "ul", cx);
  20. ss.put("ul", "ul", cx);
  21. ss.put("ol", "dl", cx);
  22. ss.put("ul", "dl", cx);
  23. //ss.put("menu", "ol", cx); => rewritten as UL
  24.  
  25. //cx = new GenericStructure();
  26. //cx.setTopMargin(5); cx.setBottomMargin(5);
  27. //ss.put("br", cx);
  28.  
  29. //ss.put("pre", new MonospacedSpan(null,0,null,0, null));
  30. //ss.put("pre", (Span)br.getBehaviorInstance("MonospacedSpan","MonospacedSpan",null,null));
  31. ss.put("pre", html.makeSpanType("MonospacedSpan", HTML.PRE, null,-1,-1, null,null));
  32.  
  33.  
  34. //ss.put("address", new ItalicSpan(null,0,null,0, null));
  35. //ss.put("address", (Span)br.getBehaviorInstance("ItalicSpan","ItalicSpan",null,null));
  36. ss.put("address", html.makeSpanType("ItalicSpan", HTML.ADDRESS, null,-1,-1, null,null));
  37. */
  38.  
  39. body, p, 
  40. ol, ul, li, dl, dt, dd,
  41. h1, h2, h3, h4, h5, h6
  42.     { display: block }
  43.  
  44. span, a, ins, del, 
  45. b, strong, i, em, cite, var, 
  46. tt, code, kbd, samp,
  47. strike, s, u
  48.     { display: inline }
  49.  
  50.  
  51. body {
  52.     color: black; background-color: white;
  53.     font-size: 12pts;
  54.     padding: 5px;
  55. /* "Lucida Bright" has good set of Unicode glyphs and built into Java -- bad metrics between g and o?  triggers bug?
  56. padding 5 pixels */
  57. }
  58.  
  59. a:link { color: blue; }
  60. a:visited { color: magenta; }
  61. a:hover { color: red; }
  62. a:active { color: red; }
  63.  
  64. a:link, a:visited, 
  65. a:active, a:hover {
  66.     text-decoration: underline;
  67. }
  68.  
  69. p {
  70.     margin-top: 10px;
  71. }
  72.  
  73. ul, ol { margin-left: 25px; }
  74. /*menu rewritten as UL*/
  75.  
  76. dl { margin-top: 15px; }
  77. dd { margin-left: 15px; }
  78.  
  79. blockquote { margin: 3px 20px }
  80.  
  81. h1 { font-size: 24pt; font-weight: bold; margin: 10px 0px; }
  82. h2 { font-size: 18pt; font-weight: bold; margin: 9px 0px; }
  83. h3 { font-size: 14pt; font-weight: bold; margin: 7px 0px; }
  84. h4 { font-size: 12pt; font-weight: bold; margin: 6px 0px; }
  85. h5 { font-size: 10pt; font-weight: bold; margin: 5px 0px; }
  86. h6 { font-size:  9pt; font-weight: bold; margin: 5px 0px; }
  87.  
  88. input {
  89. /*    margin-left: 3px; margin-right: 3px;*/
  90. }
  91.  
  92.  
  93. button, select, input { padding: 3px; }
  94. text { padding: 3px; }
  95.  
  96. pre { font-family: monospaced; }
  97.  
  98. ins { text-decoration: underline; }
  99. del, strike, s { text-decoration: overstrike; }
  100. b, strong { font-weight: bold; }
  101. i, em, cite, var, address { font-style: italic; }
  102. tt, code, kbd, samp, pre { font-family: monospace; }
  103. u { text-decoration: underline; }
  104. /* no display: generic: q, abbr, acronym, dfn, bdo, legend, label, span */
  105.  
  106.  
  107. select { border-width: 1px; }
  108.  
  109. h1, h2, h3, h4, h5, h6 {
  110.     elide: false;
  111. }
  112. nobr { margin-left: 5px; margin-right: 5px; }
  113.