main.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /* Originally cribbed from http://bluerobot.com/web/layouts/layout1.html
  2. * However, people who merge the hotlink colors are evil and should be killed,
  3. * so I removed that. Fixing font sizes in pixels is evil, too; is much as
  4. * possible I have moved all dimensions to be relative to the associated font
  5. * size. Finally, light grey is a great background color, but lousy for
  6. * foreground text on white.
  7. *
  8. * The only size in here that's tied to something external is the pixel size
  9. * for the menu width. This is sized to just fit a Google "wide skyscraper"
  10. * ad, which is 160x600.
  11. */
  12. body {
  13. margin:0;
  14. padding:0;
  15. font-family: helvetica, sans-serif;
  16. color:#333;
  17. background-image: url(/paper.gif);
  18. }
  19. p {
  20. font-family: helvetica, sans-serif;
  21. margin:0 0 1em 0;
  22. padding:0;
  23. }
  24. #Content>p {text-indent:2em; margin:0;}
  25. #Content>p+p {text-indent:2em; margin-top: 1ex;}
  26. h1 {
  27. font-size: x-large;
  28. margin-bottom: 0.25ex;
  29. }
  30. h2 {
  31. font-size: large;
  32. margin-bottom: 0.25ex;
  33. }
  34. a {
  35. text-decoration:none;
  36. font-family:verdana, arial, helvetica, sans-serif;
  37. }
  38. a:hover {background-color:#ccc;}
  39. #Header {
  40. font-weight:600;
  41. font-size: x-large; /* should be same as an h1 header */
  42. margin:20px 0 10px 0;
  43. padding:0 0 2.0ex 20px;
  44. border-style:solid;
  45. border-color:black;
  46. border-width:1px 0;
  47. background-color:#eee;
  48. height:1ex;
  49. }
  50. #Content {
  51. /* Left margin is menu width + 40 pixels
  52. */
  53. margin:0 50px 50px 200px;
  54. padding:10px;
  55. }
  56. #Menu {
  57. position:absolute;
  58. top:80px;
  59. left:20px;
  60. width:160px;
  61. padding:0.5em;
  62. background-color:#eee;
  63. border:1px dashed #999;
  64. }
  65. /* For internal tables of contents on a page. E.g. hacking.html. */
  66. ol.ToC {
  67. list-style: upper-roman;
  68. }
  69. div.strike {
  70. text-decoration: line-through;
  71. }
  72. @media print {
  73. #Content {
  74. /* Left margin is menu width + 3em
  75. */
  76. margin:0 50px 50px 0;
  77. padding:10px;
  78. }
  79. #Menu {
  80. display: none;
  81. }
  82. }
  83. /* For convenience */
  84. .centered {
  85. text-align: center;
  86. margin-left: auto;
  87. margin-right: auto;
  88. }
  89. .right {
  90. float:right;
  91. margin:0px;
  92. }
  93. .notebox {
  94. background-color:#eee;
  95. border:1px dashed #999;
  96. margin: 15px;
  97. font-size:small;
  98. text-indent: 0;
  99. }