twb.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* use a traditional typesetting style */
  2. p, dd { text-align:justify; }
  3. p { margin-top:0; margin-bottom:0; }
  4. p+p { text-indent:1em; }
  5. /* argh, just throw out browser's margins and uses our own */
  6. table, ol, ul, p, h1, h2, h3, h4 { margin:0; }
  7. html { margin:0.2em; }
  8. body { margin:0.0em; }
  9. table, ol, ul { margin-left:1.4em; }
  10. *+table, *+ul, *+ol, *+div { margin-top: 0.6em; }
  11. table+p, ul+p, ol+p, div+p { margin-top: 0.6em; }
  12. h1, h2, h3, h4 { margin-top: 0.6em; }
  13. td, th { padding-left:0.5em; padding-right:0.5em; }
  14. caption { margin-top: 0.6em; }
  15. /* use faces from the manuscript */
  16. body { font-family:Times New Roman, Times, serif; font-weight:medium; font-size:1.0em; font-style:normal; }
  17. h1, h2, h3 { font-family:Helvetica, sans; font-weight:bold; }
  18. h1 { font-size:2.0em; font-style:normal; }
  19. h2 { font-size:1.4em; font-style:normal; }
  20. h3 { font-size:1.2em; font-style:italic; }
  21. h3 > em { font-style:normal; }
  22. /* the exercise titles are a bit of a hack */
  23. div > p:first-child > em:first-child > strong:first-child,
  24. div.exercise > p:first-child > em:first-child > strong:first-child,
  25. div.dialogue > em:first-child > strong:first-child,
  26. div.lesson-goals > strong:first-child,
  27. div.culture-point > strong:first-child { font-family:Helvetica, sans; }
  28. table caption { font-family:Times New Roman, Times, serif; font-weight:bold; font-style:italic; }
  29. div.lesson-goals,
  30. div.culture-point { font-family:Helvetica, sans; }
  31. th { font-weight:normal; font-style:italic; }
  32. /* the first column in a dialogue is the speaker, which should be small caps */
  33. div.dialogue > table tr > td:first-child { font-variant:small-caps; }
  34. /* the book title and author are just h1s, I'm afraid */
  35. h1.title { font-size:3em; text-align:center; margin-top:0em; }
  36. h1.author { font-size:2.2em; text-align:center; margin-top:0em; }
  37. // div { border: 1px solid grey; margin:1px; margin-left:1em; margin-right:1em; }
  38. div.culture-point, div.lesson-goals { border:2px solid black; padding:0.2em; }
  39. td { vertical-align:top; }
  40. th { text-align:left; }
  41. // .vocabulary { -moz-column-width:20em; -moz-column-gap:1.5em; }