PageRenderTime 51ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/naturaldocs/Styles/Default.css

https://gitlab.com/xilinus/prototypeui
CSS | 540 lines | 371 code | 127 blank | 42 comment | 0 complexity | e88be257adaa93610988cc3e715e0ee0 MD5 | raw file
  1. /*
  2. IMPORTANT: If you're editing this file in the output directory of one of
  3. your projects, your changes will be overwritten the next time you run
  4. Natural Docs. Instead, copy this file to your project directory, make your
  5. changes, and you can use it with -s. Even better would be to make a CSS
  6. file in your project directory with only your changes, which you can then
  7. use with -s [original style] [your changes].
  8. On the other hand, if you're editing this file in the Natural Docs styles
  9. directory, the changes will automatically be applied to all your projects
  10. that use this style the next time Natural Docs is run on them.
  11. This file is part of Natural Docs, which is Copyright (C) 2003-2005 Greg Valure
  12. Natural Docs is licensed under the GPL
  13. */
  14. body {
  15. font-family: Verdana, Arial, sans-serif;
  16. color: #000000;
  17. margin: 0px; padding: 0px }
  18. body.UnframedPage {
  19. background-color: #E8E8E8 }
  20. a:link,
  21. a:visited { color: #900000; text-decoration: none }
  22. a:hover { color: #900000; text-decoration: underline }
  23. a:active { color: #FF0000; text-decoration: underline }
  24. td {
  25. vertical-align: top }
  26. /*
  27. Comment out this line to use web-style paragraphs (blank line between
  28. paragraphs, no indent) instead of print-style paragraphs (no blank line,
  29. indented.)
  30. */
  31. p {
  32. text-indent: 5ex; margin: 0 }
  33. /* Can't use something like display: none or it won't break. */
  34. .HB {
  35. font-size: 1px;
  36. visibility: hidden;
  37. }
  38. /* Blockquotes are used as containers for things that may need to scroll. */
  39. blockquote {
  40. padding: 0;
  41. margin: 0;
  42. overflow: auto;
  43. }
  44. /* This will be fixed in JavaScript. We just need a default if it's turned off. */
  45. .IE blockquote {
  46. width: 400px; }
  47. .Gecko blockquote {
  48. padding-bottom: .5em;
  49. }
  50. /* Turn off scrolling when printing. */
  51. @media print {
  52. blockquote {
  53. overflow: visible;
  54. }
  55. .IE blockquote {
  56. width: auto;
  57. }
  58. }
  59. body.FramedMenuPage,
  60. .MenuSection {
  61. font-size: 9pt;
  62. background-color: #E8E8E8;
  63. padding: 10px 0 0 0 }
  64. .MenuSection {
  65. width: 27ex }
  66. .MTitle {
  67. font-size: 16pt; font-weight: bold; font-variant: small-caps;
  68. text-align: center;
  69. padding: 5px 10px 15px 10px;
  70. border-bottom: 1px dotted #000000;
  71. margin-bottom: 15px }
  72. .MSubTitle {
  73. font-size: 9pt; font-weight: normal; font-variant: normal;
  74. margin-top: 1ex; margin-bottom: 5px }
  75. .MEntry a:link,
  76. .MEntry a:hover,
  77. .MEntry a:visited { color: #606060; margin-right: 0 }
  78. .MEntry a:active { color: #A00000; margin-right: 0 }
  79. .MGroup {
  80. font-variant: small-caps; font-weight: bold;
  81. margin: 1em 0 1em 10px }
  82. /* Konqueror just can't do margins. */
  83. .KHTML .MGroup {
  84. margin-bottom: 0; padding-bottom: 1em }
  85. .MGroupContent {
  86. font-variant: normal; font-weight: normal }
  87. .MGroup a:link,
  88. .MGroup a:hover,
  89. .MGroup a:visited { color: #545454; margin-right: 10px }
  90. .MGroup a:active { color: #A00000; margin-right: 10px }
  91. .MFile,
  92. .MText,
  93. .MLink,
  94. .MIndex {
  95. padding: 1px 17px 2px 10px;
  96. margin: .25em 0 .25em 0 }
  97. .MText {
  98. font-size: 8pt; font-style: italic }
  99. .MLink {
  100. font-style: italic }
  101. #MSelected {
  102. color: #000000; background-color: #FFFFFF;
  103. /* Replace padding with border. */
  104. padding: 0 10px 0 10px;
  105. border-width: 1px 2px 2px 0; border-style: solid; border-color: #000000;
  106. margin-right: 5px }
  107. /* Close off the left side when its in a group. */
  108. .MGroup #MSelected {
  109. padding-left: 9px; border-left-width: 1px }
  110. /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */
  111. .Gecko #MSelected {
  112. -moz-border-radius-topright: 10px;
  113. -moz-border-radius-bottomright: 10px }
  114. .Gecko .MGroup #MSelected {
  115. -moz-border-radius-topleft: 10px;
  116. -moz-border-radius-bottomleft: 10px }
  117. body.FramedContentPage,
  118. .ContentSection {
  119. background-color: #FFFFFF;
  120. padding-bottom: 15px }
  121. .ContentSection {
  122. border-width: 0 0 1px 1px; border-style: solid; border-color: #000000 }
  123. .CTopic {
  124. font-size: 10pt;
  125. /* This should be a margin but Konq 3.1.1 sucks. */
  126. padding-bottom: 3em }
  127. .CTitle {
  128. font-size: 12pt; font-weight: bold;
  129. border-width: 0 0 1px 0; border-style: solid; border-color: #A0A0A0;
  130. margin: 0 15px .5em 15px }
  131. .CGroup .CTitle {
  132. font-size: 16pt; font-variant: small-caps;
  133. padding-left: 15px; padding-right: 15px;
  134. border-width: 0 0 2px 0; border-color: #000000;
  135. margin-left: 0; margin-right: 0 }
  136. .CClass .CTitle,
  137. .CInterface .CTitle,
  138. .CDatabase .CTitle,
  139. .CDatabaseTable .CTitle,
  140. .CSection .CTitle {
  141. font-size: 18pt;
  142. color: #FFFFFF; background-color: #A0A0A0;
  143. padding: 10px 15px 10px 15px;
  144. border-width: 2px 0; border-color: #000000;
  145. margin-left: 0; margin-right: 0 }
  146. #MainTopic .CTitle {
  147. font-size: 20pt;
  148. color: #FFFFFF; background-color: #7070C0;
  149. padding: 10px 15px 10px 15px;
  150. border-width: 0 0 3px 0; border-color: #000000;
  151. margin-left: 0; margin-right: 0 }
  152. .CBody {
  153. margin-left: 15px; margin-right: 15px }
  154. .CToolTip {
  155. position: absolute; visibility: hidden;
  156. left: 0; top: 0; max-width: 50%;
  157. background-color: #FFFFE0;
  158. padding: 5px;
  159. border-width: 1px 2px 2px 1px; border-style: solid; border-color: #000000;
  160. font-size: 8pt }
  161. /* Opera 6 gives it a huge height otherwise. */
  162. .Opera6 .CTooltip, .Opera5 .CTooltip {
  163. max-width: 100% }
  164. /* Scrollbars would be useless. */
  165. .CToolTip blockquote {
  166. overflow: hidden;
  167. }
  168. .CHeading {
  169. font-weight: bold; font-size: 10pt;
  170. margin-top: 1.5em; margin-bottom: .5em }
  171. .CCode {
  172. font: 10pt "Courier New", Courier, monospace;
  173. }
  174. .CBulletList {
  175. /* I don't know why CBody's margin doesn't apply, but it's consistent across browsers so whatever.
  176. Reapply it here as padding. */
  177. padding-left: 15px; padding-right: 15px;
  178. margin: .5em 5ex .5em 5ex;
  179. }
  180. .CDescriptionList {
  181. margin: .5em 5ex 0 5ex }
  182. /* IE 4 and Konqueror always makes it too long. */
  183. .IE4 .CDescriptionList,
  184. .KHTML .CDescriptionList {
  185. width: 85% }
  186. .CDLEntry {
  187. font: 10pt "Courier New", Courier, monospace; color: #808080;
  188. padding-bottom: .25em;
  189. white-space: nowrap }
  190. .CDLDescription {
  191. font-size: 10pt; /* For browsers that don't inherit correctly, like Opera 5. */
  192. padding-bottom: .5em; padding-left: 5ex }
  193. .Prototype {
  194. font: 10pt "Courier New", Courier, monospace;
  195. padding: 5px 3ex;
  196. border-width: 1px; border-style: solid;
  197. margin: 0 5ex 1.5em 5ex;
  198. }
  199. .Prototype td {
  200. font-size: 10pt;
  201. }
  202. .PDefaultValue,
  203. .PDefaultValuePrefix,
  204. .PTypePrefix {
  205. color: #8F8F8F;
  206. }
  207. .PTypePrefix {
  208. text-align: right;
  209. }
  210. .PAfterParameters {
  211. vertical-align: bottom;
  212. }
  213. .IE .Prototype table {
  214. padding: 0;
  215. }
  216. .CFunction .Prototype {
  217. background-color: #F4F4F4; border-color: #D0D0D0 }
  218. .CProperty .Prototype {
  219. background-color: #F4F4FF; border-color: #C0C0E8 }
  220. .CVariable .Prototype {
  221. background-color: #FFFFF0; border-color: #E0E0A0 }
  222. .CDatabaseIndex .Prototype,
  223. .CConstant .Prototype {
  224. background-color: #D0D0D0; border-color: #000000 }
  225. .CType .Prototype {
  226. background-color: #FFF8F8; border-color: #E8C8C8 }
  227. .CDatabaseTrigger .Prototype,
  228. .CEvent .Prototype,
  229. .CDelegate .Prototype {
  230. background-color: #F0FCF0; border-color: #B8E4B8 }
  231. .CToolTip .Prototype {
  232. margin: 0 0 .5em 0;
  233. white-space: nowrap;
  234. }
  235. .Summary {
  236. margin: 1.5em 5ex 0 5ex }
  237. .STitle {
  238. font-size: 12pt; font-weight: bold;
  239. margin-bottom: .5em }
  240. .SBorder {
  241. background-color: #FFFFF0;
  242. padding: 15px;
  243. border: 1px solid #C0C060 }
  244. /* Let's observe the evolution of IE's brokeness, shall we?
  245. IE 4 always makes them too long, there's no way around it. */
  246. .IE4 .SBorder {
  247. width: 85% }
  248. /* IE 5 will make them too long unless you set the width to 100%. Isn't this implied for a div? */
  249. .IE5 .SBorder {
  250. width: 100% }
  251. /* IE 6 behaves like 5 when it's in a frame, but without frames it will be correct without a width or slightly too long
  252. (but not enough to scroll) with a width. This arbitrary weirdness simply astounds me. */
  253. body.FramedContentPage .IE6 .SBorder {
  254. width: 100% }
  255. /* A treat for Mozilla users. Blatantly non-standard. Will be replaced with CSS 3 attributes when finalized/supported. */
  256. .Gecko .SBorder {
  257. -moz-border-radius: 20px }
  258. .STable {
  259. font-size: 9pt; width: 100% }
  260. .SEntrySize {
  261. width: 30% }
  262. .SDescriptionSize {
  263. width: 70% }
  264. .SMarked {
  265. background-color: #F8F8D8 }
  266. .SEntry .SIndent1 {
  267. margin-left: 1.5ex }
  268. .SEntry .SIndent2 {
  269. margin-left: 3ex }
  270. .SEntry .SIndent3 {
  271. margin-left: 4.5ex }
  272. .SEntry .SIndent4 {
  273. margin-left: 6ex }
  274. .SEntry .SIndent5 {
  275. margin-left: 7.5ex }
  276. .SDescription {
  277. padding-left: 3ex }
  278. .SDescription a { color: #800000}
  279. .SDescription a:active { color: #A00000 }
  280. .SGroup {
  281. margin-top: .5em; margin-bottom: .25em }
  282. .SGroup .SEntry {
  283. font-weight: bold; font-variant: small-caps }
  284. .SGroup .SEntry a { color: #800000 }
  285. .SGroup .SEntry a:active { color: #F00000 }
  286. .SMain .SEntry,
  287. .SClass .SEntry,
  288. .SDatabase .SEntry,
  289. .SDatabaseTable .SEntry,
  290. .SSection .SEntry {
  291. font-weight: bold; font-size: 10pt;
  292. margin-bottom: .25em }
  293. .SClass,
  294. .SDatabase,
  295. .SDatabaseTable,
  296. .SSection {
  297. margin-top: 1em }
  298. .SMain .SEntry a,
  299. .SClass .SEntry a,
  300. .SDatabase .SEntry a,
  301. .SDatabaseTable .SEntry a,
  302. .SSection .SEntry a { color: #000000 }
  303. .SMain .SEntry a:active,
  304. .SClass .SEntry a:active,
  305. .SDatabase .SEntry a:active,
  306. .SDatabaseTable .SEntry a:active,
  307. .SSection .SEntry a:active { color: #A00000 }
  308. .ClassHierarchy {
  309. margin: 0 15px 1em 15px }
  310. .CHEntry {
  311. border-width: 1px 2px 2px 1px; border-style: solid; border-color: #A0A0A0;
  312. margin-bottom: 3px;
  313. padding: 2px 2ex;
  314. font-size: 10pt;
  315. background-color: #F4F4F4; color: #606060;
  316. }
  317. .Gecko .CHEntry {
  318. -moz-border-radius: 4px;
  319. }
  320. .CHCurrent .CHEntry {
  321. font-weight: bold;
  322. border-color: #000000;
  323. color: #000000;
  324. }
  325. .CHChildNote .CHEntry {
  326. font-style: italic;
  327. font-size: 8pt;
  328. }
  329. .CHIndent {
  330. margin-left: 3ex;
  331. }
  332. .CHEntry a:link,
  333. .CHEntry a:visited,
  334. .CHEntry a:hover {
  335. color: #606060;
  336. }
  337. .CHEntry a:active {
  338. color: #800000;
  339. }
  340. body.FramedIndexPage,
  341. .IndexSection {
  342. background-color: #FFFFFF;
  343. font-size: 10pt;
  344. padding: 15px }
  345. .IndexSection {
  346. border-width: 0 0 1px 1px; border-style: solid; border-color: #000000 }
  347. .IPageTitle {
  348. font-size: 20pt; font-weight: bold;
  349. color: #FFFFFF; background-color: #7070C0;
  350. padding: 10px 15px 10px 15px;
  351. border-width: 0 0 3px 0; border-color: #000000; border-style: solid;
  352. margin: -15px -15px 0 -15px }
  353. .INavigationBar {
  354. text-align: center;
  355. background-color: #FFFFF0;
  356. padding: 5px;
  357. border-bottom: solid 1px black;
  358. margin: 0 -15px 15px -15px }
  359. .INavigationBar a {
  360. font-weight: bold }
  361. .IHeading {
  362. font-size: 16pt; font-weight: bold;
  363. padding: 2.5em 0 .5em 0;
  364. text-align: center;
  365. width: 3.5ex;
  366. }
  367. #IFirstHeading {
  368. padding-top: 0;
  369. }
  370. .IEntry {
  371. padding-left: 1ex; }
  372. .ISubIndex {
  373. padding-left: 3ex; padding-bottom: .5em }
  374. /* While it may cause some entries to look like links when they aren't, I found it's much easier to read the
  375. index if everything's the same color. */
  376. .ISymbol {
  377. font-weight: bold; color: #900000 }
  378. .ISymbolPrefix {
  379. text-align: right;
  380. color: #C47C7C;
  381. background-color: #F8F8F8;
  382. border-right: 3px solid #E0E0E0;
  383. border-left: 1px solid #E0E0E0;
  384. padding: 0 1px 0 2px;
  385. }
  386. #IFirstSymbolPrefix {
  387. border-top: 1px solid #E0E0E0;
  388. }
  389. #ILastSymbolPrefix {
  390. border-bottom: 1px solid #E0E0E0;
  391. }
  392. #IOnlySymbolPrefix {
  393. border-top: 1px solid #E0E0E0;
  394. border-bottom: 1px solid #E0E0E0;
  395. }
  396. a.IParent,
  397. a.IFile {
  398. display: block;
  399. }
  400. .Footer {
  401. font-size: 8pt; color: #909090 }
  402. body.UnframedPage .Footer {
  403. text-align: right;
  404. margin: 2px }
  405. body.FramedMenuPage .Footer {
  406. text-align: center;
  407. margin: 5em 10px 0 10px}
  408. .Footer a:link,
  409. .Footer a:hover,
  410. .Footer a:visited { color: #909090 }
  411. .Footer a:active { color: #A00000 }