CommonSource.h 3.8 KB

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