basic.css 6.3 KB

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