InfoSource.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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* info_rcss = R"RCSS(
  29. body
  30. {
  31. width: 320dp;
  32. min-width: 320dp;
  33. min-height: 150dp;
  34. margin-top: 42dp;
  35. margin-right: 20dp;
  36. margin-left: auto;
  37. }
  38. div#content
  39. {
  40. height: auto;
  41. max-height: 650dp;
  42. }
  43. div#content div h2
  44. {
  45. padding-left: 5dp;
  46. }
  47. div#content div div
  48. {
  49. font-size: 12dp;
  50. padding-left: 10dp;
  51. }
  52. div#ancestors p:hover,
  53. div#children p:hover
  54. {
  55. background-color: #ddd;
  56. }
  57. scrollbarvertical
  58. {
  59. scrollbar-margin: 0px;
  60. }
  61. )RCSS";
  62. static const char* info_rml = R"RML(
  63. <h1>
  64. <handle id="position_handle" move_target="#document">
  65. <div id="close_button">X</div>
  66. <div id="title-content" style="width: 200dp;">Element Information</div>
  67. </handle>
  68. </h1>
  69. <div id="content">
  70. <div id ="attributes">
  71. <h2>Attributes</h2>
  72. <div id="attributes-content">
  73. </div>
  74. </div>
  75. <div id ="properties">
  76. <h2>Properties</h2>
  77. <div id="properties-content">
  78. </div>
  79. </div>
  80. <div id ="events">
  81. <h2>Events</h2>
  82. <div id="events-content">
  83. </div>
  84. </div>
  85. <div id ="position">
  86. <h2>Position</h2>
  87. <div id="position-content">
  88. </div>
  89. </div>
  90. <div id ="ancestors">
  91. <h2>Ancestors</h2>
  92. <div id="ancestors-content">
  93. </div>
  94. </div>
  95. <div id ="children">
  96. <h2>Children</h2>
  97. <div id="children-content">
  98. </div>
  99. </div>
  100. </div>
  101. )RML";