CommonSource.h 3.7 KB

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