epub.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /*
  2. * default.css_t
  3. * ~~~~~~~~~~~~~
  4. *
  5. * Sphinx stylesheet -- default theme.
  6. *
  7. * :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
  8. * :license: BSD, see LICENSE for details.
  9. *
  10. */
  11. @import url("basic.css");
  12. /* -- page layout ----------------------------------------------------------- */
  13. body {
  14. font-family: {{ theme_bodyfont }};
  15. font-size: 100%;
  16. background-color: {{ theme_footerbgcolor }};
  17. color: #000;
  18. margin: 0;
  19. padding: 0;
  20. }
  21. div.document {
  22. background-color: {{ theme_sidebarbgcolor }};
  23. }
  24. div.documentwrapper {
  25. float: left;
  26. width: 100%;
  27. }
  28. div.bodywrapper {
  29. margin: 0 0 0 230px;
  30. }
  31. div.body {
  32. background-color: {{ theme_bgcolor }};
  33. color: {{ theme_textcolor }};
  34. padding: 0 20px 30px 20px;
  35. }
  36. {%- if theme_rightsidebar|tobool %}
  37. div.bodywrapper {
  38. margin: 0 230px 0 0;
  39. }
  40. {%- endif %}
  41. div.footer {
  42. color: {{ theme_footertextcolor }};
  43. width: 100%;
  44. padding: 9px 0 9px 0;
  45. text-align: center;
  46. font-size: 75%;
  47. }
  48. div.footer a {
  49. color: {{ theme_footertextcolor }};
  50. text-decoration: underline;
  51. }
  52. div.related {
  53. background-color: {{ theme_relbarbgcolor }};
  54. line-height: 30px;
  55. color: {{ theme_relbartextcolor }};
  56. }
  57. div.related a {
  58. color: {{ theme_relbarlinkcolor }};
  59. }
  60. div.sphinxsidebar {
  61. {%- if theme_stickysidebar|tobool %}
  62. top: 30px;
  63. bottom: 0;
  64. margin: 0;
  65. position: fixed;
  66. overflow: auto;
  67. height: auto;
  68. {%- endif %}
  69. {%- if theme_rightsidebar|tobool %}
  70. float: right;
  71. {%- if theme_stickysidebar|tobool %}
  72. right: 0;
  73. {%- endif %}
  74. {%- endif %}
  75. }
  76. {%- if theme_stickysidebar|tobool %}
  77. /* this is nice, but it it leads to hidden headings when jumping
  78. to an anchor */
  79. /*
  80. div.related {
  81. position: fixed;
  82. }
  83. div.documentwrapper {
  84. margin-top: 30px;
  85. }
  86. */
  87. {%- endif %}
  88. div.sphinxsidebar h3 {
  89. font-family: {{ theme_headfont }};
  90. color: {{ theme_sidebartextcolor }};
  91. font-size: 1.4em;
  92. font-weight: normal;
  93. margin: 0;
  94. padding: 0;
  95. }
  96. div.sphinxsidebar h3 a {
  97. color: {{ theme_sidebartextcolor }};
  98. }
  99. div.sphinxsidebar h4 {
  100. font-family: {{ theme_headfont }};
  101. color: {{ theme_sidebartextcolor }};
  102. font-size: 1.3em;
  103. font-weight: normal;
  104. margin: 5px 0 0 0;
  105. padding: 0;
  106. }
  107. div.sphinxsidebar p {
  108. color: {{ theme_sidebartextcolor }};
  109. }
  110. div.sphinxsidebar p.topless {
  111. margin: 5px 10px 10px 10px;
  112. }
  113. div.sphinxsidebar ul {
  114. margin: 10px;
  115. padding: 0;
  116. color: {{ theme_sidebartextcolor }};
  117. }
  118. div.sphinxsidebar a {
  119. color: {{ theme_sidebarlinkcolor }};
  120. }
  121. div.sphinxsidebar input {
  122. border: 1px solid {{ theme_sidebarlinkcolor }};
  123. font-family: sans-serif;
  124. font-size: 1em;
  125. }
  126. {% if theme_collapsiblesidebar|tobool %}
  127. /* for collapsible sidebar */
  128. div#sidebarbutton {
  129. background-color: {{ theme_sidebarbtncolor }};
  130. }
  131. {% endif %}
  132. /* -- hyperlink styles ------------------------------------------------------ */
  133. a {
  134. color: {{ theme_linkcolor }};
  135. text-decoration: none;
  136. }
  137. a:visited {
  138. color: {{ theme_visitedlinkcolor }};
  139. text-decoration: none;
  140. }
  141. a:hover {
  142. text-decoration: underline;
  143. }
  144. {% if theme_externalrefs|tobool %}
  145. a.external {
  146. text-decoration: none;
  147. border-bottom: 1px dashed {{ theme_linkcolor }};
  148. }
  149. a.external:hover {
  150. text-decoration: none;
  151. border-bottom: none;
  152. }
  153. a.external:visited {
  154. text-decoration: none;
  155. border-bottom: 1px dashed {{ theme_visitedlinkcolor }};
  156. }
  157. {% endif %}
  158. /* -- body styles ----------------------------------------------------------- */
  159. div.body h1,
  160. div.body h2,
  161. div.body h3,
  162. div.body h4,
  163. div.body h5,
  164. div.body h6 {
  165. font-family: {{ theme_headfont }};
  166. background-color: {{ theme_headbgcolor }};
  167. font-weight: normal;
  168. color: {{ theme_headtextcolor }};
  169. border-bottom: 1px solid #ccc;
  170. margin: 20px -20px 10px -20px;
  171. padding: 3px 0 3px 10px;
  172. }
  173. div.body h1 { margin-top: 0; font-size: 200%; }
  174. div.body h2 { font-size: 160%; }
  175. div.body h3 { font-size: 140%; }
  176. div.body h4 { font-size: 120%; }
  177. div.body h5 { font-size: 110%; }
  178. div.body h6 { font-size: 100%; }
  179. a.headerlink {
  180. color: {{ theme_headlinkcolor }};
  181. font-size: 0.8em;
  182. padding: 0 4px 0 4px;
  183. text-decoration: none;
  184. }
  185. a.headerlink:hover {
  186. background-color: {{ theme_headlinkcolor }};
  187. color: white;
  188. }
  189. div.body p, div.body dd, div.body li {
  190. text-align: justify;
  191. line-height: 130%;
  192. }
  193. div.admonition p.admonition-title + p {
  194. display: inline;
  195. }
  196. div.admonition p {
  197. margin-bottom: 5px;
  198. }
  199. div.admonition pre {
  200. margin-bottom: 5px;
  201. }
  202. div.admonition ul, div.admonition ol {
  203. margin-bottom: 5px;
  204. }
  205. div.note {
  206. background-color: #eee;
  207. border: 1px solid #ccc;
  208. }
  209. div.seealso {
  210. background-color: #ffc;
  211. border: 1px solid #ff6;
  212. }
  213. div.topic {
  214. background-color: #eee;
  215. }
  216. div.warning {
  217. background-color: #ffe4e4;
  218. border: 1px solid #f66;
  219. }
  220. p.admonition-title {
  221. display: inline;
  222. }
  223. p.admonition-title:after {
  224. content: ":";
  225. }
  226. pre {
  227. padding: 5px;
  228. background-color: {{ theme_codebgcolor }};
  229. color: {{ theme_codetextcolor }};
  230. line-height: 120%;
  231. border: 1px solid #ac9;
  232. border-left: none;
  233. border-right: none;
  234. }
  235. tt {
  236. background-color: #ecf0f3;
  237. padding: 0 1px 0 1px;
  238. font-size: 0.95em;
  239. }
  240. th {
  241. background-color: #ede;
  242. }
  243. .warning tt {
  244. background: #efc2c2;
  245. }
  246. .note tt {
  247. background: #d6d6d6;
  248. }
  249. .viewcode-back {
  250. font-family: {{ theme_bodyfont }};
  251. }
  252. div.viewcode-block:target {
  253. background-color: #f4debf;
  254. border-top: 1px solid #ac9;
  255. border-bottom: 1px solid #ac9;
  256. }