elementsPanel.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  1. /*
  2. * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
  3. * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
  15. * its contributors may be used to endorse or promote products derived
  16. * from this software without specific prior written permission.
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
  19. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  20. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  21. * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
  22. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  23. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  24. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  25. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  27. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. */
  29. #elements-content {
  30. padding-left: 0;
  31. }
  32. #elements-content > ol {
  33. display: inline-block;
  34. min-height: 100%;
  35. }
  36. #elements-content .editing {
  37. margin-left: 8px;
  38. }
  39. #elements-content .elements-gutter-decoration {
  40. position: absolute;
  41. left: 1px;
  42. margin-top: 2px;
  43. height: 8px;
  44. width: 8px;
  45. border-radius: 4px;
  46. border: 1px solid orange;
  47. background-color: orange;
  48. }
  49. #elements-content .elements-gutter-decoration.elements-has-decorated-children {
  50. opacity: 0.5;
  51. }
  52. #elements-content .CodeMirror {
  53. /* Consistent with the .editing class in inspector.css */
  54. -webkit-box-shadow: rgba(0, 0, 0, .5) 3px 3px 4px;
  55. outline: 1px solid rgb(66%, 66%, 66%) !important;
  56. background-color: white;
  57. }
  58. #elements-content .CodeMirror pre {
  59. padding: 0;
  60. }
  61. #elements-content .CodeMirror-lines {
  62. padding: 0;
  63. }
  64. .elements-tree-editor {
  65. -webkit-user-select: text;
  66. -webkit-user-modify: read-write-plaintext-only;
  67. }
  68. .metrics {
  69. padding: 8px;
  70. font-size: 10px;
  71. text-align: center;
  72. white-space: nowrap;
  73. }
  74. .metrics .label {
  75. position: absolute;
  76. font-size: 10px;
  77. color: black;
  78. margin-left: 3px;
  79. padding-left: 2px;
  80. padding-right: 2px;
  81. }
  82. .metrics .position {
  83. border: 1px rgb(66%, 66%, 66%) dotted;
  84. background-color: white;
  85. display: inline-block;
  86. text-align: center;
  87. padding: 3px;
  88. margin: 3px;
  89. }
  90. .metrics .margin {
  91. border: 1px dashed;
  92. background-color: white;
  93. display: inline-block;
  94. text-align: center;
  95. vertical-align: middle;
  96. padding: 3px;
  97. margin: 3px;
  98. }
  99. .metrics .border {
  100. border: 1px black solid;
  101. background-color: white;
  102. display: inline-block;
  103. text-align: center;
  104. vertical-align: middle;
  105. padding: 3px;
  106. margin: 3px;
  107. }
  108. .metrics .padding {
  109. border: 1px grey dashed;
  110. background-color: white;
  111. display: inline-block;
  112. text-align: center;
  113. vertical-align: middle;
  114. padding: 3px;
  115. margin: 3px;
  116. }
  117. .metrics .content {
  118. position: static;
  119. border: 1px gray solid;
  120. background-color: white;
  121. display: inline-block;
  122. text-align: center;
  123. vertical-align: middle;
  124. padding: 3px;
  125. margin: 3px;
  126. min-width: 80px;
  127. text-align: center;
  128. overflow: visible;
  129. }
  130. .metrics .content span {
  131. display: inline-block;
  132. }
  133. .metrics .editing {
  134. position: relative;
  135. z-index: 100;
  136. }
  137. .metrics .left {
  138. display: inline-block;
  139. vertical-align: middle;
  140. }
  141. .metrics .right {
  142. display: inline-block;
  143. vertical-align: middle;
  144. }
  145. .metrics .top {
  146. display: inline-block;
  147. }
  148. .metrics .bottom {
  149. display: inline-block;
  150. }
  151. .styles-section {
  152. padding: 2px 2px 4px 4px;
  153. min-height: 18px;
  154. white-space: nowrap;
  155. -webkit-background-origin: padding;
  156. -webkit-background-clip: padding;
  157. -webkit-user-select: text;
  158. }
  159. .styles-section:not(.first-styles-section) {
  160. border-top: 1px solid rgb(191, 191, 191);
  161. }
  162. .styles-section.read-only {
  163. background-color: rgb(240, 240, 240);
  164. }
  165. .styles-section .properties li.not-parsed-ok {
  166. margin-left: 0px;
  167. }
  168. .styles-section.computed-style .properties li.not-parsed-ok {
  169. margin-left: -6px;
  170. }
  171. .styles-section .properties li.not-parsed-ok img.exclamation-mark {
  172. content: url(Images/warningIcon.png);
  173. opacity: 0.75;
  174. position: relative;
  175. float: left;
  176. width: 12px;
  177. height: 10px;
  178. margin: 0 6px 0 0;
  179. left: -38px; /* outdent to compensate for the top-level property indent */
  180. padding-left: 2px;
  181. vertical-align: baseline;
  182. -webkit-user-select: none;
  183. cursor: default;
  184. z-index: 1;
  185. }
  186. .styles-section.computed-style .properties li.not-parsed-ok img.exclamation-mark {
  187. left: 0;
  188. }
  189. .styles-section .header {
  190. white-space: nowrap;
  191. -webkit-background-origin: padding;
  192. -webkit-background-clip: padding;
  193. }
  194. .styles-section .header .title {
  195. word-wrap: break-word;
  196. white-space: normal;
  197. }
  198. .styles-section .header .title .media, .styles-section .header .title .media .subtitle {
  199. color: rgb(128, 128, 128);
  200. overflow: hidden;
  201. }
  202. .styles-section .header .subtitle {
  203. color: rgb(85, 85, 85);
  204. float: right;
  205. margin-left: 5px;
  206. max-width: 100%;
  207. text-overflow: ellipsis;
  208. overflow: hidden;
  209. white-space: nowrap;
  210. }
  211. .styles-section .header .subtitle a {
  212. color: inherit;
  213. }
  214. .styles-section .selector {
  215. color: #777;
  216. }
  217. .styles-section .selector-matches {
  218. color: black;
  219. }
  220. .styles-section a[data-uncopyable] {
  221. display: inline-block;
  222. }
  223. .styles-section a[data-uncopyable]::before {
  224. content: attr(data-uncopyable);
  225. text-decoration: underline;
  226. }
  227. .styles-section .properties {
  228. display: none;
  229. margin: 0;
  230. padding: 2px 4px 0 6px;
  231. list-style: none;
  232. clear: both;
  233. }
  234. .styles-section.matched-styles .properties {
  235. padding-left: 0;
  236. }
  237. .styles-section.no-affect .properties li {
  238. opacity: 0.5;
  239. }
  240. .styles-section.no-affect .properties li.editing {
  241. opacity: 1.0;
  242. }
  243. .styles-section.expanded .properties {
  244. display: block;
  245. }
  246. .styles-section .properties li {
  247. margin-left: 12px;
  248. padding-left: 22px;
  249. white-space: normal;
  250. text-overflow: ellipsis;
  251. overflow: hidden;
  252. cursor: auto;
  253. }
  254. .styles-section.computed-style.expanded .properties > li {
  255. padding-left: 0;
  256. }
  257. .styles-section.computed-style.expanded .properties > li .webkit-css-property {
  258. margin-left: 0;
  259. }
  260. .styles-section .properties li .webkit-css-property {
  261. margin-left: -22px; /* outdent the first line of longhand properties (in an expanded shorthand) to compensate for the "padding-left" shift in .styles-section .properties li */
  262. }
  263. .styles-section.expanded .properties > li {
  264. padding-left: 38px;
  265. }
  266. .styles-section .properties > li .webkit-css-property {
  267. margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */
  268. }
  269. .styles-section .properties > li.child-editing {
  270. padding-left: 8px;
  271. }
  272. .styles-section .properties > li.child-editing .webkit-css-property {
  273. margin-left: 0;
  274. }
  275. .styles-section.matched-styles .properties li {
  276. margin-left: 0 !important;
  277. }
  278. .styles-section .properties li.child-editing {
  279. word-wrap: break-word !important;
  280. white-space: normal !important;
  281. padding-left: 0;
  282. }
  283. .styles-section .properties ol {
  284. display: none;
  285. margin: 0;
  286. -webkit-padding-start: 12px;
  287. list-style: none;
  288. }
  289. .styles-section .properties ol.expanded {
  290. display: block;
  291. }
  292. .styles-section .properties li.parent::before {
  293. content: none;
  294. }
  295. .styles-section .properties li.parent.expanded::before {
  296. content: none;
  297. }
  298. .styles-section.matched-styles .properties li.parent .expand-element {
  299. content: url(Images/treeRightTriangleBlack.png);
  300. margin-right: 1px;
  301. margin-left: -5px;
  302. opacity: 0.6;
  303. }
  304. .styles-section.matched-styles .properties li.parent.expanded .expand-element {
  305. content: url(Images/treeDownTriangleBlack.png);
  306. }
  307. .styles-section.computed-style .properties li.parent::before {
  308. content: url(Images/treeRightTriangleBlack.png);
  309. opacity: 0.75;
  310. float: left;
  311. width: 8px;
  312. height: 8px;
  313. margin-top: 0;
  314. padding-right: 3px;
  315. -webkit-user-select: none;
  316. cursor: default;
  317. }
  318. .styles-section.computed-style .properties li.parent.expanded::before {
  319. content: url(Images/treeDownTriangleBlack.png);
  320. margin-top: 1px;
  321. }
  322. .styles-section .properties li .info {
  323. padding-top: 4px;
  324. padding-bottom: 3px;
  325. }
  326. .styles-section.matched-styles:not(.read-only):hover .properties .enabled-button {
  327. visibility: visible;
  328. }
  329. .styles-section.matched-styles:not(.read-only) .properties li.disabled .enabled-button {
  330. visibility: visible;
  331. }
  332. .styles-section .properties .enabled-button {
  333. visibility: hidden;
  334. float: left;
  335. font-size: 10px;
  336. margin: 0;
  337. vertical-align: top;
  338. position: relative;
  339. z-index: 1;
  340. width: 18px;
  341. left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */
  342. }
  343. .styles-section.matched-styles .properties ol.expanded {
  344. margin-left: 16px;
  345. }
  346. .styles-section .properties .overloaded,
  347. .styles-section .properties .inactive,
  348. .styles-section .properties .disabled,
  349. .styles-section .properties .not-parsed-ok {
  350. text-decoration: line-through;
  351. }
  352. .styles-section.computed-style .properties .disabled {
  353. text-decoration: none;
  354. opacity: 0.5;
  355. }
  356. .styles-section .properties .implicit, .styles-section .properties .inherited {
  357. opacity: 0.5;
  358. }
  359. .styles-element-state-pane {
  360. background-color: rgb(240, 240, 240);
  361. overflow: hidden;
  362. margin-top: -38px;
  363. -webkit-transition: margin-top 0.1s ease-in-out;
  364. padding-left: 2px;
  365. }
  366. .styles-element-state-pane.expanded {
  367. border-bottom: 1px solid rgb(189, 189, 189);
  368. margin-top: 0;
  369. }
  370. .styles-element-state-pane > table {
  371. width: 100%;
  372. border-spacing: 0;
  373. }
  374. .styles-element-state-pane input {
  375. margin: 2px;
  376. vertical-align: -2px;
  377. }
  378. .styles-selector {
  379. cursor: text;
  380. }
  381. .body .styles-section .properties .inherited {
  382. display: none;
  383. }
  384. .body.show-inherited .styles-section .properties .inherited {
  385. display: block;
  386. }
  387. .add-attribute {
  388. margin-left: 1px;
  389. margin-right: 1px;
  390. white-space: nowrap;
  391. }
  392. .section .event-bars {
  393. display: none;
  394. }
  395. .section.expanded .event-bars {
  396. display: block;
  397. }
  398. .event-bar {
  399. position: relative;
  400. margin-left: 10px;
  401. }
  402. .event-bar:first-child {
  403. margin-top: 1px;
  404. }
  405. .event-bars .event-bar .header {
  406. padding: 0 8px 0 18px;
  407. min-height: 16px;
  408. opacity: 1.0;
  409. white-space: nowrap;
  410. -webkit-background-origin: padding;
  411. -webkit-background-clip: padding;
  412. }
  413. .event-bars .event-bar .header .title {
  414. font-weight: normal;
  415. color: black;
  416. text-shadow: white 0 1px 0;
  417. }
  418. .event-bars .event-bar .header .subtitle {
  419. color: rgba(90, 90, 90, 0.75);
  420. }
  421. .event-bars .event-bar .header::before {
  422. position: absolute;
  423. top: 2px;
  424. left: 7px;
  425. width: 8px;
  426. height: 8px;
  427. opacity: 0.75;
  428. content: url(Images/treeRightTriangleBlack.png) !important;
  429. }
  430. .event-bars .event-bar.expanded .header::before {
  431. content: url(Images/treeDownTriangleBlack.png) !important;
  432. }
  433. .image-preview-container {
  434. background: transparent;
  435. text-align: center;
  436. }
  437. .image-preview-container img {
  438. margin: 2px auto;
  439. max-width: 100px;
  440. max-height: 100px;
  441. background-image: url(Images/checker.png);
  442. -webkit-user-select: text;
  443. -webkit-user-drag: auto;
  444. }
  445. .sidebar-pane.composite {
  446. overflow: hidden;
  447. position: absolute;
  448. }
  449. .sidebar-pane.composite > .body {
  450. height: 100%;
  451. }
  452. .sidebar-pane.composite .metrics {
  453. border-bottom: 1px solid rgb(64%, 64%, 64%);
  454. height: 206px;
  455. display: -webkit-flex;
  456. -webkit-flex-direction: column;
  457. -webkit-align-items: center;
  458. -webkit-justify-content: center;
  459. }
  460. .sidebar-pane.composite .metrics-and-computed .sidebar-pane-toolbar {
  461. margin-top: 4px;
  462. margin-bottom: -4px;
  463. position: relative;
  464. }
  465. .sidebar-pane.composite .sidebar-pane-toolbar > .sidebar-pane-subtitle {
  466. left: 8px;
  467. }
  468. .sidebar-pane.composite .styles-section.read-only {
  469. background-color: inherit;
  470. }
  471. .panel.elements .sidebar-pane-toolbar > select {
  472. float: right;
  473. width: 23px;
  474. height: 17px;
  475. color: transparent;
  476. background-color: transparent;
  477. border: none;
  478. background-repeat: no-repeat;
  479. margin: 1px 0 0 0;
  480. padding: 0;
  481. -webkit-border-radius: 0;
  482. -webkit-appearance: none;
  483. }
  484. .panel.elements .sidebar-pane-toolbar > select:hover {
  485. background-position: -23px 0px;
  486. }
  487. .panel.elements .sidebar-pane-toolbar > select:active {
  488. background-position: -46px 0px;
  489. }
  490. .panel.elements .sidebar-pane-toolbar > select.select-settings {
  491. background-image: url(Images/paneSettingsButtons.png);
  492. }
  493. .panel.elements .sidebar-pane-toolbar > select.select-filter {
  494. background-image: url(Images/paneFilterButtons.png);
  495. }
  496. .panel.elements .sidebar-pane-toolbar > select > option, .panel.elements .sidebar-pane-toolbar > select > hr {
  497. color: black;
  498. }