| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- /*
- * This source file is part of RmlUi, the HTML/CSS Interface Middleware
- *
- * For the latest information, see http://github.com/mikke89/RmlUi
- *
- * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
- * Copyright (c) 2019-2023 The RmlUi Team, and contributors
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- *
- */
- static const char* info_rcss = R"RCSS(
- body
- {
- width: 320dp;
- min-width: 320dp;
- min-height: 150dp;
- margin-top: 42dp;
- margin-right: 20dp;
- margin-left: auto;
- }
- div#content
- {
- height: auto;
- max-height: 650dp;
- }
- div#content div h2
- {
- padding-left: 5dp;
- }
- div#content div div
- {
- font-size: 12dp;
- padding-left: 10dp;
- }
- div#content .name
- {
- color: #610;
- }
- div#position p:hover,
- div#ancestors p:hover,
- div#children p:hover
- {
- background-color: #ddd;
- }
- scrollbarvertical
- {
- scrollbar-margin: 0px;
- }
- h3.strong
- {
- margin-top: 1.0em;
- padding: 2dp;
- color: #900;
- background-color: #eee;
- }
- #pseudo pseudo
- {
- padding: 0 8dp 0 3dp;
- background-color: #ddd;
- border: 2px #aaa;
- display: inline-block;
- }
- #pseudo pseudo.active
- {
- border-color: #8af;
- background-color: #eef;
- }
- div.header_button
- {
- font-size: 0.9em;
- margin-left: 3dp;
- z-index: 1;
- float: right;
- width: 18dp;
- color: #999;
- background-color: #666;
- border-width: 1px;
- border-color: #666;
- text-align: center;
- }
- div.header_button.active
- {
- border-color: #ccc;
- color: #fff;
- }
- div.header_button:hover
- {
- background-color: #555;
- }
- div.header_button:active
- {
- background-color: #444;
- }
- div#title-content {
- width: 220dp;
- }
- div#title-content em {
- font-size: 14dp;
- }
- p.non_dom {
- font-style: italic;
- }
- .break-all {
- word-break: break-all;
- }
- )RCSS";
- static const char* info_rml = R"RML(
- <h1>
- <handle id="position_handle" move_target="#document"/>
- <div id="close_button">X</div>
- <div id="update_source" class="header_button active">U</div>
- <div id="show_source" class="header_button active">D</div>
- <div id="enable_element_select" class="header_button active">*</div>
- <div id="title-content">Element Information</div>
- </h1>
- <div id="content">
- <div id="pseudo">
- <pseudo name="hover" class="active">:hover</pseudo>
- <pseudo name="active">:active</pseudo>
- <pseudo name="focus">:focus</pseudo>
- <pseudo name="checked">:checked</pseudo>
- <span id="extra"></span>
- </div>
- <div id="attributes">
- <h2>Attributes</h2>
- <div id="attributes-content">
- </div>
- </div>
- <div id="properties">
- <h2>Properties</h2>
- <div id="properties-content">
- </div>
- </div>
- <div id="events">
- <h2>Events</h2>
- <div id="events-content">
- </div>
- </div>
- <div id="position">
- <h2>Position</h2>
- <div id="position-content">
- </div>
- </div>
- <div id="ancestors">
- <h2>Ancestors</h2>
- <div id="ancestors-content">
- </div>
- </div>
- <div id="children">
- <h2>Children</h2>
- <div id="children-content">
- </div>
- </div>
- </div>
- )RML";
|