fpdocs.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. span.identifier {
  79. font-style: italic;
  80. }
  81. /* --------------------------------------------------------------------
  82. * Side menu styling
  83. * -------------------------------------------------------------------- */
  84. .burger-icon {
  85. font-size: 1.5rem;
  86. display: flex;
  87. align-items: center;
  88. justify-content: center;
  89. line-height: 1;
  90. }
  91. /* Ensure the main container accounts for the navbar height */
  92. #main-layout {
  93. display: flex;
  94. min-height: calc(100vh - 52px); /* 52px is the standard Bulma navbar height */
  95. position: relative;
  96. }
  97. /* 2. Side Menu (Off-Canvas/Collapsed State) */
  98. #side-menu {
  99. /* Position the menu absolutely so it doesn't displace content in the flow */
  100. position: absolute;
  101. top: 0;
  102. left: 0;
  103. height: 100%; /* Full height of the main-layout container */
  104. width: 10em;
  105. padding: 10px;
  106. background-color: #f5f5f5; /* Bulma's 'bis' color for contrast */
  107. box-shadow: 2px 0 3px rgba(0, 0, 0, 0.1);
  108. /* Hidden off-screen */
  109. transform: translateX(-10em);
  110. transition: transform 0.3s ease-in-out;
  111. z-index: 20; /* Ensure it is above the main content, but below navbar (navbar uses 30) */
  112. overflow-y: scroll
  113. }
  114. /* 3. Side Menu (Expanded State) */
  115. #side-menu.is-expanded {
  116. /* Slide it into view */
  117. transform: translateX(0);
  118. }
  119. /* 4. Main Content Area (Initial/Collapsed State) */
  120. #main-content {
  121. flex-grow: 1;
  122. width: 100%; /* Ensures it fills the remaining space */
  123. /* Start with no padding on the left */
  124. padding-left: 0 !important;
  125. transition: padding-left 0.3s ease-in-out;
  126. }
  127. /* 5. Main Content Area (Shifted State) */
  128. #main-content.is-shifted {
  129. /* When the menu is open, shift the content to the right to reveal the menu */
  130. padding-left: 200px !important;
  131. }
  132. /* --------------------------------------------------------------------
  133. * Class inheritance tree styling
  134. * -------------------------------------------------------------------- */
  135. .treeview, .treeview ul {
  136. list-style: none; /* Remove default bullets */
  137. padding-left: 15px;
  138. margin: 0;
  139. }
  140. .treeview li {
  141. line-height: 1.5;
  142. cursor: pointer;
  143. position: relative; /* Needed for positioning the pseudo-element */
  144. padding-left: 5px; /* Add some space for the icon */
  145. }
  146. /* --- Nested List Visibility --- */
  147. /* Hide all nested ULs by default */
  148. .treeview ul {
  149. display: none;
  150. }
  151. /* Show the nested UL when the parent LI has the 'expanded' class */
  152. .treeview li.expanded > ul {
  153. display: block;
  154. }
  155. /* --- Icon Logic using ::before Pseudo-Element --- */
  156. /* 1. Default/Collapsed State for Parent Nodes */
  157. .treeview li.parent::before {
  158. /* Right-pointing triangle: ▸ or \25B8 */
  159. content: '\25B8';
  160. margin-right: 5px;
  161. color: #007bff;
  162. display: inline-block;
  163. font-weight: bold;
  164. font-size: 18px; /* Adjust size to look neat */
  165. }
  166. /* 2. Expanded State for Parent Nodes */
  167. .treeview li.expanded.parent::before {
  168. /* Down-pointing triangle: ▾ or \25BE */
  169. content: '\25BE';
  170. }
  171. /* 3. Styling for Leaf Nodes (No Expansion) */
  172. /* The element without the 'parent' class is a leaf node */
  173. .treeview li:not(.parent)::before {
  174. /* Black circle/dot for a simple leaf icon: ● or \25CF */
  175. content: '\25CF';
  176. margin-right: 5px;
  177. color: gray;
  178. font-size: 0.8em;
  179. cursor: default;
  180. }