CommonSource.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. static const char* common_rcss = R"RCSS(
  2. body
  3. {
  4. font-family: rmlui-debugger-font;
  5. z-index: 1000000;
  6. font-size: 13dp;
  7. line-height: 1.4;
  8. color: black;
  9. padding-top: 30dp;
  10. }
  11. div, h1, h2, h3, h4, p
  12. {
  13. display: block;
  14. }
  15. em
  16. {
  17. font-style: italic;
  18. }
  19. h1
  20. {
  21. position: absolute;
  22. top: 0;
  23. right: 0;
  24. left: 0;
  25. height: 22dp;
  26. padding: 4dp 5dp;
  27. color: white;
  28. background-color: #888;
  29. font-size: 15dp;
  30. }
  31. h2
  32. {
  33. background-color: #ddd;
  34. border-width: 1dp 0px;
  35. border-color: #888;
  36. }
  37. h3
  38. {
  39. margin-top: 0.6em;
  40. color: red;
  41. }
  42. h4
  43. {
  44. color: #cc0000;
  45. }
  46. handle#position_handle
  47. {
  48. display: block;
  49. position: absolute;
  50. top: 0;
  51. right: 0;
  52. bottom: 0;
  53. left: 0;
  54. }
  55. h1 .button
  56. {
  57. z-index: 1;
  58. }
  59. div#close_button
  60. {
  61. margin-left: 10dp;
  62. z-index: 1;
  63. float: right;
  64. width: 18dp;
  65. color: black;
  66. background-color: #ddd;
  67. border-width: 1dp;
  68. border-color: #666;
  69. text-align: center;
  70. }
  71. div#close_button:hover
  72. {
  73. background-color: #eee;
  74. }
  75. div#close_button:active
  76. {
  77. background-color: #fff;
  78. }
  79. div#content
  80. {
  81. position: relative;
  82. width: auto;
  83. height: 100%;
  84. overflow: auto;
  85. background: white;
  86. border-width: 2dp;
  87. border-color: #888;
  88. border-top-width: 0;
  89. }
  90. .error
  91. {
  92. background: #d24040;
  93. color: white;
  94. border-color: #b74e4e;
  95. }
  96. .warning
  97. {
  98. background: #e8d34e;
  99. color: black;
  100. border-color: #ca9466;
  101. }
  102. .info
  103. {
  104. background: #2a9cdb;
  105. color: white;
  106. border-color: #3b70bb;
  107. }
  108. .debug
  109. {
  110. background: #3fab2a;
  111. color: white;
  112. border-color: #226c13;
  113. }
  114. scrollbarvertical
  115. {
  116. width: 16dp;
  117. scrollbar-margin: 16dp;
  118. }
  119. scrollbarhorizontal
  120. {
  121. height: 16dp;
  122. scrollbar-margin: 16dp;
  123. }
  124. scrollbarvertical slidertrack,
  125. scrollbarhorizontal slidertrack
  126. {
  127. background: #aaa;
  128. border-color: #888;
  129. }
  130. scrollbarvertical slidertrack
  131. {
  132. border-left-width: 1dp;
  133. }
  134. scrollbarhorizontal slidertrack
  135. {
  136. height: 15dp;
  137. border-top-width: 1dp;
  138. }
  139. scrollbarvertical sliderbar,
  140. scrollbarhorizontal sliderbar
  141. {
  142. background: #ddd;
  143. border-color: #888;
  144. }
  145. scrollbarvertical sliderbar
  146. {
  147. border-width: 1dp 0;
  148. margin-left: 1dp;
  149. }
  150. scrollbarhorizontal sliderbar
  151. {
  152. height: 15dp;
  153. border-width: 0 1dp;
  154. margin-top: 1dp;
  155. }
  156. scrollbarcorner
  157. {
  158. background: #888;
  159. }
  160. handle#size_handle
  161. {
  162. position: absolute;
  163. width: 16dp;
  164. height: 16dp;
  165. bottom: 0dp;
  166. right: 2dp;
  167. background-color: #888;
  168. }
  169. )RCSS";