DetailsSection.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. /*
  2. * Copyright (C) 2013 Apple Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
  14. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  15. * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
  17. * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  18. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  19. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  20. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  21. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  22. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  23. * THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. .details-section {
  26. margin-top: -1px;
  27. margin-bottom: -1px;
  28. font-family: "Lucida Grande", sans-serif;
  29. font-size: 10px;
  30. }
  31. .details-section > .header {
  32. position: -webkit-sticky;
  33. top: -1px;
  34. height: 23px;
  35. border-top: 1px solid rgb(153, 153, 153);
  36. border-bottom: 1px solid rgb(153, 153, 153);
  37. box-shadow: inset rgba(255, 255, 255, 0.2) 0 1px 0;
  38. background-image: -webkit-linear-gradient(top, rgb(238, 240, 244), rgb(224, 226, 230));
  39. color: rgb(57, 57, 57);
  40. text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
  41. white-space: nowrap;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. font-weight: bold;
  45. padding: 4px 5px 4px 0;
  46. /* Ensure the headers are displayed above scrollbars. */
  47. z-index: 200;
  48. }
  49. .details-section .details-section > .header {
  50. background-image: -webkit-linear-gradient(top, rgb(250, 250, 250), rgb(240, 240, 240));
  51. top: 21px;
  52. /* Ensure these headers are displayed below the parent header but above scrollbars. */
  53. z-index: 100;
  54. }
  55. .details-section > .header::before {
  56. display: block;
  57. float: left;
  58. width: 21px;
  59. height: 100%;
  60. background-image: -webkit-canvas(details-section-disclosure-triangle-open-normal);
  61. background-repeat: no-repeat;
  62. background-position: center;
  63. background-size: 13px 13px;
  64. content: "";
  65. }
  66. .details-section > .header:not(.mouse-over-options-element):active::before {
  67. background-image: -webkit-canvas(details-section-disclosure-triangle-open-active);
  68. }
  69. .details-section.collapsed > .header::before {
  70. background-image: -webkit-canvas(details-section-disclosure-triangle-closed-normal);
  71. }
  72. .details-section.collapsed > .header:not(.mouse-over-options-element):active::before {
  73. background-image: -webkit-canvas(details-section-disclosure-triangle-closed-active);
  74. }
  75. .details-section > .header > label {
  76. float: right;
  77. font-size: 10px;
  78. color: rgba(0, 0, 0, 0.6);
  79. text-align: right;
  80. }
  81. .details-section.collapsed > .header > label {
  82. display: none;
  83. }
  84. .details-section > .header > label > input[type="checkbox"] {
  85. margin: 0 0 0 5px;
  86. vertical-align: 1px;
  87. font-size: 10px;
  88. }
  89. .details-section > .header > .node-link,
  90. .details-section > .header > .go-to-arrow {
  91. float: right;
  92. }
  93. .details-section > .header .go-to-arrow {
  94. width: 10px;
  95. height: 12px;
  96. margin-left: 3px;
  97. }
  98. .details-section > .content {
  99. display: table;
  100. table-layout: fixed;
  101. width: 100%;
  102. border-spacing: 0;
  103. border-collapse: collapse;
  104. }
  105. .details-section.collapsed > .content {
  106. display: none;
  107. }
  108. .details-section > .content > .group {
  109. display: table-row-group;
  110. }
  111. .details-section > .content > .group:nth-child(even) {
  112. background-color: rgb(222, 222, 222);
  113. }
  114. .details-section > .content > .group:nth-child(even) > .row:not(.simple):first-child,
  115. .details-section > .content > .group:nth-child(even) > .row.simple:first-child > * {
  116. border-top: 1px solid rgb(153, 153, 153);
  117. }
  118. .details-section > .content > .group:nth-child(even) > .row:not(.simple):last-child,
  119. .details-section > .content > .group:last-child > .row:not(.simple):last-child,
  120. .details-section > .content > .group:nth-child(even) > .row.simple:last-child > *,
  121. .details-section > .content > .group:last-child > .row.simple:last-child > * {
  122. border-bottom: 1px solid rgb(153, 153, 153);
  123. }
  124. .details-section > .content > .group > .row.simple {
  125. display: table-row;
  126. }
  127. .details-section > .content > .group > .row.simple:last-child > * {
  128. padding-bottom: 5px !important;
  129. }
  130. .details-section > .content > .group > .row.simple.empty {
  131. display: none;
  132. }
  133. .details-section > .content > .group > .row.empty.syntax-highlighted {
  134. font-family: "Lucida Grande", sans-serif;
  135. font-size: 10px;
  136. }
  137. .details-section > .content > .group > .row.simple.empty:last-child {
  138. display: table-row;
  139. }
  140. .details-section > .content > .group > .row.simple.empty:last-child > * {
  141. display: table-cell;
  142. height: 1px;
  143. font-size: 0;
  144. color: transparent;
  145. padding-top: 0;
  146. padding-bottom: 3px !important;
  147. }
  148. .details-section > .content > .group > .row.simple.empty:last-child > * > * {
  149. display: none;
  150. }
  151. .details-section > .content > .group > .row.simple > * {
  152. display: table-cell;
  153. vertical-align: top;
  154. padding: 5px 4px 2px;
  155. }
  156. .details-section > .content > .group > .row.simple > .label {
  157. color: rgb(51, 51, 51);
  158. text-align: right;
  159. padding-left: 6px;
  160. width: 85px;
  161. }
  162. .details-section > .content > .group > .row.simple > .value {
  163. word-wrap: break-word;
  164. padding-right: 6px;
  165. -webkit-user-select: text;
  166. cursor: text;
  167. }
  168. .details-section > .content > .group > .row.simple > .value .go-to-arrow {
  169. width: 10px;
  170. height: 12px;
  171. margin-left: 5px;
  172. }
  173. .details-section > .content > .group > .row.simple.data > .value {
  174. word-break: break-all;
  175. }
  176. .details-section > .content > .group > .row.empty {
  177. padding: 6px;
  178. text-align: center;
  179. color: gray;
  180. }
  181. .details-section > .content > .group > .row.properties:not(.empty) {
  182. padding: 4px 6px;
  183. }
  184. .details-section > .content .data-grid {
  185. border: none;
  186. }
  187. .details-section > .content .data-grid table.data {
  188. background-image: none;
  189. }
  190. .details-section > .content .data-grid tr:nth-child(even) {
  191. background-color: white;
  192. }
  193. .details-section > .content .data-grid tr:nth-child(odd) {
  194. background-color: rgb(243, 246, 250);
  195. }
  196. .details-section > .content .data-grid td.value-column {
  197. height: auto;
  198. line-height: initial;
  199. white-space: normal;
  200. }
  201. .details-section > .content .data-grid td.value-column > div {
  202. white-space: normal;
  203. word-break: break-all;
  204. }