rdoc.css 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. * "Darkfish" Rdoc CSS
  3. * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
  4. *
  5. * Author: Michael Granger <ged@FaerieMUD.org>
  6. *
  7. */
  8. /* vim: ft=css et sw=2 ts=2 sts=2 */
  9. /* Base Green is: #6C8C22 */
  10. * { padding: 0; margin: 0; }
  11. body {
  12. background: #fafafa;
  13. font-family: Lato, sans-serif;
  14. font-weight: 300;
  15. }
  16. h1 span,
  17. h2 span,
  18. h3 span,
  19. h4 span,
  20. h5 span,
  21. h6 span {
  22. display: none;
  23. padding-left: 1em;
  24. font-size: 10px;
  25. vertical-align: super;
  26. }
  27. h1:hover span,
  28. h2:hover span,
  29. h3:hover span,
  30. h4:hover span,
  31. h5:hover span,
  32. h6:hover span {
  33. display: inline;
  34. }
  35. :link,
  36. :visited {
  37. color: #6C8C22;
  38. text-decoration: none;
  39. }
  40. :link:hover,
  41. :visited:hover {
  42. border-bottom: 1px dotted #6C8C22;
  43. }
  44. code,
  45. pre {
  46. font-family: "Source Code Pro", Monaco, monospace;
  47. }
  48. /* @group Generic Classes */
  49. .initially-hidden {
  50. display: none;
  51. }
  52. #search-field {
  53. width: 98%;
  54. background: white;
  55. border: none;
  56. height: 1.5em;
  57. -webkit-border-radius: 4px;
  58. -moz-border-radius: 4px;
  59. border-radius: 4px;
  60. text-align: left;
  61. }
  62. #search-field:focus {
  63. background: #f1edba;
  64. }
  65. #search-field:-moz-placeholder,
  66. #search-field::-webkit-input-placeholder {
  67. font-weight: bold;
  68. color: #666;
  69. }
  70. .missing-docs {
  71. font-size: 120%;
  72. background: white url(images/wrench_orange.png) no-repeat 4px center;
  73. color: #ccc;
  74. line-height: 2em;
  75. border: 1px solid #d00;
  76. opacity: 1;
  77. padding-left: 20px;
  78. text-indent: 24px;
  79. letter-spacing: 3px;
  80. font-weight: bold;
  81. -webkit-border-radius: 5px;
  82. -moz-border-radius: 5px;
  83. }
  84. .target-section {
  85. border: 2px solid #dcce90;
  86. border-left-width: 8px;
  87. padding: 0 1em;
  88. background: #fff3c2;
  89. }
  90. /* @end */
  91. /* @group Index Page, Standalone file pages */
  92. .table-of-contents ul {
  93. margin: 1em;
  94. list-style: none;
  95. }
  96. .table-of-contents ul ul {
  97. margin-top: 0.25em;
  98. }
  99. .table-of-contents ul :link,
  100. .table-of-contents ul :visited {
  101. font-size: 16px;
  102. }
  103. .table-of-contents li {
  104. margin-bottom: 0.25em;
  105. }
  106. .table-of-contents li .toc-toggle {
  107. width: 16px;
  108. height: 16px;
  109. background: url(images/add.png) no-repeat;
  110. }
  111. .table-of-contents li .toc-toggle.open {
  112. background: url(images/delete.png) no-repeat;
  113. }
  114. /* @end */
  115. /* @group Top-Level Structure */
  116. nav {
  117. float: left;
  118. width: 260px;
  119. font-family: Helvetica, sans-serif;
  120. font-size: 14px;
  121. }
  122. main {
  123. display: block;
  124. margin: 0 2em 5em 260px;
  125. padding-left: 20px;
  126. min-width: 340px;
  127. font-size: 16px;
  128. }
  129. main h1,
  130. main h2,
  131. main h3,
  132. main h4,
  133. main h5,
  134. main h6 {
  135. font-family: Helvetica, sans-serif;
  136. }
  137. .table-of-contents main {
  138. margin-left: 2em;
  139. }
  140. #validator-badges {
  141. clear: both;
  142. margin: 1em 1em 2em;
  143. font-size: smaller;
  144. }
  145. /* @end */
  146. /* @group navigation */
  147. nav {
  148. margin-bottom: 1em;
  149. }
  150. nav .nav-section {
  151. margin-top: 2em;
  152. border-top: 2px solid #aaa;
  153. font-size: 90%;
  154. overflow: hidden;
  155. }
  156. nav h2 {
  157. margin: 0;
  158. padding: 2px 8px 2px 8px;
  159. background-color: #e8e8e8;
  160. color: #555;
  161. font-size: 125%;
  162. text-align: center;
  163. }
  164. nav h3,
  165. #table-of-contents-navigation {
  166. margin: 0;
  167. padding: 2px 8px 2px 8px;
  168. text-align: right;
  169. background-color: #e8e8e8;
  170. color: #555;
  171. }
  172. nav ul,
  173. nav dl,
  174. nav p {
  175. padding: 4px 8px 0;
  176. list-style: none;
  177. }
  178. #project-navigation .nav-section {
  179. margin: 0;
  180. border-top: 0;
  181. }
  182. #home-section h2 {
  183. text-align: center;
  184. }
  185. #table-of-contents-navigation {
  186. font-size: 1.2em;
  187. font-weight: bold;
  188. text-align: center;
  189. }
  190. #search-section {
  191. margin-top: 0;
  192. border-top: 0;
  193. }
  194. #search-field-wrapper {
  195. border-top: 1px solid #aaa;
  196. border-bottom: 1px solid #aaa;
  197. padding: 3px 8px;
  198. background-color: #e8e8e8;
  199. color: #555;
  200. }
  201. ul.link-list li {
  202. white-space: nowrap;
  203. line-height: 1.4em;
  204. }
  205. ul.link-list .type {
  206. font-size: 8px;
  207. text-transform: uppercase;
  208. color: white;
  209. background: #969696;
  210. padding: 2px 4px;
  211. -webkit-border-radius: 5px;
  212. }
  213. .calls-super {
  214. background: url(images/arrow_up.png) no-repeat right center;
  215. }
  216. /* @end */
  217. /* @group Documentation Section */
  218. main {
  219. color: #333;
  220. }
  221. main > h1:first-child,
  222. main > h2:first-child,
  223. main > h3:first-child,
  224. main > h4:first-child,
  225. main > h5:first-child,
  226. main > h6:first-child {
  227. margin-top: 0px;
  228. }
  229. main sup {
  230. vertical-align: super;
  231. font-size: 0.8em;
  232. }
  233. /* The heading with the class name */
  234. main h1[class] {
  235. margin-top: 0;
  236. margin-bottom: 1em;
  237. font-size: 2em;
  238. color: #6C8C22;
  239. }
  240. main h1 {
  241. margin: 2em 0 0.5em;
  242. font-size: 1.7em;
  243. }
  244. main h2 {
  245. margin: 2em 0 0.5em;
  246. font-size: 1.5em;
  247. }
  248. main h3 {
  249. margin: 2em 0 0.5em;
  250. font-size: 1.2em;
  251. }
  252. main h4 {
  253. margin: 2em 0 0.5em;
  254. font-size: 1.1em;
  255. }
  256. main h5 {
  257. margin: 2em 0 0.5em;
  258. font-size: 1em;
  259. }
  260. main h6 {
  261. margin: 2em 0 0.5em;
  262. font-size: 1em;
  263. }
  264. main p {
  265. margin: 0 0 0.5em;
  266. line-height: 1.4em;
  267. }
  268. main pre {
  269. margin: 1.2em 0.5em;
  270. padding: 1em;
  271. font-size: 0.8em;
  272. }
  273. main hr {
  274. margin: 1.5em 1em;
  275. border: 2px solid #ddd;
  276. }
  277. main blockquote {
  278. margin: 0 2em 1.2em 1.2em;
  279. padding-left: 0.5em;
  280. border-left: 2px solid #ddd;
  281. }
  282. main ol,
  283. main ul {
  284. margin: 1em 2em;
  285. }
  286. main li > p {
  287. margin-bottom: 0.5em;
  288. }
  289. main dl {
  290. margin: 1em 0.5em;
  291. }
  292. main dt {
  293. margin-bottom: 0.5em;
  294. font-weight: bold;
  295. }
  296. main dd {
  297. margin: 0 1em 1em 0.5em;
  298. }
  299. main header h2 {
  300. margin-top: 2em;
  301. border-width: 0;
  302. border-top: 4px solid #bbb;
  303. font-size: 130%;
  304. }
  305. main header h3 {
  306. margin: 2em 0 1.5em;
  307. border-width: 0;
  308. border-top: 3px solid #bbb;
  309. font-size: 120%;
  310. }
  311. .documentation-section-title {
  312. position: relative;
  313. }
  314. .documentation-section-title .section-click-top {
  315. position: absolute;
  316. top: 6px;
  317. left: 12px;
  318. font-size: 10px;
  319. color: #9b9877;
  320. visibility: hidden;
  321. padding-left: 0.5px;
  322. }
  323. .documentation-section-title:hover .section-click-top {
  324. visibility: visible;
  325. }
  326. .constants-list > dl {
  327. margin: 1em 0 2em;
  328. border: 0;
  329. }
  330. .constants-list > dl dt {
  331. margin-bottom: 0.75em;
  332. padding-left: 0;
  333. font-family: "Source Code Pro", Monaco, monospace;
  334. font-size: 110%;
  335. }
  336. .constants-list > dl dt a {
  337. color: inherit;
  338. }
  339. .constants-list > dl dd {
  340. margin: 0 0 2em 0;
  341. padding: 0;
  342. color: #666;
  343. }
  344. .documentation-section h2 {
  345. position: relative;
  346. }
  347. .documentation-section h2 a {
  348. position: absolute;
  349. top: 8px;
  350. right: 10px;
  351. font-size: 12px;
  352. color: #9b9877;
  353. visibility: hidden;
  354. }
  355. .documentation-section h2:hover a {
  356. visibility: visible;
  357. }
  358. /* @group Method Details */
  359. main .method-source-code {
  360. display: none;
  361. }
  362. main .method-description .method-calls-super {
  363. color: #333;
  364. font-weight: bold;
  365. }
  366. main .method-detail {
  367. margin-bottom: 2.5em;
  368. cursor: pointer;
  369. }
  370. main .method-detail:target {
  371. margin-left: -10px;
  372. border-left: 10px solid #f1edba;
  373. }
  374. main .method-heading {
  375. position: relative;
  376. font-family: "Source Code Pro", Monaco, monospace;
  377. font-size: 110%;
  378. font-weight: bold;
  379. color: #333;
  380. }
  381. main .method-heading :link,
  382. main .method-heading :visited {
  383. color: inherit;
  384. }
  385. main .method-click-advice {
  386. position: absolute;
  387. top: 2px;
  388. right: 5px;
  389. font-size: 12px;
  390. color: #9b9877;
  391. visibility: hidden;
  392. padding-right: 20px;
  393. line-height: 20px;
  394. background: url(images/zoom.png) no-repeat right top;
  395. }
  396. main .method-heading:hover .method-click-advice {
  397. visibility: visible;
  398. }
  399. main .method-alias .method-heading {
  400. color: #666;
  401. }
  402. main .method-description,
  403. main .aliases {
  404. margin-top: 0.75em;
  405. color: #333;
  406. }
  407. main .aliases {
  408. padding-top: 4px;
  409. font-style: italic;
  410. cursor: default;
  411. }
  412. main .method-description ul {
  413. margin-left: 1.5em;
  414. }
  415. main #attribute-method-details .method-detail:hover {
  416. background-color: transparent;
  417. cursor: default;
  418. }
  419. main .attribute-access-type {
  420. text-transform: uppercase;
  421. padding: 0 1em;
  422. }
  423. /* @end */
  424. /* @end */
  425. /* @group Source Code */
  426. pre {
  427. margin: 0.5em 0;
  428. border: 1px dashed #999;
  429. padding: 0.5em;
  430. background: #262626;
  431. color: white;
  432. overflow: auto;
  433. }
  434. .ruby-constant { color: #7fffd4; background: transparent; }
  435. .ruby-keyword { color: #00ffff; background: transparent; }
  436. .ruby-ivar { color: #eedd82; background: transparent; }
  437. .ruby-operator { color: #00ffee; background: transparent; }
  438. .ruby-identifier { color: #ffdead; background: transparent; }
  439. .ruby-node { color: #ffa07a; background: transparent; }
  440. .ruby-comment { color: #dc0000; background: transparent; }
  441. .ruby-regexp { color: #ffa07a; background: transparent; }
  442. .ruby-value { color: #7fffd4; background: transparent; }
  443. /* @end */
  444. /* @group search results */
  445. #search-results {
  446. font-family: Lato, sans-serif;
  447. font-weight: 300;
  448. }
  449. #search-results .search-match {
  450. font-family: Helvetica, sans-serif;
  451. font-weight: normal;
  452. }
  453. #search-results .search-selected {
  454. background: #e8e8e8;
  455. border-bottom: 1px solid transparent;
  456. }
  457. #search-results li {
  458. list-style: none;
  459. border-bottom: 1px solid #aaa;
  460. margin-bottom: 0.5em;
  461. }
  462. #search-results li:last-child {
  463. border-bottom: none;
  464. margin-bottom: 0;
  465. }
  466. #search-results li p {
  467. padding: 0;
  468. margin: 0.5em;
  469. }
  470. #search-results .search-namespace {
  471. font-weight: bold;
  472. }
  473. #search-results li em {
  474. background: yellow;
  475. font-style: normal;
  476. }
  477. #search-results pre {
  478. margin: 0.5em;
  479. font-family: "Source Code Pro", Monaco, monospace;
  480. }
  481. /* @end */