pasdoc.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /*
  2. Copyright 1998-2018 PasDoc developers.
  3. This file is part of "PasDoc".
  4. "PasDoc" is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. "PasDoc" is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with "PasDoc"; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  15. ----------------------------------------------------------------------------
  16. */
  17. body, html, table.container {
  18. margin: 0;
  19. padding: 0;
  20. }
  21. body {
  22. font-family: Verdana,Arial;
  23. color: black;
  24. background-color: white;
  25. }
  26. table.container {
  27. width: 100%;
  28. border-spacing: 0;
  29. }
  30. table.container td {
  31. vertical-align: top;
  32. }
  33. td.navigation {
  34. width: 200px;
  35. color: white;
  36. background-color: #787878;
  37. margin: 0;
  38. /* padding-bottom is a little larger, to make navigation column have some
  39. nice height even when td.content column is very small. */
  40. padding: 1em 1em 100px 1em;
  41. }
  42. td.navigation p { padding: 0; }
  43. td.navigation h2 { margin-top: 0; font-size: 1.4em; }
  44. td.content { padding: 1em; }
  45. td.content h1 { margin-top: 0; font-size: 1.8em; }
  46. img { border:0px; }
  47. hr {
  48. border-bottom: medium none;
  49. border-top: thin solid #888;
  50. }
  51. a:link {color:#C91E0C; text-decoration: none; }
  52. a:visited {color:#7E5C31; text-decoration: none; }
  53. a:hover {text-decoration: underline; }
  54. a:active {text-decoration: underline; }
  55. a.navigation:link { color: white; text-decoration: none; }
  56. a.navigation:visited { color: white; text-decoration: none; }
  57. a.navigation:hover { color: white; font-weight: bold; text-decoration: none; }
  58. a.navigation:active { color: white; text-decoration: none; }
  59. a.bold:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
  60. a.bold:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
  61. a.bold:hover {text-decoration: underline; font-weight:bold; }
  62. a.bold:active {text-decoration: underline; font-weight:bold; }
  63. a.section {color: green; text-decoration: none; font-weight: bold; }
  64. a.section:hover {color: green; text-decoration: underline; font-weight: bold; }
  65. ul.useslist a:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
  66. ul.useslist a:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
  67. ul.useslist a:hover {text-decoration: underline; font-weight:bold; }
  68. ul.useslist a:active {text-decoration: underline; font-weight:bold; }
  69. ul.hierarchy { list-style-type:none; }
  70. ul.hierarchylevel { list-style-type:none; }
  71. p.unitlink a:link {color:#C91E0C; text-decoration: none; font-weight:bold; }
  72. p.unitlink a:visited {color:#7E5C31; text-decoration: none; font-weight:bold; }
  73. p.unitlink a:hover {text-decoration: underline; font-weight:bold; }
  74. p.unitlink a:active {text-decoration: underline; font-weight:bold; }
  75. tr.list { background: #FFBF44; }
  76. tr.list2 { background: #FFC982; }
  77. tr.listheader { background: #C91E0C; color: white; }
  78. table.wide_list { border-spacing:2px; width:100%; }
  79. table.wide_list td { vertical-align:top; padding:4px; }
  80. table.markerlegend { width:auto; }
  81. table.markerlegend td.legendmarker { text-align:center; }
  82. .sections { background:white; }
  83. .sections .one_section {
  84. background:lightgray;
  85. display: inline-block;
  86. margin: 0.2em;
  87. padding: 0.5em 1em;
  88. }
  89. table.summary td.itemcode { width:100%; }
  90. table.detail td.itemcode { width:100%; }
  91. td.itemname {white-space:nowrap; }
  92. td.itemunit {white-space:nowrap; }
  93. td.itemdesc { width:100%; }
  94. div.nodescription { color:red; }
  95. dl.parameters dt { color:blue; }
  96. /* Various browsers have various default styles for <h6>,
  97. sometimes ugly for our purposes, so it's best to set things
  98. like font-size and font-weight in out pasdoc.css explicitly. */
  99. h6.description_section {
  100. /* font-size 100% means that it has the same font size as the
  101. parent element, i.e. normal description text */
  102. font-size: 100%;
  103. font-weight: bold;
  104. /* By default browsers usually have some large margin-bottom and
  105. margin-top for <h1-6> tags. In our case, margin-bottom is
  106. unnecessary, we want to visually show that description_section
  107. is closely related to content below. In this situation
  108. (where the font size is just as a normal text), smaller bottom
  109. margin seems to look good. */
  110. margin-top: 1.4em;
  111. margin-bottom: 0em;
  112. }
  113. /* Style applied to Pascal code in documentation
  114. (e.g. produced by @longcode tag) } */
  115. span.pascal_string { color: #000080; }
  116. span.pascal_keyword { font-weight: bolder; }
  117. span.pascal_comment { color: #000080; font-style: italic; }
  118. span.pascal_compiler_comment { color: #008000; }
  119. span.pascal_numeric { }
  120. span.pascal_hex { }
  121. p.hint_directive { color: red; }
  122. input#search_text { }
  123. input#search_submit_button { }
  124. acronym.mispelling { background-color: #ffa; }
  125. /* Actually this reduces vertical space between *every* paragraph
  126. inside list with @itemSpacing(compact).
  127. While we would like to reduce this space only for the
  128. top of 1st and bottom of last paragraph within each list item.
  129. But, well, user probably will not do any paragraph breaks
  130. within a list with @itemSpacing(compact) anyway, so it's
  131. acceptable solution. */
  132. ul.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
  133. ol.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
  134. dl.compact_spacing p { margin-top: 0em; margin-bottom: 0em; }
  135. /* Style for table created by @table tags:
  136. just some thin border.
  137. This way we have some borders around the cells
  138. (so cells are visibly separated), but the border
  139. "blends with the background" so it doesn't look too ugly.
  140. Hopefully it looks satisfactory in most cases and for most
  141. people.
  142. We add padding for cells, otherwise they look too close.
  143. This is normal thing to do when border-collapse is set to
  144. collapse (because this eliminates spacing between cells).
  145. */
  146. table.table_tag { border-collapse: collapse; }
  147. table.table_tag td { border: 1pt solid gray; padding: 0.3em; }
  148. table.table_tag th { border: 1pt solid gray; padding: 0.3em; }
  149. table.detail {
  150. border: 1pt solid gray;
  151. margin-top: 0.3em;
  152. margin-bottom: 0.3em;
  153. }
  154. .search-form { white-space: nowrap; }
  155. .search-input, .search-button { display: inline-block; vertical-align: middle; }
  156. /* Do not make extra vertical space at the beginning/end of table cells.
  157. We need ">" selector, to not change paragraphs inside lists inside
  158. table cells. */
  159. table.table_tag td > p:first-child,
  160. table.table_tag th > p:first-child,
  161. td.itemdesc > p:first-child { margin-top: 0em; }
  162. table.table_tag td > p:last-child,
  163. table.table_tag th > p:last-child,
  164. td.itemdesc > p:last-child { margin-bottom: 0em; }
  165. span#bkmoNone, span#bkmoAdd, span#bkmoAddOrSet, span#bkmoRemove, span#bkmoClear {
  166. color:blue;
  167. }