CommonSource.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /*
  2. * This source file is part of RmlUi, the HTML/CSS Interface Middleware
  3. *
  4. * For the latest information, see http://github.com/mikke89/RmlUi
  5. *
  6. * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
  7. * Copyright (c) 2019 The RmlUi Team, and contributors
  8. *
  9. * Permission is hereby granted, free of charge, to any person obtaining a copy
  10. * of this software and associated documentation files (the "Software"), to deal
  11. * in the Software without restriction, including without limitation the rights
  12. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  13. * copies of the Software, and to permit persons to whom the Software is
  14. * furnished to do so, subject to the following conditions:
  15. *
  16. * The above copyright notice and this permission notice shall be included in
  17. * all copies or substantial portions of the Software.
  18. *
  19. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  22. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  24. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  25. * THE SOFTWARE.
  26. *
  27. */
  28. static const char* common_rcss = R"RCSS(
  29. body
  30. {
  31. font-family: Lacuna;
  32. z-index: 1000000;
  33. font-size: 13dp;
  34. line-height: 1.4;
  35. color: black;
  36. padding-top: 30dp;
  37. }
  38. div, h1, h2, h3, h4, p
  39. {
  40. display: block;
  41. }
  42. em
  43. {
  44. font-style: italic;
  45. }
  46. h1
  47. {
  48. position: absolute;
  49. top: 0px;
  50. height: 22dp;
  51. padding: 4dp 5dp;
  52. color: white;
  53. background-color: #888;
  54. font-size: 15dp;
  55. }
  56. h2
  57. {
  58. background-color: #ddd;
  59. border-width: 1px 0px;
  60. border-color: #888;
  61. }
  62. h3
  63. {
  64. margin-top: 0.6em;
  65. color: red;
  66. }
  67. h4
  68. {
  69. color: #cc0000;
  70. }
  71. handle#position_handle
  72. {
  73. display: block;
  74. position: absolute;
  75. top: 0;
  76. right: 0;
  77. bottom: 0;
  78. left: 0;
  79. }
  80. h1 .button
  81. {
  82. z-index: 1;
  83. }
  84. h3.mark
  85. {
  86. margin-top: 1.0em;
  87. padding: 2dp;
  88. color: #900;
  89. background-color: #eee;
  90. }
  91. div#close_button
  92. {
  93. margin-left: 10dp;
  94. z-index: 1;
  95. float: right;
  96. width: 18dp;
  97. color: black;
  98. background-color: #ddd;
  99. border-width: 1px;
  100. border-color: #666;
  101. text-align: center;
  102. }
  103. div#close_button:hover
  104. {
  105. background-color: #eee;
  106. }
  107. div#close_button:active
  108. {
  109. background-color: #fff;
  110. }
  111. div#content
  112. {
  113. position: relative;
  114. width: auto;
  115. height: 100%;
  116. overflow: auto;
  117. background: white;
  118. border-width: 2dp;
  119. border-color: #888;
  120. border-top-width: 0px;
  121. }
  122. .error
  123. {
  124. background: #d24040;
  125. color: white;
  126. border-color: #b74e4e;
  127. }
  128. .warning
  129. {
  130. background: #e8d34e;
  131. color: black;
  132. border-color: #ca9466;
  133. }
  134. .info
  135. {
  136. background: #2a9cdb;
  137. color: white;
  138. border-color: #3b70bb;
  139. }
  140. .debug
  141. {
  142. background: #3fab2a;
  143. color: white;
  144. border-color: #226c13;
  145. }
  146. scrollbarvertical
  147. {
  148. width: 16dp;
  149. scrollbar-margin: 16px;
  150. }
  151. scrollbarhorizontal
  152. {
  153. height: 16dp;
  154. scrollbar-margin: 16px;
  155. }
  156. scrollbarvertical slidertrack,
  157. scrollbarhorizontal slidertrack
  158. {
  159. background: #aaa;
  160. border-color: #888;
  161. }
  162. scrollbarvertical slidertrack
  163. {
  164. border-left-width: 1px;
  165. }
  166. scrollbarhorizontal slidertrack
  167. {
  168. height: 15dp;
  169. border-top-width: 1px;
  170. }
  171. scrollbarvertical sliderbar,
  172. scrollbarhorizontal sliderbar
  173. {
  174. background: #ddd;
  175. border-color: #888;
  176. }
  177. scrollbarvertical sliderbar
  178. {
  179. border-width: 1px 0px;
  180. margin-left: 1dp;
  181. }
  182. scrollbarhorizontal sliderbar
  183. {
  184. height: 15dp;
  185. border-width: 0px 1px;
  186. margin-top: 1dp;
  187. }
  188. scrollbarcorner
  189. {
  190. background: #888;
  191. }
  192. handle#size_handle
  193. {
  194. position: absolute;
  195. width: 16dp;
  196. height: 16dp;
  197. bottom: -2dp;
  198. right: 2dp;
  199. background-color: #888;
  200. }
  201. )RCSS";