fpdocs.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. $Id: fpdoc2.css,v 1.1 2003/03/17 23:03:20 michael Exp $
  3. Default style sheet for FPDoc reference documentation
  4. by Sebastian Guenther, [email protected]
  5. Feel free to use this file as a template for your own style sheets.
  6. */
  7. .section {
  8. padding: 1rem 1rem; !important
  9. }
  10. div.code, tt, span.kw, pre, div.code a {
  11. font-family: Courier, monospace
  12. }
  13. .column.list {
  14. padding-top: 0px;
  15. padding-bottom: 0px;
  16. }
  17. /* source fragments */
  18. span.code {
  19. white-space: nowrap
  20. }
  21. /* symbols in source fragments */
  22. span.sym {
  23. color: darkred
  24. }
  25. /* keywords in source fragments */
  26. span.kw {
  27. font-weight: bold
  28. }
  29. /* comments in source fragments */
  30. span.cmt {
  31. color: darkcyan;
  32. font-style: italic
  33. }
  34. /* directives in source fragments */
  35. span.dir {
  36. color: darkyellow;
  37. font-style: italic
  38. }
  39. /* numbers in source fragments */
  40. span.num {
  41. color: darkmagenta
  42. }
  43. /* characters (#...) in source fragments */
  44. span.chr {
  45. color: darkcyan
  46. }
  47. /* strings in source fragments */
  48. span.str {
  49. color: blue
  50. }
  51. /* assembler passages in source fragments */
  52. span.asm {
  53. color: green
  54. }
  55. p.cmt {
  56. color: gray
  57. }
  58. span.warning {
  59. color: red;
  60. font-weight: bold
  61. }
  62. /* !!!: How should we define this...? */
  63. span.file {
  64. color: darkgreen
  65. }
  66. span.footer {
  67. font-style: italic;
  68. color: darkblue
  69. }
  70. span.toggletreeclose {
  71. background: url(minus.png) center left no-repeat;
  72. padding-left: 20px;
  73. }
  74. span.toggletreeopen {
  75. background: url(plus.png) center left no-repeat;
  76. padding-left: 20px;
  77. }
  78. ul.classtreelist li { padding-left: 0px; }
  79. ul.classtreelist { list-style-type:none; }
  80. li.classtree ul { display: block; }
  81. li.classtreeclosed ul { display: none; }
  82. /* --- Base Structure Styling --- */
  83. .treeview, .treeview ul {
  84. list-style: none; /* Remove default bullets */
  85. padding-left: 15px;
  86. margin: 0;
  87. }
  88. .treeview li {
  89. line-height: 1.5;
  90. cursor: pointer;
  91. position: relative; /* Needed for positioning the pseudo-element */
  92. padding-left: 5px; /* Add some space for the icon */
  93. }
  94. /* --- Nested List Visibility --- */
  95. /* Hide all nested ULs by default */
  96. .treeview ul {
  97. display: none;
  98. }
  99. /* Show the nested UL when the parent LI has the 'expanded' class */
  100. .treeview li.expanded > ul {
  101. display: block;
  102. }
  103. /* --- Icon Logic using ::before Pseudo-Element --- */
  104. /* 1. Default/Collapsed State for Parent Nodes */
  105. .treeview li.parent::before {
  106. /* Right-pointing triangle: ▸ or \25B8 */
  107. content: '\25B8';
  108. margin-right: 5px;
  109. color: #007bff;
  110. display: inline-block;
  111. font-weight: bold;
  112. font-size: 18px; /* Adjust size to look neat */
  113. }
  114. /* 2. Expanded State for Parent Nodes */
  115. .treeview li.expanded.parent::before {
  116. /* Down-pointing triangle: ▾ or \25BE */
  117. content: '\25BE';
  118. }
  119. /* 3. Styling for Leaf Nodes (No Expansion) */
  120. /* The element without the 'parent' class is a leaf node */
  121. .treeview li:not(.parent)::before {
  122. /* Black circle/dot for a simple leaf icon: ● or \25CF */
  123. content: '\25CF';
  124. margin-right: 5px;
  125. color: gray;
  126. font-size: 0.8em;
  127. cursor: default;
  128. }