basic.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. /*
  2. * basic.css
  3. * ~~~~~~~~~
  4. *
  5. * Sphinx stylesheet -- basic theme.
  6. *
  7. * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
  8. * :license: BSD, see LICENSE for details.
  9. *
  10. * Adjustments by Hans Petter Langtangen <hpl@simula.no>
  11. * (added admonition border)
  12. */
  13. /* -- main layout ----------------------------------------------------------- */
  14. div.clearer {
  15. clear: both;
  16. }
  17. /* -- relbar ---------------------------------------------------------------- */
  18. div.related {
  19. width: 100%;
  20. font-size: 90%;
  21. }
  22. div.related h3 {
  23. display: none;
  24. }
  25. div.related ul {
  26. margin: 0;
  27. padding: 0 0 0 10px;
  28. list-style: none;
  29. }
  30. div.related li {
  31. display: inline;
  32. }
  33. div.related li.right {
  34. float: right;
  35. margin-right: 5px;
  36. }
  37. /* -- sidebar --------------------------------------------------------------- */
  38. div.sphinxsidebarwrapper {
  39. padding: 10px 5px 0 10px;
  40. }
  41. div.sphinxsidebar {
  42. float: left;
  43. width: 230px;
  44. margin-left: -100%;
  45. font-size: 90%;
  46. }
  47. div.sphinxsidebar ul {
  48. list-style: none;
  49. }
  50. div.sphinxsidebar ul ul,
  51. div.sphinxsidebar ul.want-points {
  52. margin-left: 20px;
  53. list-style: square;
  54. }
  55. div.sphinxsidebar ul ul {
  56. margin-top: 0;
  57. margin-bottom: 0;
  58. }
  59. div.sphinxsidebar form {
  60. margin-top: 10px;
  61. }
  62. div.sphinxsidebar input {
  63. border: 1px solid #98dbcc;
  64. font-family: sans-serif;
  65. font-size: 1em;
  66. }
  67. img {
  68. border: 0;
  69. }
  70. /* -- search page ----------------------------------------------------------- */
  71. ul.search {
  72. margin: 10px 0 0 20px;
  73. padding: 0;
  74. }
  75. ul.search li {
  76. padding: 5px 0 5px 20px;
  77. background-image: url(file.png);
  78. background-repeat: no-repeat;
  79. background-position: 0 7px;
  80. }
  81. ul.search li a {
  82. font-weight: bold;
  83. }
  84. ul.search li div.context {
  85. color: #888;
  86. margin: 2px 0 0 30px;
  87. text-align: left;
  88. }
  89. ul.keywordmatches li.goodmatch a {
  90. font-weight: bold;
  91. }
  92. /* -- index page ------------------------------------------------------------ */
  93. table.contentstable {
  94. width: 90%;
  95. }
  96. table.contentstable p.biglink {
  97. line-height: 150%;
  98. }
  99. a.biglink {
  100. font-size: 1.3em;
  101. }
  102. span.linkdescr {
  103. font-style: italic;
  104. padding-top: 5px;
  105. font-size: 90%;
  106. }
  107. /* -- general index --------------------------------------------------------- */
  108. table.indextable {
  109. width: 100%;
  110. }
  111. table.indextable td {
  112. text-align: left;
  113. vertical-align: top;
  114. }
  115. table.indextable dl, table.indextable dd {
  116. margin-top: 0;
  117. margin-bottom: 0;
  118. }
  119. table.indextable tr.pcap {
  120. height: 10px;
  121. }
  122. table.indextable tr.cap {
  123. margin-top: 10px;
  124. background-color: #f2f2f2;
  125. }
  126. img.toggler {
  127. margin-right: 3px;
  128. margin-top: 3px;
  129. cursor: pointer;
  130. }
  131. div.modindex-jumpbox {
  132. border-top: 1px solid #ddd;
  133. border-bottom: 1px solid #ddd;
  134. margin: 1em 0 1em 0;
  135. padding: 0.4em;
  136. }
  137. div.genindex-jumpbox {
  138. border-top: 1px solid #ddd;
  139. border-bottom: 1px solid #ddd;
  140. margin: 1em 0 1em 0;
  141. padding: 0.4em;
  142. }
  143. /* -- general body styles --------------------------------------------------- */
  144. a.headerlink {
  145. visibility: hidden;
  146. }
  147. h1:hover > a.headerlink,
  148. h2:hover > a.headerlink,
  149. h3:hover > a.headerlink,
  150. h4:hover > a.headerlink,
  151. h5:hover > a.headerlink,
  152. h6:hover > a.headerlink,
  153. dt:hover > a.headerlink {
  154. visibility: visible;
  155. }
  156. div.body p.caption {
  157. text-align: inherit;
  158. }
  159. div.body td {
  160. text-align: left;
  161. }
  162. .field-list ul {
  163. padding-left: 1em;
  164. }
  165. .first {
  166. margin-top: 0 !important;
  167. }
  168. p.rubric {
  169. margin-top: 30px;
  170. font-weight: bold;
  171. }
  172. img.align-left, .figure.align-left, object.align-left {
  173. clear: left;
  174. float: left;
  175. margin-right: 1em;
  176. }
  177. img.align-right, .figure.align-right, object.align-right {
  178. clear: right;
  179. float: right;
  180. margin-left: 1em;
  181. }
  182. img.align-center, .figure.align-center, object.align-center {
  183. display: block;
  184. margin-left: auto;
  185. margin-right: auto;
  186. }
  187. .align-left {
  188. text-align: left;
  189. }
  190. .align-center {
  191. clear: both;
  192. text-align: center;
  193. }
  194. .align-right {
  195. text-align: right;
  196. }
  197. /* -- sidebars -------------------------------------------------------------- */
  198. div.sidebar {
  199. margin: 0 0 0.5em 1em;
  200. border: 1px solid #ddb;
  201. padding: 7px 7px 0 7px;
  202. background-color: #ffe;
  203. width: 40%;
  204. float: right;
  205. }
  206. p.sidebar-title {
  207. font-weight: bold;
  208. }
  209. /* -- topics ---------------------------------------------------------------- */
  210. div.topic {
  211. border: 1px solid #ccc;
  212. padding: 7px 7px 0 7px;
  213. margin: 10px 0 10px 0;
  214. }
  215. p.topic-title {
  216. font-size: 1.1em;
  217. font-weight: bold;
  218. margin-top: 10px;
  219. }
  220. /* -- admonitions ----------------------------------------------------------- */
  221. div.admonition {
  222. /* Added border and gray background color, hpl */
  223. border: 1px solid;
  224. background-color: #f2f2f2;
  225. margin-top: 10px;
  226. margin-bottom: 10px;
  227. padding: 7px;
  228. }
  229. div.admonition dt {
  230. font-weight: bold;
  231. }
  232. div.admonition dl {
  233. margin-bottom: 0;
  234. }
  235. p.admonition-title {
  236. margin: 0px 10px 5px 0px;
  237. font-weight: bold;
  238. }
  239. div.body p.centered {
  240. text-align: center;
  241. margin-top: 25px;
  242. }
  243. /* -- tables ---------------------------------------------------------------- */
  244. table.docutils {
  245. border: 0;
  246. border-collapse: collapse;
  247. }
  248. table.docutils td, table.docutils th {
  249. padding: 1px 8px 1px 5px;
  250. border-top: 0;
  251. border-left: 0;
  252. border-right: 0;
  253. border-bottom: 1px solid #aaa;
  254. }
  255. table.field-list td, table.field-list th {
  256. border: 0 !important;
  257. }
  258. table.footnote td, table.footnote th {
  259. border: 0 !important;
  260. }
  261. th {
  262. text-align: left;
  263. padding-right: 5px;
  264. }
  265. table.citation {
  266. border-left: solid 1px gray;
  267. margin-left: 1px;
  268. }
  269. table.citation td {
  270. border-bottom: none;
  271. }
  272. /* -- other body styles ----------------------------------------------------- */
  273. ol.arabic {
  274. list-style: decimal;
  275. }
  276. ol.loweralpha {
  277. list-style: lower-alpha;
  278. }
  279. ol.upperalpha {
  280. list-style: upper-alpha;
  281. }
  282. ol.lowerroman {
  283. list-style: lower-roman;
  284. }
  285. ol.upperroman {
  286. list-style: upper-roman;
  287. }
  288. dl {
  289. margin-bottom: 15px;
  290. }
  291. dd p {
  292. margin-top: 0px;
  293. }
  294. dd ul, dd table {
  295. margin-bottom: 10px;
  296. }
  297. dd {
  298. margin-top: 3px;
  299. margin-bottom: 10px;
  300. margin-left: 30px;
  301. }
  302. dt:target, .highlighted {
  303. background-color: #fbe54e;
  304. }
  305. dl.glossary dt {
  306. font-weight: bold;
  307. font-size: 1.1em;
  308. }
  309. .field-list ul {
  310. margin: 0;
  311. padding-left: 1em;
  312. }
  313. .field-list p {
  314. margin: 0;
  315. }
  316. .refcount {
  317. color: #060;
  318. }
  319. .optional {
  320. font-size: 1.3em;
  321. }
  322. .versionmodified {
  323. font-style: italic;
  324. }
  325. .system-message {
  326. background-color: #fda;
  327. padding: 5px;
  328. border: 3px solid red;
  329. }
  330. .footnote:target {
  331. background-color: #ffa;
  332. }
  333. .line-block {
  334. display: block;
  335. margin-top: 1em;
  336. margin-bottom: 1em;
  337. }
  338. .line-block .line-block {
  339. margin-top: 0;
  340. margin-bottom: 0;
  341. margin-left: 1.5em;
  342. }
  343. .guilabel, .menuselection {
  344. font-family: sans-serif;
  345. }
  346. .accelerator {
  347. text-decoration: underline;
  348. }
  349. .classifier {
  350. font-style: oblique;
  351. }
  352. /* -- code displays --------------------------------------------------------- */
  353. pre {
  354. overflow: auto;
  355. overflow-y: hidden; /* fixes display issues on Chrome browsers */
  356. }
  357. td.linenos pre {
  358. padding: 5px 0px;
  359. border: 0;
  360. background-color: transparent;
  361. color: #aaa;
  362. }
  363. table.highlighttable {
  364. margin-left: 0.5em;
  365. }
  366. table.highlighttable td {
  367. padding: 0 0.5em 0 0.5em;
  368. }
  369. tt.descname {
  370. background-color: transparent;
  371. font-weight: bold;
  372. font-size: 1.2em;
  373. }
  374. tt.descclassname {
  375. background-color: transparent;
  376. }
  377. tt.xref, a tt {
  378. background-color: transparent;
  379. font-weight: bold;
  380. }
  381. h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
  382. background-color: transparent;
  383. }
  384. .viewcode-link {
  385. float: right;
  386. }
  387. .viewcode-back {
  388. float: right;
  389. font-family: sans-serif;
  390. }
  391. div.viewcode-block:target {
  392. margin: -1px -10px;
  393. padding: 0 10px;
  394. }
  395. /* -- math display ---------------------------------------------------------- */
  396. img.math {
  397. vertical-align: middle;
  398. }
  399. div.body div.math p {
  400. text-align: center;
  401. }
  402. span.eqno {
  403. float: right;
  404. }
  405. /* -- printout stylesheet --------------------------------------------------- */
  406. @media print {
  407. div.document,
  408. div.documentwrapper,
  409. div.bodywrapper {
  410. margin: 0 !important;
  411. width: 100%;
  412. }
  413. div.sphinxsidebar,
  414. div.related,
  415. div.footer,
  416. #top-link {
  417. display: none;
  418. }
  419. }