CommonSource.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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: 1em;
  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. div#close_button
  85. {
  86. margin-left: 10dp;
  87. z-index: 1;
  88. float: right;
  89. width: 18dp;
  90. color: black;
  91. background-color: #ddd;
  92. border-width: 1px;
  93. border-color: #666;
  94. text-align: center;
  95. }
  96. div#close_button:hover
  97. {
  98. background-color: #eee;
  99. }
  100. div#close_button:active
  101. {
  102. background-color: #fff;
  103. }
  104. div#content
  105. {
  106. position: relative;
  107. width: auto;
  108. height: 100%;
  109. overflow: auto;
  110. background: white;
  111. border-width: 2dp;
  112. border-color: #888;
  113. border-top-width: 0px;
  114. }
  115. .error
  116. {
  117. background: #d24040;
  118. color: white;
  119. border-color: #b74e4e;
  120. }
  121. .warning
  122. {
  123. background: #e8d34e;
  124. color: black;
  125. border-color: #ca9466;
  126. }
  127. .info
  128. {
  129. background: #2a9cdb;
  130. color: white;
  131. border-color: #3b70bb;
  132. }
  133. .debug
  134. {
  135. background: #3fab2a;
  136. color: white;
  137. border-color: #226c13;
  138. }
  139. scrollbarvertical
  140. {
  141. width: 16dp;
  142. scrollbar-margin: 16px;
  143. }
  144. scrollbarhorizontal
  145. {
  146. height: 16dp;
  147. scrollbar-margin: 16px;
  148. }
  149. scrollbarvertical slidertrack,
  150. scrollbarhorizontal slidertrack
  151. {
  152. background: #aaa;
  153. border-color: #888;
  154. }
  155. scrollbarvertical slidertrack
  156. {
  157. border-left-width: 1px;
  158. }
  159. scrollbarhorizontal slidertrack
  160. {
  161. height: 15dp;
  162. border-top-width: 1px;
  163. }
  164. scrollbarvertical sliderbar,
  165. scrollbarhorizontal sliderbar
  166. {
  167. background: #ddd;
  168. border-color: #888;
  169. }
  170. scrollbarvertical sliderbar
  171. {
  172. border-width: 1px 0px;
  173. margin-left: 1dp;
  174. }
  175. scrollbarhorizontal sliderbar
  176. {
  177. height: 15dp;
  178. border-width: 0px 1px;
  179. margin-top: 1dp;
  180. }
  181. scrollbarcorner
  182. {
  183. background: #888;
  184. }
  185. handle#size_handle
  186. {
  187. position: absolute;
  188. width: 16dp;
  189. height: 16dp;
  190. bottom: -2dp;
  191. right: 2dp;
  192. background-color: #888;
  193. }
  194. )RCSS";