CommonSource.h 3.8 KB

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