computed.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /* vim:set ts=2 sw=2 sts=2 et: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #sidebar-panel-computedview {
  6. margin: 0;
  7. display: flex;
  8. flex-direction: column;
  9. width: 100%;
  10. height: 100%;
  11. }
  12. #computedview-container {
  13. overflow: auto;
  14. height: 100%;
  15. }
  16. /* This extra wrapper only serves as a way to get the content of the view focusable.
  17. So that when the user reaches it either via keyboard or mouse, we know that the view
  18. is focused and therefore can handle shortcuts.
  19. However, for accessibility reasons, tabindex is set to -1 to avoid having to tab
  20. through it, and the outline is hidden. */
  21. #computedview-container-focusable {
  22. height: 100%;
  23. outline: none;
  24. }
  25. #computedview-toolbar {
  26. display: flex;
  27. align-items: center;
  28. }
  29. #browser-style-checkbox {
  30. /* Bug 1200073 - extra space before the browser styles checkbox so
  31. they aren't squished together in a small window. Put also
  32. an extra space after. */
  33. margin-inline-start: 5px;
  34. margin-inline-end: 0;
  35. }
  36. #browser-style-checkbox-label {
  37. padding-inline-start: 5px;
  38. margin-inline-end: 5px;
  39. }
  40. #propertyContainer {
  41. -moz-user-select: text;
  42. overflow-y: auto;
  43. overflow-x: hidden;
  44. flex: auto;
  45. }
  46. .row-striped {
  47. background: var(--theme-body-background);
  48. }
  49. .property-view-hidden,
  50. .property-content-hidden {
  51. display: none;
  52. }
  53. .property-view {
  54. padding: 2px 0px;
  55. padding-inline-start: 5px;
  56. display: flex;
  57. flex-wrap: wrap;
  58. }
  59. .property-name-container {
  60. width: 202px;
  61. }
  62. .property-value-container {
  63. display: flex;
  64. flex: 1 1 168px;
  65. overflow: hidden;
  66. }
  67. .property-name-container > *,
  68. .property-value-container > * {
  69. display: inline-block;
  70. vertical-align: middle;
  71. }
  72. .property-name {
  73. overflow-x: hidden;
  74. text-overflow: ellipsis;
  75. white-space: nowrap;
  76. outline: 0 !important;
  77. }
  78. .other-property-value {
  79. background-image: url(images/arrow-e.png);
  80. background-repeat: no-repeat;
  81. background-size: 5px 8px;
  82. }
  83. @media (min-resolution: 1.1dppx) {
  84. .other-property-value {
  85. background-image: url(images/arrow-e@2x.png);
  86. }
  87. }
  88. .property-value {
  89. overflow-x: hidden;
  90. text-overflow: ellipsis;
  91. white-space: nowrap;
  92. padding-inline-start: 14px;
  93. outline: 0 !important;
  94. }
  95. .other-property-value {
  96. background-position: left center;
  97. padding-inline-start: 8px;
  98. }
  99. .other-property-value:dir(rtl) {
  100. background-position-x: right;
  101. }
  102. .property-content {
  103. padding-inline-start: 17px;
  104. }
  105. .theme-firebug .property-view,
  106. .theme-firebug .property-content {
  107. font-family: var(--proportional-font-family);
  108. }
  109. .theme-firebug .property-view {
  110. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  111. }
  112. /* From skin */
  113. .expander {
  114. visibility: hidden;
  115. }
  116. .expandable {
  117. visibility: visible;
  118. }
  119. .match {
  120. visibility: hidden;
  121. }
  122. .matchedselectors > p {
  123. clear: both;
  124. margin: 0;
  125. margin-inline-end: 2px;
  126. padding: 2px;
  127. overflow-x: hidden;
  128. border-style: dotted;
  129. border-color: rgba(128,128,128,0.4);
  130. border-width: 1px 1px 0 1px;
  131. }
  132. .matchedselectors > p:last-of-type {
  133. border-bottom-width: 1px;
  134. }
  135. .matched {
  136. text-decoration: line-through;
  137. }
  138. .parentmatch {
  139. opacity: 0.5;
  140. }
  141. #computedview-no-results {
  142. height: 100%;
  143. }
  144. .onlyuserstyles {
  145. cursor: pointer;
  146. }
  147. .legendKey {
  148. margin: 0 5px;
  149. }
  150. .link {
  151. padding: 0 3px;
  152. cursor: pointer;
  153. float: right;
  154. }
  155. /* Workaround until float: inline-end; is enabled by default */
  156. .link:dir(rtl) {
  157. float: left;
  158. }
  159. /* Take away these two :visited rules to get a core dumper */
  160. /* See https://bugzilla.mozilla.org/show_bug.cgi?id=575675#c30 */
  161. .link,
  162. .link:visited {
  163. color: #0091ff;
  164. }
  165. .link,
  166. .helplink,
  167. .link:visited,
  168. .helplink:visited {
  169. text-decoration: none;
  170. }
  171. .link:hover {
  172. text-decoration: underline;
  173. }
  174. .computedview-colorswatch {
  175. border-radius: 50%;
  176. width: 0.9em;
  177. height: 0.9em;
  178. vertical-align: middle;
  179. margin-inline-end: 5px;
  180. display: inline-block;
  181. position: relative;
  182. }
  183. .computedview-colorswatch::before {
  184. content: '';
  185. background-color: #eee;
  186. background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
  187. linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
  188. background-size: 12px 12px;
  189. background-position: 0 0, 6px 6px;
  190. position: absolute;
  191. border-radius: 50%;
  192. top: 0;
  193. left: 0;
  194. right: 0;
  195. bottom: 0;
  196. z-index: -1;
  197. }