basic.css 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. /**
  2. * Sphinx stylesheet -- basic theme
  3. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. */
  5. /* -- main layout ----------------------------------------------------------- */
  6. div.clearer {
  7. clear: both;
  8. }
  9. /* -- relbar ---------------------------------------------------------------- */
  10. div.related {
  11. width: 100%;
  12. font-size: 90%;
  13. }
  14. div.related h3 {
  15. display: none;
  16. }
  17. div.related ul {
  18. margin: 0;
  19. padding: 0 0 0 10px;
  20. list-style: none;
  21. }
  22. div.related li {
  23. display: inline;
  24. }
  25. div.related li.right {
  26. float: right;
  27. margin-right: 5px;
  28. }
  29. /* -- sidebar --------------------------------------------------------------- */
  30. div.sphinxsidebarwrapper {
  31. padding: 10px 5px 0 10px;
  32. }
  33. div.sphinxsidebar {
  34. float: left;
  35. width: 230px;
  36. margin-left: -100%;
  37. font-size: 90%;
  38. }
  39. div.sphinxsidebar ul {
  40. list-style: none;
  41. }
  42. div.sphinxsidebar ul ul,
  43. div.sphinxsidebar ul.want-points {
  44. margin-left: 20px;
  45. list-style: square;
  46. }
  47. div.sphinxsidebar ul ul {
  48. margin-top: 0;
  49. margin-bottom: 0;
  50. }
  51. div.sphinxsidebar form {
  52. margin-top: 10px;
  53. }
  54. div.sphinxsidebar input {
  55. border: 1px solid #98dbcc;
  56. font-family: sans-serif;
  57. font-size: 1em;
  58. }
  59. img {
  60. border: 0;
  61. }
  62. /* -- search page ----------------------------------------------------------- */
  63. ul.search {
  64. margin: 10px 0 0 20px;
  65. padding: 0;
  66. }
  67. ul.search li {
  68. padding: 5px 0 5px 20px;
  69. background-image: url(file.png);
  70. background-repeat: no-repeat;
  71. background-position: 0 7px;
  72. }
  73. ul.search li a {
  74. font-weight: bold;
  75. }
  76. ul.search li div.context {
  77. color: #888;
  78. margin: 2px 0 0 30px;
  79. text-align: left;
  80. }
  81. ul.keywordmatches li.goodmatch a {
  82. font-weight: bold;
  83. }
  84. /* -- index page ------------------------------------------------------------ */
  85. table.contentstable {
  86. width: 90%;
  87. }
  88. table.contentstable p.biglink {
  89. line-height: 150%;
  90. }
  91. a.biglink {
  92. font-size: 1.3em;
  93. }
  94. span.linkdescr {
  95. font-style: italic;
  96. padding-top: 5px;
  97. font-size: 90%;
  98. }
  99. /* -- general index --------------------------------------------------------- */
  100. table.indextable td {
  101. text-align: left;
  102. vertical-align: top;
  103. }
  104. table.indextable dl, table.indextable dd {
  105. margin-top: 0;
  106. margin-bottom: 0;
  107. }
  108. table.indextable tr.pcap {
  109. height: 10px;
  110. }
  111. table.indextable tr.cap {
  112. margin-top: 10px;
  113. background-color: #f2f2f2;
  114. }
  115. img.toggler {
  116. margin-right: 3px;
  117. margin-top: 3px;
  118. cursor: pointer;
  119. }
  120. /* -- general body styles --------------------------------------------------- */
  121. a.headerlink {
  122. visibility: hidden;
  123. }
  124. h1:hover > a.headerlink,
  125. h2:hover > a.headerlink,
  126. h3:hover > a.headerlink,
  127. h4:hover > a.headerlink,
  128. h5:hover > a.headerlink,
  129. h6:hover > a.headerlink,
  130. dt:hover > a.headerlink {
  131. visibility: visible;
  132. }
  133. div.body p.caption {
  134. text-align: inherit;
  135. }
  136. div.body td {
  137. text-align: left;
  138. }
  139. .field-list ul {
  140. padding-left: 1em;
  141. }
  142. .first {
  143. margin-top: 0 !important;
  144. }
  145. p.rubric {
  146. margin-top: 30px;
  147. font-weight: bold;
  148. }
  149. /* -- sidebars -------------------------------------------------------------- */
  150. div.sidebar {
  151. margin: 0 0 0.5em 1em;
  152. border: 1px solid #ddb;
  153. padding: 7px 7px 0 7px;
  154. background-color: #ffe;
  155. width: 40%;
  156. float: right;
  157. }
  158. p.sidebar-title {
  159. font-weight: bold;
  160. }
  161. /* -- topics ---------------------------------------------------------------- */
  162. div.topic {
  163. border: 1px solid #ccc;
  164. padding: 7px 7px 0 7px;
  165. margin: 10px 0 10px 0;
  166. }
  167. p.topic-title {
  168. font-size: 1.1em;
  169. font-weight: bold;
  170. margin-top: 10px;
  171. }
  172. /* -- admonitions ----------------------------------------------------------- */
  173. div.admonition {
  174. margin-top: 10px;
  175. margin-bottom: 10px;
  176. padding: 7px;
  177. }
  178. div.admonition dt {
  179. font-weight: bold;
  180. }
  181. div.admonition dl {
  182. margin-bottom: 0;
  183. }
  184. p.admonition-title {
  185. margin: 0px 10px 5px 0px;
  186. font-weight: bold;
  187. }
  188. div.body p.centered {
  189. text-align: center;
  190. margin-top: 25px;
  191. }
  192. /* -- tables ---------------------------------------------------------------- */
  193. table.docutils {
  194. border: 0;
  195. border-collapse: collapse;
  196. }
  197. table.docutils td, table.docutils th {
  198. padding: 1px 8px 1px 0;
  199. border-top: 0;
  200. border-left: 0;
  201. border-right: 0;
  202. border-bottom: 1px solid #aaa;
  203. }
  204. table.field-list td, table.field-list th {
  205. border: 0 !important;
  206. }
  207. table.footnote td, table.footnote th {
  208. border: 0 !important;
  209. }
  210. th {
  211. text-align: left;
  212. padding-right: 5px;
  213. }
  214. /* -- other body styles ----------------------------------------------------- */
  215. dl {
  216. margin-bottom: 15px;
  217. }
  218. dd p {
  219. margin-top: 0px;
  220. }
  221. dd ul, dd table {
  222. margin-bottom: 10px;
  223. }
  224. dd {
  225. margin-top: 3px;
  226. margin-bottom: 10px;
  227. margin-left: 30px;
  228. }
  229. dt:target, .highlight {
  230. background-color: #fbe54e;
  231. }
  232. dl.glossary dt {
  233. font-weight: bold;
  234. font-size: 1.1em;
  235. }
  236. .field-list ul {
  237. margin: 0;
  238. padding-left: 1em;
  239. }
  240. .field-list p {
  241. margin: 0;
  242. }
  243. .refcount {
  244. color: #060;
  245. }
  246. .optional {
  247. font-size: 1.3em;
  248. }
  249. .versionmodified {
  250. font-style: italic;
  251. }
  252. .system-message {
  253. background-color: #fda;
  254. padding: 5px;
  255. border: 3px solid red;
  256. }
  257. .footnote:target {
  258. background-color: #ffa
  259. }
  260. /* -- code displays --------------------------------------------------------- */
  261. pre {
  262. overflow: auto;
  263. }
  264. td.linenos pre {
  265. padding: 5px 0px;
  266. border: 0;
  267. background-color: transparent;
  268. color: #aaa;
  269. }
  270. table.highlighttable {
  271. margin-left: 0.5em;
  272. }
  273. table.highlighttable td {
  274. padding: 0 0.5em 0 0.5em;
  275. }
  276. tt.descname {
  277. background-color: transparent;
  278. font-weight: bold;
  279. font-size: 1.2em;
  280. }
  281. tt.descclassname {
  282. background-color: transparent;
  283. }
  284. tt.xref, a tt {
  285. background-color: transparent;
  286. font-weight: bold;
  287. }
  288. h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
  289. background-color: transparent;
  290. }
  291. /* -- math display ---------------------------------------------------------- */
  292. img.math {
  293. vertical-align: middle;
  294. }
  295. div.math p {
  296. text-align: center;
  297. }
  298. span.eqno {
  299. float: right;
  300. }
  301. /* -- printout stylesheet --------------------------------------------------- */
  302. @media print {
  303. div.document,
  304. div.documentwrapper,
  305. div.bodywrapper {
  306. margin: 0;
  307. width: 100%;
  308. }
  309. div.sphinxsidebar,
  310. div.related,
  311. div.footer,
  312. #top-link {
  313. display: none;
  314. }
  315. }