lsr.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*
  2. Original author: Peter Parente
  3. Date: 2008/01/22
  4. Version: 1.0 (modified)
  5. Copyright: This stylesheet has been placed in the public domain - free to edit and use for all uses.
  6. --
  7. Heavily modified for use in nanopb documentation.
  8. 2011-2020 Petteri Aimonen
  9. */
  10. body {
  11. font: 100% sans-serif;
  12. background: #ffffff;
  13. color: black;
  14. margin: 2em;
  15. padding: 0em 2em;
  16. max-width: 1200px;
  17. }
  18. p.topic-title {
  19. font-weight: bold;
  20. }
  21. table.docinfo {
  22. text-align: left;
  23. margin: 2em 0em;
  24. }
  25. a[href] {
  26. color: #436976;
  27. background-color: transparent;
  28. }
  29. a.toc-backref {
  30. text-decoration: none;
  31. }
  32. h1 a[href] {
  33. color: #003a6b;
  34. text-decoration: none;
  35. background-color: transparent;
  36. }
  37. a.strong {
  38. font-weight: bold;
  39. }
  40. img {
  41. margin: 0;
  42. border: 0;
  43. }
  44. blockquote {
  45. border-left: 3px solid black;
  46. background-color: #f6f6f6;
  47. padding: 0.5em 1em 0.2em 1em;
  48. }
  49. li {
  50. margin-bottom: 0.5em;
  51. }
  52. p {
  53. margin: 0.5em 0 1em 0;
  54. line-height: 1.5em;
  55. }
  56. p a:visited {
  57. color: purple;
  58. background-color: transparent;
  59. }
  60. p a:active {
  61. color: red;
  62. background-color: transparent;
  63. }
  64. a:hover {
  65. text-decoration: none;
  66. }
  67. p img {
  68. border: 0;
  69. margin: 0;
  70. }
  71. p.rubric {
  72. font-weight: bold;
  73. font-style: italic;
  74. }
  75. em, cite {
  76. font-style: normal;
  77. font-family: monospace;
  78. font-weight: bold;
  79. }
  80. pre {
  81. border-left: 3px double #aaa;
  82. padding: 5px 10px;
  83. background-color: #f6f6f6;
  84. }
  85. code {
  86. border: 1px solid rgba(128, 128, 128, 0.1);
  87. padding: 1px 5px;
  88. border-radius: 5px;
  89. background-color: rgba(128, 128, 128, 0.05);
  90. white-space: nowrap;
  91. }
  92. pre code {
  93. border: none;
  94. background-color: transparent;
  95. padding: 0px;
  96. }
  97. h1, h2, h3, h4, h5, h6 {
  98. color: #000;
  99. background-color: transparent;
  100. margin: 0em;
  101. padding-top: 0.5em;
  102. }
  103. h1 {
  104. color: #003a6b;
  105. font-size: 180%;
  106. margin-bottom: 0.5em;
  107. border-bottom: 2px solid #aaa;
  108. }
  109. h2 {
  110. color: #003a6b;
  111. font-size: 130%;
  112. margin-bottom: 0.5em;
  113. border-bottom: 1px solid #aaa;
  114. margin-top: 1.5em;
  115. }
  116. h3 {
  117. font-size: 120%;
  118. margin-bottom: 0.5em;
  119. margin-top: 1.0em;
  120. }
  121. h4 {
  122. font-size: 110%;
  123. font-weight: bold;
  124. margin-bottom: 0.5em;
  125. margin-top: 0.5em;
  126. }
  127. h5 {
  128. font-size: 105%;
  129. font-weight: bold;
  130. margin-bottom: 0.5em;
  131. }
  132. h6 {
  133. font-size: 100%;
  134. font-weight: bold;
  135. margin-bottom: 0.5em;
  136. }
  137. dt {
  138. font-style: italic;
  139. }
  140. dd {
  141. margin-bottom: 1.5em;
  142. }
  143. table {
  144. text-align: left;
  145. border-collapse: collapse;
  146. margin: 1.5em 0em;
  147. }
  148. table td, table th {
  149. padding: 0.25em 1em;
  150. border-top: 1px solid gray;
  151. border-bottom: 1px solid gray;
  152. }
  153. #index {
  154. margin: 2em 2em 2em 0em;
  155. padding: 0em 1em;
  156. border-top: 1px solid #aaa;
  157. border-left: 1px solid #aaa;
  158. border-bottom: 2px solid #555;
  159. border-right: 2px solid #555;
  160. max-width: 20em;
  161. }
  162. #index h2 {
  163. margin-bottom: 0em;
  164. margin-top: 0em;
  165. color: #003a6b;
  166. font-size: 100%;
  167. border-bottom: 1px solid #aaa;
  168. font-weight: bold;
  169. }
  170. #feedback_link {
  171. float: right;
  172. }
  173. #feedback {
  174. visibility: hidden;
  175. padding: 1em;
  176. border-radius: 5px;
  177. position: fixed;
  178. top: 10em;
  179. right: 10em;
  180. background: white;
  181. border-top: 1px solid #aaa;
  182. border-left: 1px solid #aaa;
  183. border-bottom: 2px solid #555;
  184. border-right: 2px solid #555;
  185. }
  186. #feedback:target {
  187. visibility: visible;
  188. }
  189. #feedback .cancel {
  190. color: #666;
  191. padding-left: 2em;
  192. }