You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

506 lines
8.7 KiB

  1. @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700);
  2. /*--------------------- Layout ----------------------------*/
  3. html { height: 100%; }
  4. body {
  5. font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  6. font-size: 14px;
  7. line-height: 18px;
  8. color: #30404f;
  9. margin: 0; padding: 0;
  10. height:100%;
  11. }
  12. #container { min-height: 100%; }
  13. a {
  14. color: #000;
  15. }
  16. b, strong {
  17. font-weight: normal;
  18. }
  19. p, ul, ol {
  20. margin: 15px 0 0px;
  21. }
  22. h1, h2, h3, h4, h5, h6 {
  23. color: #112233;
  24. font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  25. line-height: 1em;
  26. text-transform: none;
  27. margin: 30px 0 15px 0;
  28. }
  29. h1 {
  30. margin: 0px 0px 20px;
  31. font-size: 38px;
  32. color: #00B4AC;
  33. }
  34. h2 {
  35. margin: 0px 0px 20px;
  36. font-size: 28px;
  37. color: #6E4889;
  38. }
  39. h3 {
  40. margin: 0px 0px 20px;
  41. font-size: 22px;
  42. }
  43. h4 {
  44. margin: 0px 0px 10px;
  45. font-size: 18px;
  46. color: #555555;
  47. }
  48. h5 {
  49. margin: 0px 0px 10px;
  50. font-size: 16px;
  51. color: #555555;
  52. }
  53. a {
  54. font-weight: bold;
  55. color: #009FDA;
  56. text-decoration: none;
  57. }
  58. a:hover {
  59. color: #00BAFF;
  60. }
  61. hr {
  62. border: 0;
  63. background: 1px solid #ddd;
  64. height: 1px;
  65. margin: 20px 0;
  66. }
  67. pre, tt, code {
  68. font-size: 12px; line-height: 16px;
  69. font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace;
  70. margin: 0; padding: 0;
  71. }
  72. .annotation pre {
  73. display: block;
  74. margin: 0;
  75. padding: 7px 10px;
  76. background: #fcfcfc;
  77. -moz-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  78. -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  79. box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  80. overflow-x: auto;
  81. }
  82. .annotation pre code {
  83. border: 0;
  84. padding: 0;
  85. background: transparent;
  86. }
  87. blockquote {
  88. border-left: 5px solid #ccc;
  89. margin: 0;
  90. padding: 1px 0 1px 1em;
  91. }
  92. .sections blockquote p {
  93. font-family: Menlo, Consolas, Monaco, monospace;
  94. font-size: 12px; line-height: 16px;
  95. color: #999;
  96. margin: 10px 0 0;
  97. white-space: pre-wrap;
  98. }
  99. ul.sections {
  100. list-style: none;
  101. padding:0 0 5px 0;;
  102. margin:0;
  103. }
  104. /*
  105. Force border-box so that % widths fit the parent
  106. container without overlap because of margin/padding.
  107. More Info : http://www.quirksmode.org/css/box.html
  108. */
  109. ul.sections > li > div {
  110. -moz-box-sizing: border-box; /* firefox */
  111. -ms-box-sizing: border-box; /* ie */
  112. -webkit-box-sizing: border-box; /* webkit */
  113. -khtml-box-sizing: border-box; /* konqueror */
  114. box-sizing: border-box; /* css3 */
  115. }
  116. /*---------------------- Jump Page -----------------------------*/
  117. #jump_to, #jump_page {
  118. margin: 0;
  119. background: white;
  120. -webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
  121. -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px;
  122. font: 16px Arial;
  123. cursor: pointer;
  124. text-align: right;
  125. list-style: none;
  126. }
  127. #jump_to a {
  128. text-decoration: none;
  129. }
  130. #jump_to a.large {
  131. display: none;
  132. }
  133. #jump_to a.small {
  134. font-size: 22px;
  135. font-weight: bold;
  136. color: #676767;
  137. }
  138. #jump_to, #jump_wrapper {
  139. position: fixed;
  140. right: 0; top: 0;
  141. padding: 10px 15px;
  142. margin:0;
  143. }
  144. #jump_wrapper {
  145. display: none;
  146. padding:0;
  147. }
  148. #jump_to:hover #jump_wrapper {
  149. display: block;
  150. }
  151. #jump_page {
  152. padding: 5px 0 3px;
  153. margin: 0 0 25px 25px;
  154. }
  155. #jump_page .source {
  156. display: block;
  157. padding: 15px;
  158. text-decoration: none;
  159. border-top: 1px solid #eee;
  160. }
  161. #jump_page .source:hover {
  162. background: #f5f5ff;
  163. }
  164. #jump_page .source:first-child {
  165. }
  166. /*---------------------- Low resolutions (> 320px) ---------------------*/
  167. @media only screen and (min-width: 320px) {
  168. .pilwrap { display: none; }
  169. ul.sections > li > div {
  170. display: block;
  171. padding:5px 10px 0 10px;
  172. }
  173. ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
  174. padding-left: 30px;
  175. }
  176. ul.sections > li > div.content {
  177. background: #f5f5ff;
  178. overflow-x:auto;
  179. -webkit-box-shadow: inset 0 0 5px #e5e5ee;
  180. box-shadow: inset 0 0 5px #e5e5ee;
  181. border: 1px solid #dedede;
  182. margin:5px 10px 5px 10px;
  183. padding-bottom: 5px;
  184. }
  185. ul.sections > li > div.annotation pre {
  186. margin: 7px 0 7px;
  187. padding-left: 15px;
  188. }
  189. ul.sections > li > div.annotation p tt, .annotation code {
  190. display: inline-block;
  191. padding: 3px 10px;
  192. font-size: 14px;
  193. margin-top: 10px;
  194. background: #f8f8ff;
  195. border: 1px solid #dedede;
  196. }
  197. }
  198. /*---------------------- (> 481px) ---------------------*/
  199. @media only screen and (min-width: 481px) {
  200. #container {
  201. position: relative;
  202. }
  203. body {
  204. background-color: #F5F5FF;
  205. font-size: 15px;
  206. line-height: 21px;
  207. }
  208. pre, tt, code {
  209. line-height: 18px;
  210. }
  211. p, ul, ol {
  212. margin: 0 0 15px;
  213. }
  214. #jump_to {
  215. padding: 5px 10px;
  216. }
  217. #jump_wrapper {
  218. padding: 0;
  219. }
  220. #jump_to, #jump_page {
  221. font: 10px Arial;
  222. text-transform: uppercase;
  223. }
  224. #jump_page .source {
  225. padding: 5px 10px;
  226. }
  227. #jump_to a.large {
  228. display: inline-block;
  229. }
  230. #jump_to a.small {
  231. display: none;
  232. }
  233. #background {
  234. position: absolute;
  235. top: 0; bottom: 0;
  236. width: 350px;
  237. border-right: 1px solid #e5e5ee;
  238. z-index: -1;
  239. background: #FCFCFC url(../images/bg.jpg) repeat;
  240. }
  241. ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
  242. padding-left: 40px;
  243. }
  244. ul.sections > li {
  245. white-space: nowrap;
  246. }
  247. ul.sections > li > div {
  248. display: inline-block;
  249. }
  250. ul.sections > li > div.annotation {
  251. max-width: 350px;
  252. min-width: 350px;
  253. min-height: 5px;
  254. padding: 13px;
  255. overflow-x: hidden;
  256. white-space: normal;
  257. vertical-align: top;
  258. text-align: left;
  259. }
  260. ul.sections > li > div.annotation pre {
  261. margin: 15px 0 15px;
  262. padding-left: 15px;
  263. }
  264. ul.sections > li > div.content {
  265. padding: 13px;
  266. vertical-align: top;
  267. background: #f5f5ff;
  268. border: none;
  269. -webkit-box-shadow: none;
  270. box-shadow: none;
  271. }
  272. .pilwrap {
  273. position: relative;
  274. display: inline;
  275. }
  276. .pilcrow {
  277. font: 12px Arial;
  278. text-decoration: none;
  279. color: #454545;
  280. position: absolute;
  281. top: 3px; left: -20px;
  282. padding: 1px 2px;
  283. opacity: 0;
  284. -webkit-transition: opacity 0.2s linear;
  285. }
  286. .for-h1 .pilcrow {
  287. top: 47px;
  288. }
  289. .for-h2 .pilcrow, .for-h3 .pilcrow, .for-h4 .pilcrow {
  290. top: 35px;
  291. }
  292. ul.sections > li > div.annotation:hover .pilcrow {
  293. opacity: 1;
  294. }
  295. }
  296. /*---------------------- (> 1025px) ---------------------*/
  297. @media only screen and (min-width: 1025px) {
  298. body {
  299. font-size: 16px;
  300. line-height: 24px;
  301. }
  302. #background {
  303. width: 525px;
  304. }
  305. ul.sections {
  306. padding-top: 50px;
  307. }
  308. ul.sections > li > div.annotation {
  309. max-width: 525px;
  310. min-width: 525px;
  311. padding: 10px 25px 1px 50px;
  312. }
  313. ul.sections > li > div.content {
  314. padding: 9px 15px 16px 25px;
  315. }
  316. ul.sections p {
  317. font-size: 16px;
  318. line-height: 1.33;
  319. }
  320. }
  321. /*---------------------- Syntax Highlighting -----------------------------*/
  322. td.linenos { background-color: #f0f0f0; padding-right: 10px; }
  323. span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
  324. /*
  325. github.com style (c) Vasily Polovnyov <vast@whiteants.net>
  326. */
  327. pre code {
  328. display: block; padding: 0.5em;
  329. color: #000;
  330. background: #f8f8ff
  331. }
  332. pre .comment,
  333. pre .template_comment,
  334. pre .diff .header,
  335. pre .javadoc {
  336. color: #408080;
  337. font-style: italic
  338. }
  339. pre .keyword,
  340. pre .assignment,
  341. pre .literal,
  342. pre .css .rule .keyword,
  343. pre .winutils,
  344. pre .javascript .title,
  345. pre .lisp .title,
  346. pre .subst {
  347. color: #954121;
  348. /*font-weight: bold*/
  349. }
  350. pre .number,
  351. pre .hexcolor {
  352. color: #40a070
  353. }
  354. pre .string,
  355. pre .tag .value,
  356. pre .phpdoc,
  357. pre .tex .formula {
  358. color: #219161;
  359. }
  360. pre .title,
  361. pre .id {
  362. color: #19469D;
  363. }
  364. pre .params {
  365. color: #00F;
  366. }
  367. pre .javascript .title,
  368. pre .lisp .title,
  369. pre .subst {
  370. font-weight: normal
  371. }
  372. pre .class .title,
  373. pre .haskell .label,
  374. pre .tex .command {
  375. color: #458;
  376. font-weight: bold
  377. }
  378. pre .tag,
  379. pre .tag .title,
  380. pre .rules .property,
  381. pre .django .tag .keyword {
  382. color: #000080;
  383. font-weight: normal
  384. }
  385. pre .attribute,
  386. pre .variable,
  387. pre .instancevar,
  388. pre .lisp .body {
  389. color: #008080
  390. }
  391. pre .regexp {
  392. color: #B68
  393. }
  394. pre .class {
  395. color: #458;
  396. font-weight: bold
  397. }
  398. pre .symbol,
  399. pre .ruby .symbol .string,
  400. pre .ruby .symbol .keyword,
  401. pre .ruby .symbol .keymethods,
  402. pre .lisp .keyword,
  403. pre .tex .special,
  404. pre .input_number {
  405. color: #990073
  406. }
  407. pre .builtin,
  408. pre .constructor,
  409. pre .built_in,
  410. pre .lisp .title {
  411. color: #0086b3
  412. }
  413. pre .preprocessor,
  414. pre .pi,
  415. pre .doctype,
  416. pre .shebang,
  417. pre .cdata {
  418. color: #999;
  419. font-weight: bold
  420. }
  421. pre .deletion {
  422. background: #fdd
  423. }
  424. pre .addition {
  425. background: #dfd
  426. }
  427. pre .diff .change {
  428. background: #0086b3
  429. }
  430. pre .chunk {
  431. color: #aaa
  432. }
  433. pre .tex .formula {
  434. opacity: 0.5;
  435. }