InfoSource.h 2.8 KB

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